wifi: support wifi chip type report again
authorhwg <hwg@rock-chips.com>
Thu, 12 Apr 2012 07:01:21 +0000 (15:01 +0800)
committerhwg <hwg@rock-chips.com>
Thu, 12 Apr 2012 07:01:21 +0000 (15:01 +0800)
drivers/net/wireless/wifi_sys/rkwifi_sys_iface.c

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