diff --git a/core/rtw_recv.c b/core/rtw_recv.c index 29da0ef..3f71b55 100644 --- a/core/rtw_recv.c +++ b/core/rtw_recv.c @@ -116,11 +116,6 @@ _func_exit_; void rtw_mfree_recv_priv_lock(struct recv_priv *precvpriv) { _rtw_spinlock_free(&precvpriv->lock); -#ifdef CONFIG_RECV_THREAD_MODE - _rtw_free_sema(&precvpriv->recv_sema); - _rtw_free_sema(&precvpriv->terminate_recvthread_sema); -#endif - _rtw_spinlock_free(&precvpriv->free_recv_queue.lock); _rtw_spinlock_free(&precvpriv->recv_pending_queue.lock); diff --git a/hal/rtl8188eu_recv.c b/hal/rtl8188eu_recv.c index a008906..2c3c9b2 100644 --- a/hal/rtl8188eu_recv.c +++ b/hal/rtl8188eu_recv.c @@ -57,11 +57,6 @@ int rtl8188eu_init_recv_priv(_adapter *padapter) int i, res = _SUCCESS; struct recv_buf *precvbuf; -#ifdef CONFIG_RECV_THREAD_MODE - _rtw_init_sema(&precvpriv->recv_sema, 0);/* will be removed */ - _rtw_init_sema(&precvpriv->terminate_recvthread_sema, 0);/* will be removed */ -#endif - tasklet_init(&precvpriv->recv_tasklet, (void(*)(unsigned long))rtl8188eu_recv_tasklet, (unsigned long)padapter); diff --git a/include/rtw_recv.h b/include/rtw_recv.h index acc7a66..96a2340 100644 --- a/include/rtw_recv.h +++ b/include/rtw_recv.h @@ -194,11 +194,6 @@ using enter_critical section to protect struct recv_priv { _lock lock; - -#ifdef CONFIG_RECV_THREAD_MODE - _sema recv_sema; - _sema terminate_recvthread_sema; -#endif _queue free_recv_queue; _queue recv_pending_queue; _queue uc_swdec_pending_queue; diff --git a/os_dep/os_intfs.c b/os_dep/os_intfs.c index 82993a6..4b28f0f 100644 --- a/os_dep/os_intfs.c +++ b/os_dep/os_intfs.c @@ -945,12 +945,6 @@ u32 rtw_start_drv_threads(_adapter *padapter) RT_TRACE(_module_os_intfs_c_,_drv_info_,("+rtw_start_drv_threads\n")); -#ifdef CONFIG_RECV_THREAD_MODE - padapter->recvThread = kthread_run(rtw_recv_thread, padapter, "RTW_RECV_THREAD"); - if (IS_ERR(padapter->recvThread)) - _status = _FAIL; -#endif - padapter->cmdThread = kthread_run(rtw_cmd_thread, padapter, "RTW_CMD_THREAD"); if (IS_ERR(padapter->cmdThread)) _status = _FAIL; @@ -983,12 +977,6 @@ void rtw_stop_drv_threads (_adapter *padapter) } #endif -#ifdef CONFIG_RECV_THREAD_MODE - // Below is to termindate rx_thread... - _rtw_up_sema(&padapter->recvpriv.recv_sema); - _rtw_down_sema(&padapter->recvpriv.terminate_recvthread_sema); - RT_TRACE(_module_os_intfs_c_,_drv_info_,("\n drv_halt:recv_thread can be terminated!\n")); -#endif rtw_hal_stop_thread(padapter); }