]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
mwifiex: add region code information in debugfs
authorKarthik D A <karthida@marvell.com>
Mon, 25 Jul 2016 15:51:05 +0000 (21:21 +0530)
committerKalle Valo <kvalo@codeaurora.org>
Sat, 3 Sep 2016 09:57:14 +0000 (12:57 +0300)
region code is an EEPROM setting received from firmware. Let's display
this in debugfs along with other information.

Signed-off-by: Karthik D A <karthida@marvell.com>
Signed-off-by: Amitkumar Karwar <akarwar@marvell.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/marvell/mwifiex/debugfs.c

index bccf17ad588e6b83c028fb1a761da78ce6edc9ba..b9284b5332946baa5c23b1a5c71f5b2668851efe 100644 (file)
@@ -118,6 +118,8 @@ mwifiex_info_read(struct file *file, char __user *ubuf,
                p += sprintf(p, "bssid=\"%pM\"\n", info.bssid);
                p += sprintf(p, "channel=\"%d\"\n", (int) info.bss_chan);
                p += sprintf(p, "country_code = \"%s\"\n", info.country_code);
+               p += sprintf(p, "region_code=\"0x%x\"\n",
+                            priv->adapter->region_code);
 
                netdev_for_each_mc_addr(ha, netdev)
                        p += sprintf(p, "multicast_address[%d]=\"%pM\"\n",