mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-09 04:10:18 +09:00
wifi_sys: add BK3515A Combo node in sysfs
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user