From: hwg Date: Thu, 12 Apr 2012 07:01:21 +0000 (+0800) Subject: wifi: support wifi chip type report again X-Git-Tag: firefly_0821_release~9427 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=bcc67a0f6cbc6488f4fc450636ca652bf164ef92;p=firefly-linux-kernel-4.4.55.git wifi: support wifi chip type report again --- diff --git a/drivers/net/wireless/wifi_sys/rkwifi_sys_iface.c b/drivers/net/wireless/wifi_sys/rkwifi_sys_iface.c index 0c02a900ed12..8963eae6c6ec 100644 --- a/drivers/net/wireless/wifi_sys/rkwifi_sys_iface.c +++ b/drivers/net/wireless/wifi_sys/rkwifi_sys_iface.c @@ -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; }