mirror of
https://github.com/lwfinger/rtl8188eu.git
synced 2025-06-23 16:44:20 +00:00
rtl8188eu: FRemove dead code for other than USB
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
This commit is contained in:
parent
5a2939fa9e
commit
2d60bad9ad
66 changed files with 229 additions and 4045 deletions
|
@ -30,14 +30,8 @@
|
|||
#include <rtw_ioctl.h>
|
||||
#include <rtw_version.h>
|
||||
#include <rtw_br_ext.h>
|
||||
|
||||
#ifdef CONFIG_USB_HCI
|
||||
#include <usb_hal.h>
|
||||
#include <usb_osintf.h>
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_PCI_HCI
|
||||
#include <pci_osintf.h>
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_BR_EXT
|
||||
#include <rtw_br_ext.h>
|
||||
|
@ -163,11 +157,7 @@ static int rtw_hwpwrp_detect = 1;
|
|||
static int rtw_hwpwrp_detect = 0; //HW power ping detect 0:disable , 1:enable
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_USB_HCI
|
||||
static int rtw_hw_wps_pbc = 1;
|
||||
#else
|
||||
static int rtw_hw_wps_pbc = 0;
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_TX_MCAST2UNI
|
||||
int rtw_mc2u_disable = 0;
|
||||
|
@ -713,15 +703,9 @@ u32 rtw_start_drv_threads(struct adapter *padapter)
|
|||
|
||||
RT_TRACE(_module_os_intfs_c_,_drv_info_,("+rtw_start_drv_threads\n"));
|
||||
#ifdef CONFIG_XMIT_THREAD_MODE
|
||||
#if defined(CONFIG_SDIO_HCI) && defined(CONFIG_CONCURRENT_MODE)
|
||||
if(padapter->adapter_type == PRIMARY_ADAPTER){
|
||||
#endif
|
||||
padapter->xmitThread = kthread_run(rtw_xmit_thread, padapter, "RTW_XMIT_THREAD");
|
||||
if(IS_ERR(padapter->xmitThread))
|
||||
_status = _FAIL;
|
||||
#if defined(CONFIG_SDIO_HCI) && defined(CONFIG_CONCURRENT_MODE)
|
||||
}
|
||||
#endif // CONFIG_SDIO_HCI+CONFIG_CONCURRENT_MODE
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_RECV_THREAD_MODE
|
||||
|
@ -805,10 +789,6 @@ void rtw_stop_drv_threads (struct adapter *padapter)
|
|||
|
||||
#ifdef CONFIG_XMIT_THREAD_MODE
|
||||
// Below is to termindate tx_thread...
|
||||
#if defined(CONFIG_SDIO_HCI) && defined(CONFIG_CONCURRENT_MODE)
|
||||
// Only wake-up primary adapter
|
||||
if(padapter->adapter_type == PRIMARY_ADAPTER)
|
||||
#endif //SDIO_HCI + CONCURRENT
|
||||
{
|
||||
_rtw_up_sema(&padapter->xmitpriv.xmit_sema);
|
||||
_rtw_down_sema(&padapter->xmitpriv.terminate_xmitthread_sema);
|
||||
|
@ -1344,13 +1324,6 @@ static const struct net_device_ops rtw_netdev_if2_ops = {
|
|||
};
|
||||
#endif
|
||||
|
||||
|
||||
#ifdef CONFIG_USB_HCI
|
||||
#include <usb_hal.h>
|
||||
#endif
|
||||
#ifdef CONFIG_SDIO_HCI
|
||||
#include <sdio_hal.h>
|
||||
#endif
|
||||
struct adapter *rtw_drv_if2_init(struct adapter *primary_padapter, void (*set_intf_ops)(struct _io_ops *pops))
|
||||
{
|
||||
int res = _FAIL;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue