wifi_sys: add BK3515A Combo node in sysfs

This commit is contained in:
lintao
2013-09-05 15:18:00 +08:00
parent 31726599c4
commit 7e679aad78
2 changed files with 7 additions and 6 deletions

View File

@@ -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

View File

@@ -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);