From a39834c9f666054945f37708aeaea0190175ca24 Mon Sep 17 00:00:00 2001 From: hwg Date: Wed, 20 Aug 2014 19:51:38 +0800 Subject: [PATCH] rtl8723bs wifi: add wifi diver select --- include/linux/rfkill-wlan.h | 3 ++- net/rfkill/rfkill-wlan.c | 8 +++++--- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/include/linux/rfkill-wlan.h b/include/linux/rfkill-wlan.h index 22ccd6d645a6..3754099a9780 100755 --- a/include/linux/rfkill-wlan.h +++ b/include/linux/rfkill-wlan.h @@ -43,7 +43,8 @@ struct rksdmmc_gpio_wifi_moudle { enum { WIFI_RKWIFI, WIFI_RTL8188EU, - WIFI_ESP8089 + WIFI_ESP8089, + WIFI_RTL8723BS }; int rfkill_get_wifi_power_state(int *power, int *vref_ctrl_enable); diff --git a/net/rfkill/rfkill-wlan.c b/net/rfkill/rfkill-wlan.c index f91a4912ca82..79ea0fc726fd 100755 --- a/net/rfkill/rfkill-wlan.c +++ b/net/rfkill/rfkill-wlan.c @@ -101,6 +101,8 @@ int get_wifi_chip_type(void) type = WIFI_RTL8188EU; } else if (strcmp(wifi_chip_type_string, "esp8089") == 0) { type = WIFI_ESP8089; + } else if (strcmp(wifi_chip_type_string, "rtl8723bs") == 0) { + type = WIFI_RTL8723BS; } else { type = WIFI_RKWIFI; } @@ -443,10 +445,10 @@ int rockchip_wifi_set_carddetect(int val) chip = get_wifi_chip_type(); /* irq_type : 0, oob; 1, cap-sdio-irq */ - if (chip == WIFI_ESP8089) - irq_type = 1; - else + if (chip == WIFI_RKWIFI) irq_type = 0; + else + irq_type = 1; return mmc_host_rescan(NULL, val, irq_type);//NULL => SDIO host } -- 2.34.1