mwifiex: display correct country information in debugfs "info"
authorAmitkumar Karwar <akarwar@marvell.com>
Tue, 10 Apr 2012 03:06:55 +0000 (20:06 -0700)
committerJohn W. Linville <linville@tuxdriver.com>
Thu, 12 Apr 2012 19:10:29 +0000 (15:10 -0400)
commit5e218b7ab86ed6eb3d1432146c49cbb8733414d0
treea1d0601fb31d7d9fd22ad023023e667552e81e6b
parent9e04a7c6d45fd70be55fcb48ec49f55dad9928f7
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>
drivers/net/wireless/mwifiex/debugfs.c
drivers/net/wireless/mwifiex/ioctl.h
drivers/net/wireless/mwifiex/sta_ioctl.c