diff options
author | Amitkumar Karwar <akarwar@marvell.com> | 2012-04-09 20:06:55 -0700 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2012-04-12 15:10:29 -0400 |
commit | 5e218b7ab86ed6eb3d1432146c49cbb8733414d0 (patch) | |
tree | a1d0601fb31d7d9fd22ad023023e667552e81e6b /drivers/net/wireless/mwifiex/sta_ioctl.c | |
parent | 9e04a7c6d45fd70be55fcb48ec49f55dad9928f7 (diff) | |
download | op-kernel-dev-5e218b7ab86ed6eb3d1432146c49cbb8733414d0.zip op-kernel-dev-5e218b7ab86ed6eb3d1432146c49cbb8733414d0.tar.gz |
mwifiex: display correct country information in debugfs "info"
Use "priv->country_code" string to display country information in
debugfs command "info" instead of "adapter->region_code".
"adapter->region_code" contains default region code got from FW while
initialization, whereas "priv->country_code" is updated in reg_notifier
handler whenever there is a change in regulatory domain.
Signed-off-by: Amitkumar Karwar <akarwar@marvell.com>
Signed-off-by: Kiran Divekar <dkiran@marvell.com>
Signed-off-by: Bing Zhao <bzhao@marvell.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/mwifiex/sta_ioctl.c')
-rw-r--r-- | drivers/net/wireless/mwifiex/sta_ioctl.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/wireless/mwifiex/sta_ioctl.c b/drivers/net/wireless/mwifiex/sta_ioctl.c index 8ba58d9..3bdef07 100644 --- a/drivers/net/wireless/mwifiex/sta_ioctl.c +++ b/drivers/net/wireless/mwifiex/sta_ioctl.c @@ -468,7 +468,8 @@ int mwifiex_get_bss_info(struct mwifiex_private *priv, info->bss_chan = bss_desc->channel; - info->region_code = adapter->region_code; + memcpy(info->country_code, priv->country_code, + IEEE80211_COUNTRY_STRING_LEN); info->media_connected = priv->media_connected; |