From 7e679aad784722e5a06884285dcc45cdd4f4edc2 Mon Sep 17 00:00:00 2001 From: lintao Date: Thu, 5 Sep 2013 15:18:00 +0800 Subject: [PATCH] wifi_sys: add BK3515A Combo node in sysfs --- drivers/net/wireless/esp8089/Kconfig | 4 ++-- drivers/net/wireless/wifi_sys/rkwifi_sys_iface.c | 9 +++++---- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/drivers/net/wireless/esp8089/Kconfig b/drivers/net/wireless/esp8089/Kconfig index 49e0459a0d8c..620c5cfe719d 100755 --- a/drivers/net/wireless/esp8089/Kconfig +++ b/drivers/net/wireless/esp8089/Kconfig @@ -9,8 +9,8 @@ ---help--- Espressif 8089 sdio Wi-Fi support - config ESP8089_BK3515A - depends on WLAN_80211 && MMC + config BK3515A_COMBO + depends on ESP8089 select WIRELESS_EXT select WEXT_PRIV select CFG80211 diff --git a/drivers/net/wireless/wifi_sys/rkwifi_sys_iface.c b/drivers/net/wireless/wifi_sys/rkwifi_sys_iface.c index 4693c041d4bf..023a8b86612b 100755 --- a/drivers/net/wireless/wifi_sys/rkwifi_sys_iface.c +++ b/drivers/net/wireless/wifi_sys/rkwifi_sys_iface.c @@ -193,10 +193,6 @@ static ssize_t wifi_chip_read(struct class *cls, char *_buf) printk("Current WiFi chip is ESP8089.\n"); #endif -#ifdef CONFIG_ESP8089_BK3515A - count = sprintf(_buf, "%s", "ESP8089_BK3515A"); - printk("Current WiFi chip is ESP8089+BK3515A+[GPS optional].\n"); -#endif return count; } @@ -236,6 +232,11 @@ static ssize_t wifi_p2p_read(struct class *cls, char *_buf) { int count = 0; +#ifdef CONFIG_BK3515A_COMBO + count = sprintf(_buf, "%s", "true"); + printk("Current WiFi chip is ESP8089+BK3515A Combo.\n"); +#endif + #ifdef CONFIG_BCM4329 count = sprintf(_buf, "%s", "false"); printk("Current WiFi chip BCM4329 doesn't support direct.(%s)\n", _buf); -- 2.34.1