wifi: support wifi chip type report

This commit is contained in:
hwg
2012-04-06 15:56:29 +08:00
parent b6e72a1823
commit dd684131d9
3 changed files with 16 additions and 2 deletions

View File

@@ -201,7 +201,6 @@ CONFIG_PHYLIB=y
# CONFIG_NETDEV_10000 is not set
CONFIG_WLAN_80211=y
CONFIG_RKWIFI=y
CONFIG_BCM4330=y
CONFIG_USB_USBNET=y
CONFIG_PPP=y
CONFIG_PPP_MULTILINK=y

View File

@@ -1,5 +1,5 @@
config RKWIFI
tristate "RK901/RK903/BCM4329/BCM4330 wireless cards support"
tristate "RK901/RK903/BCM4330 wireless cards support"
depends on MMC && WLAN_80211
select WIRELESS_EXT
select WEXT_PRIV

View File

@@ -22,6 +22,21 @@ static ssize_t wifi_chip_read(struct class *cls, char *_buf)
count = sprintf(_buf, "%s", "RTL8188");
printk("Current WiFi chip is RTL8188.\n");
#endif
#ifdef CONFIG_BCM4330
count = sprintf(_buf, "%s", "BCM4330");
printk("Current WiFi chip is BCM4330.\n");
#endif
#ifdef CONFIG_RK901
count = sprintf(_buf, "%s", "RK901");
printk("Current WiFi chip is RK901.\n");
#endif
#ifdef CONFIG_RK903
count = sprintf(_buf, "%s", "RK903");
printk("Current WiFi chip is RK903.\n");
#endif
return count;
}