mirror of
https://github.com/lwfinger/rtl8188eu.git
synced 2025-06-23 00:24:20 +00:00
rtl8188eu: Remove dead code for other PLATFORM_XX variables
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
This commit is contained in:
parent
a3ca3380b5
commit
bb27b28f6e
18 changed files with 4 additions and 652 deletions
|
@ -34,9 +34,6 @@
|
|||
#include <usb_osintf.h>
|
||||
#include <usb_hal.h>
|
||||
#include <rtw_ioctl.h>
|
||||
#ifdef CONFIG_PLATFORM_RTK_DMP
|
||||
#include <asm/io.h>
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_GLOBAL_UI_PID
|
||||
int ui_pid[3] = {0, 0, 0};
|
||||
|
@ -274,10 +271,6 @@ static struct specific_device_id specific_device_id_tbl[] = {
|
|||
{.idVendor=0x0b05, .idProduct=0x1791, .flags=SPEC_DEV_ID_DISABLE_HT},
|
||||
{.idVendor=0x13D3, .idProduct=0x3311, .flags=SPEC_DEV_ID_DISABLE_HT},
|
||||
{.idVendor=0x13D3, .idProduct=0x3359, .flags=SPEC_DEV_ID_DISABLE_HT},//Russian customer -Azwave (8188CE-VAU g mode)
|
||||
#ifdef RTK_DMP_PLATFORM
|
||||
{.idVendor=USB_VENDER_ID_REALTEK, .idProduct=0x8111, .flags=SPEC_DEV_ID_ASSIGN_IFNAME}, // Realtek 5G dongle for WiFi Display
|
||||
{.idVendor=0x2019, .idProduct=0xAB2D, .flags=SPEC_DEV_ID_ASSIGN_IFNAME}, // PCI-Abocom 5G dongle for WiFi Display
|
||||
#endif /* RTK_DMP_PLATFORM */
|
||||
{}
|
||||
};
|
||||
|
||||
|
@ -727,17 +720,6 @@ static void process_spec_devid(const struct usb_device_id *pdid)
|
|||
}
|
||||
#endif
|
||||
|
||||
#ifdef RTK_DMP_PLATFORM
|
||||
// Change the ifname to wlan10 when PC side WFD dongle plugin on DMP platform.
|
||||
// It is used to distinguish between normal and PC-side wifi dongle/module.
|
||||
if ((pdid->idVendor==vid) && (pdid->idProduct==pid) && (flags&SPEC_DEV_ID_ASSIGN_IFNAME))
|
||||
{
|
||||
extern char* ifname;
|
||||
strncpy(ifname, "wlan10", 6);
|
||||
//DBG_88E("%s()-%d: ifname=%s, vid=%04X, pid=%04X\n", __func__, __LINE__, ifname, vid, pid);
|
||||
}
|
||||
#endif /* RTK_DMP_PLATFORM */
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1266,17 +1248,6 @@ error_exit:
|
|||
}
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_PLATFORM_RTD2880B
|
||||
extern void rtd2885_wlan_netlink_sendMsg(char *action_string, char *name);
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_PLATFORM_ARM_SUNxI
|
||||
#include <mach/sys_config.h>
|
||||
extern int sw_usb_disable_hcd(__u32 usbc_no);
|
||||
extern int sw_usb_enable_hcd(__u32 usbc_no);
|
||||
static int usb_wifi_host = 2;
|
||||
#endif
|
||||
|
||||
/*
|
||||
* drv_init() - a device potentially for us
|
||||
*
|
||||
|
@ -1428,21 +1399,12 @@ static _adapter *rtw_usb_if1_init(struct dvobj_priv *dvobj,
|
|||
hostapd_mode_init(padapter);
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_PLATFORM_RTD2880B
|
||||
DBG_88E("wlan link up\n");
|
||||
rtd2885_wlan_netlink_sendMsg("linkup", "8712");
|
||||
#endif
|
||||
|
||||
//step 6. /* Tell the network stack we exist */
|
||||
if (register_netdev(pnetdev) != 0) {
|
||||
RT_TRACE(_module_hci_intfs_c_,_drv_err_,("register_netdev() failed\n"));
|
||||
goto free_hal_data;
|
||||
}
|
||||
|
||||
#ifdef RTK_DMP_PLATFORM
|
||||
rtw_proc_init_one(pnetdev);
|
||||
#endif
|
||||
|
||||
DBG_88E("bDriverStopped:%d, bSurpriseRemoved:%d, bup:%d, hw_init_completed:%d\n"
|
||||
, padapter->bDriverStopped
|
||||
, padapter->bSurpriseRemoved
|
||||
|
@ -1534,12 +1496,6 @@ static void rtw_usb_if1_deinit(_adapter *if1)
|
|||
|
||||
if (pnetdev)
|
||||
rtw_free_netdev(pnetdev);
|
||||
|
||||
#ifdef CONFIG_PLATFORM_RTD2880B
|
||||
DBG_88E("wlan link down\n");
|
||||
rtd2885_wlan_netlink_sendMsg("linkdown", "8712");
|
||||
#endif
|
||||
|
||||
}
|
||||
|
||||
static void dump_usb_interface(struct usb_interface *usb_intf)
|
||||
|
@ -1790,38 +1746,11 @@ extern int console_suspend_enabled;
|
|||
|
||||
static int __init rtw_drv_entry(void)
|
||||
{
|
||||
#ifdef CONFIG_PLATFORM_RTK_DMP
|
||||
u32 tmp;
|
||||
tmp=readl((volatile unsigned int*)0xb801a608);
|
||||
tmp &= 0xffffff00;
|
||||
tmp |= 0x55;
|
||||
writel(tmp,(volatile unsigned int*)0xb801a608);//write dummy register for 1055
|
||||
#endif
|
||||
#ifdef CONFIG_PLATFORM_ARM_SUNxI
|
||||
#ifndef CONFIG_RTL8723A
|
||||
int ret = 0;
|
||||
/* ----------get usb_wifi_usbc_num------------- */
|
||||
ret = script_parser_fetch("usb_wifi_para", "usb_wifi_usbc_num", (int *)&usb_wifi_host, 64);
|
||||
if (ret != 0){
|
||||
DBG_88E("ERR: script_parser_fetch usb_wifi_usbc_num failed\n");
|
||||
ret = -ENOMEM;
|
||||
return ret;
|
||||
}
|
||||
DBG_88E("sw_usb_enable_hcd: usbc_num = %d\n", usb_wifi_host);
|
||||
sw_usb_enable_hcd(usb_wifi_host);
|
||||
#endif //CONFIG_RTL8723A
|
||||
#endif //CONFIG_PLATFORM_ARM_SUNxI
|
||||
|
||||
|
||||
RT_TRACE(_module_hci_intfs_c_,_drv_err_,("+rtw_drv_entry\n"));
|
||||
|
||||
DBG_88E(DRV_NAME " driver version=%s\n", DRIVERVERSION);
|
||||
DBG_88E("build time: %s %s\n", __DATE__, __TIME__);
|
||||
|
||||
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,24))
|
||||
//console_suspend_enabled=0;
|
||||
#endif
|
||||
|
||||
rtw_suspend_lock_init();
|
||||
|
||||
_rtw_mutex_init(&usb_drv->hw_init_mutex);
|
||||
|
@ -1852,13 +1781,6 @@ static void __exit rtw_drv_halt(void)
|
|||
_rtw_mutex_free(&usb_drv->setch_mutex);
|
||||
_rtw_mutex_free(&usb_drv->setbw_mutex);
|
||||
#endif
|
||||
#ifdef CONFIG_PLATFORM_ARM_SUNxI
|
||||
#ifndef CONFIG_RTL8723A
|
||||
DBG_88E("sw_usb_disable_hcd: usbc_num = %d\n", usb_wifi_host);
|
||||
sw_usb_disable_hcd(usb_wifi_host);
|
||||
#endif //ifndef CONFIG_RTL8723A
|
||||
#endif //CONFIG_PLATFORM_ARM_SUNxI
|
||||
|
||||
DBG_88E("-rtw_drv_halt\n");
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue