mwifiex: retrieve correct max_power information in reg_notifier handler
authorAmitkumar Karwar <akarwar@marvell.com>
Thu, 28 Jun 2012 02:57:59 +0000 (19:57 -0700)
committerJohn W. Linville <linville@tuxdriver.com>
Thu, 28 Jun 2012 18:37:50 +0000 (14:37 -0400)
commit34202e28fe7fc8551313f9a035a8857db83de757
tree74086b8a3c6c78b446b84273fc5d83bef226ffc2
parent2041d7dff287333036145ba3aab57e3b675babef
mwifiex: retrieve correct max_power information in reg_notifier handler

As we don't provide custom regulatory rules to cfg80211,
"chan->max_power" remains uninitialized (0dbm) and
"chan->max_reg_power" will contain maximum power for a channel
extracted from regulatory rules provided by CRDA; hence use
"chan->max_reg_power" in reg_notifier handler instead of
"chan->max_power" to set max_power in firmware.

Signed-off-by: Amitkumar Karwar <akarwar@marvell.com>
Signed-off-by: Bing Zhao <bzhao@marvell.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/mwifiex/cfg80211.c