From: hwg Date: Wed, 20 Aug 2014 11:51:38 +0000 (+0800) Subject: rtl8723bs wifi: add wifi diver select X-Git-Tag: firefly_0821_release~4837 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=a39834c9f666054945f37708aeaea0190175ca24;p=firefly-linux-kernel-4.4.55.git rtl8723bs wifi: add wifi diver select --- 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 }