iwmc3200wifi: refuse to associate on unallowed channels
authorZhu Yi <yi.zhu@intel.com>
Thu, 25 Feb 2010 06:15:25 +0000 (14:15 +0800)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 10 Mar 2010 22:09:37 +0000 (17:09 -0500)
commit7d49c6111c27f0e68b0310aeececf7ded53f7f94
tree24039ba43babf5ef8b2651a8097de5eefe1bd6a0
parent6c26361e4be3cf0dad7083e38ca52001a987e3e6
iwmc3200wifi: refuse to associate on unallowed channels

We need to make sure we don't associate with APs on unallowed
channels (according to regulatory setting). This could happen
when the channel is not specified (auto-select) within the
connection request. In this case we get the AP's channel until
the firmware indicates the association succeeded later. We need
to verify the associated channel. If the channel is disabled by
regulatory, we have to disassociate with the AP.

Signed-off-by: Zhu Yi <yi.zhu@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/iwmc3200wifi/commands.c
drivers/net/wireless/iwmc3200wifi/commands.h
drivers/net/wireless/iwmc3200wifi/rx.c