Remove signal handling from driver (software)

This commit is contained in:
kimocoder 2019-08-16 22:11:06 +02:00
parent 12d7cac87b
commit 1348762001
5 changed files with 1 additions and 54 deletions

View File

@ -407,9 +407,6 @@ __inline static unsigned char _cancel_timer_ex(_timer *ptimer)
static __inline void thread_enter(char *name)
{
#ifdef PLATFORM_LINUX
allow_signal(SIGTERM);
#endif
#ifdef PLATFORM_FREEBSD
printf("%s", "RTKTHREAD_enter");
#endif
@ -445,8 +442,6 @@ static inline void rtw_thread_wait_stop(void)
__inline static void flush_signals_thread(void)
{
#ifdef PLATFORM_LINUX
if (signal_pending(current))
flush_signals(current);
#endif
}
@ -457,15 +452,6 @@ __inline static _OS_STATUS res_to_status(sint res)
return res;
#endif
#ifdef PLATFORM_WINDOWS
if (res == _SUCCESS)
return NDIS_STATUS_SUCCESS;
else
return NDIS_STATUS_FAILURE;
#endif
}
__inline static void rtw_dump_stack(void)
@ -484,17 +470,6 @@ __inline static void rtw_dump_stack(void)
__inline static int rtw_bug_check(void *parg1, void *parg2, void *parg3, void *parg4)
{
int ret = _TRUE;
#ifdef PLATFORM_WINDOWS
if (((uint)parg1) <= 0x7fffffff ||
((uint)parg2) <= 0x7fffffff ||
((uint)parg3) <= 0x7fffffff ||
((uint)parg4) <= 0x7fffffff) {
ret = _FALSE;
KeBugCheckEx(0x87110000, (ULONG_PTR)parg1, (ULONG_PTR)parg2, (ULONG_PTR)parg3, (ULONG_PTR)parg4);
}
#endif
return ret;
}

View File

@ -174,8 +174,6 @@ void rtw_request_wps_pbc_event(_adapter *padapter)
return;
}
rtw_signal_process(padapter->pid[0], SIGUSR1);
#endif
rtw_led_control(padapter, LED_CTL_START_WPS_BOTTON);

View File

@ -75,14 +75,10 @@ void rtw_os_indicate_connect(_adapter *adapter)
#endif
rtw_netif_carrier_on(adapter->pnetdev);
if (adapter->pid[2] != 0)
rtw_signal_process(adapter->pid[2], SIGALRM);
#ifdef RTK_DMP_PLATFORM
_set_workitem(&adapter->mlmepriv.Linkup_workitem);
#endif
}
extern void indicate_wx_scan_complete_event(_adapter *padapter);

View File

@ -4854,11 +4854,6 @@ int rtw_resume_process_wow(_adapter *padapter)
RTW_PRINT("%s: ### ERROR ### wowlan_mode=%d\n", __FUNCTION__, pwrpriv->wowlan_mode);
if (padapter->pid[1] != 0) {
RTW_INFO("pid[1]:%d\n", padapter->pid[1]);
rtw_signal_process(padapter->pid[1], SIGUSR2);
}
if (rtw_chk_roam_flags(padapter, RTW_ROAM_ON_RESUME)) {
if (pwrpriv->wowlan_wake_reason == FW_DECISION_DISCONNECT ||
pwrpriv->wowlan_wake_reason == RX_DISASSOC||
@ -5006,11 +5001,6 @@ int rtw_resume_process_ap_wow(_adapter *padapter)
/* start netif queue */
rtw_mi_netif_wake_queue(padapter);
if (padapter->pid[1] != 0) {
RTW_INFO("pid[1]:%d\n", padapter->pid[1]);
rtw_signal_process(padapter->pid[1], SIGUSR2);
}
#ifdef CONFIG_RESUME_IN_WORKQUEUE
/* rtw_unlock_suspend(); */
#endif /* CONFIG_RESUME_IN_WORKQUEUE */
@ -5121,11 +5111,6 @@ int rtw_resume_process_normal(_adapter *padapter)
rtw_mi_netif_caron_qstart(padapter);
if (padapter->pid[1] != 0) {
RTW_INFO("pid[1]:%d\n", padapter->pid[1]);
rtw_signal_process(padapter->pid[1], SIGUSR2);
}
#ifdef CONFIG_BT_COEXIST
rtw_btcoex_SuspendNotify(padapter, BTCOEX_SUSPEND_STATE_RESUME);
#endif /* CONFIG_BT_COEXIST */

View File

@ -1537,13 +1537,6 @@ static int rtw_drv_init(struct usb_interface *pusb_intf, const struct usb_device
rtw_sw_export = padapter;
#endif
#ifdef CONFIG_GLOBAL_UI_PID
if (ui_pid[1] != 0) {
RTW_INFO("ui_pid[1]:%d\n", ui_pid[1]);
rtw_signal_process(ui_pid[1], SIGUSR2);
}
#endif
/* dev_alloc_name && register_netdev */
if (rtw_os_ndevs_init(dvobj) != _SUCCESS)
goto free_if_vir;