From: hwg Date: Wed, 24 Jul 2013 10:43:38 +0000 (+0800) Subject: compatible with factory tool kernel config X-Git-Tag: firefly_0821_release~6848 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=d0a4800a70638372bef0b411e36c29ffa5c1aee9;p=firefly-linux-kernel-4.4.55.git compatible with factory tool kernel config --- diff --git a/drivers/net/wireless/wifi_sys/rkwifi_sys_iface.c b/drivers/net/wireless/wifi_sys/rkwifi_sys_iface.c index 02631fb6d895..9ef75ed99312 100755 --- a/drivers/net/wireless/wifi_sys/rkwifi_sys_iface.c +++ b/drivers/net/wireless/wifi_sys/rkwifi_sys_iface.c @@ -20,32 +20,33 @@ static ssize_t wifi_chip_read(struct class *cls, char *_buf) #endif { int count = 0; -#ifdef CONFIG_MACH_RK_CONFIG - if(wifi_type==WIFI_TYPE_RTL8188CU) - { - count = sprintf(_buf, "%s", "RTL8188CU"); - printk("Current WiFi chip is RTL8188CU.\n"); - }else if(wifi_type==WIFI_TYPE_RTL8188EU){ - count = sprintf(_buf, "%s", "RTL8188EU"); - printk("Current WiFi chip is RTL8188EU.\n"); - }else if(wifi_type==WIFI_TYPE_MT7601){ - count = sprintf(_buf, "%s", "MT7601"); - printk("Current WiFi chip is MT7601.\n"); - }else if(wifi_type==WIFI_TYPE_RTL8188ETV) - { - count = sprintf(_buf, "%s", "RTL8188ETV"); - printk("Current WiFi chip is RTL8188ETV.\n"); - }else if(wifi_type==WIFI_TYPE_MT5370) - { - count = sprintf(_buf, "%s", "MT5370"); - printk("Current WiFi chip is MT5370.\n"); - } - else - { - printk("NOT surpport type %d\n",wifi_type); - } -#else +#ifdef CONFIG_MACH_RK_FAC + if(wifi_type==WIFI_TYPE_RTL8188CU) { + count = sprintf(_buf, "%s", "RTL8188CU"); + printk("Current WiFi chip is RTL8188CU.\n"); + return count; + } else if(wifi_type==WIFI_TYPE_RTL8188EU) { + count = sprintf(_buf, "%s", "RTL8188EU"); + printk("Current WiFi chip is RTL8188EU.\n"); + return count; + } else if(wifi_type==WIFI_TYPE_MT7601) { + count = sprintf(_buf, "%s", "MT7601"); + printk("Current WiFi chip is MT7601.\n"); + return count; + } else if(wifi_type==WIFI_TYPE_RTL8188ETV) { + count = sprintf(_buf, "%s", "RTL8188ETV"); + printk("Current WiFi chip is RTL8188ETV.\n"); + return count; + } else if(wifi_type==WIFI_TYPE_MT5370) { + count = sprintf(_buf, "%s", "MT5370"); + printk("Current WiFi chip is MT5370.\n"); + return count; + } else { + //printk("NOT surpport type %d\n",wifi_type); + } +#endif + #ifdef CONFIG_BCM4329 count = sprintf(_buf, "%s", "BCM4329"); printk("Current WiFi chip is BCM4329.\n"); @@ -192,9 +193,6 @@ static ssize_t wifi_chip_read(struct class *cls, char *_buf) printk("Current WiFi chip is ESP8089.\n"); #endif - - -#endif return count; }