mirror of
https://github.com/Mange/rtl8192eu-linux-driver
synced 2025-12-10 00:04:17 +00:00
Updated to 4.4.1
This commit is contained in:
@@ -34,12 +34,19 @@
|
||||
static int sdc_id = -1;
|
||||
static signed int gpio_eint_wlan = -1;
|
||||
static u32 eint_wlan_handle = 0;
|
||||
|
||||
#if defined(CONFIG_PLATFORM_ARM_SUN6I) || defined(CONFIG_PLATFORM_ARM_SUN7I)
|
||||
extern void sw_mci_rescan_card(unsigned id, unsigned insert);
|
||||
#elif defined(CONFIG_PLATFORM_ARM_SUN8I)
|
||||
extern void sunxi_mci_rescan_card(unsigned id, unsigned insert);
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_PLATFORM_ARM_SUN8I_W5P1
|
||||
extern int get_rf_mod_type(void);
|
||||
#else
|
||||
extern int wifi_pm_get_mod_type(void);
|
||||
#endif
|
||||
|
||||
extern void wifi_pm_power(int on);
|
||||
#ifdef CONFIG_GPIO_WAKEUP
|
||||
extern unsigned int oob_irq;
|
||||
@@ -60,7 +67,11 @@ int platform_wifi_power_on(void)
|
||||
script_item_u val;
|
||||
script_item_value_type_e type;
|
||||
|
||||
#ifdef CONFIG_PLATFORM_ARM_SUN8I_W5P1
|
||||
unsigned int mod_sel = get_rf_mod_type();
|
||||
#else
|
||||
unsigned int mod_sel = wifi_pm_get_mod_type();
|
||||
#endif
|
||||
|
||||
type = script_get_item("wifi_para", "wifi_sdc_id", &val);
|
||||
if (SCIRPT_ITEM_VALUE_TYPE_INT!=type) {
|
||||
@@ -82,12 +93,16 @@ int platform_wifi_power_on(void)
|
||||
}
|
||||
|
||||
#ifdef CONFIG_GPIO_WAKEUP
|
||||
#ifdef CONFIG_PLATFORM_ARM_SUN8I_W5P1
|
||||
type = script_get_item("wifi_para", "wl_host_wake", &val);
|
||||
#else
|
||||
#ifdef CONFIG_RTL8723B
|
||||
type = script_get_item("wifi_para", "rtl8723bs_wl_host_wake", &val);
|
||||
#endif
|
||||
#ifdef CONFIG_RTL8188E
|
||||
type = script_get_item("wifi_para", "rtl8189es_host_wake", &val);
|
||||
#endif
|
||||
#endif /* CONFIG_PLATFORM_ARM_SUN8I_W5P1 */
|
||||
if (SCIRPT_ITEM_VALUE_TYPE_PIO != type) {
|
||||
DBG_871X("No definition of wake up host PIN\n");
|
||||
ret = -1;
|
||||
|
||||
Reference in New Issue
Block a user