iwlwifi: do not set tx power when channel is changing
authorStanislaw Gruszka <sgruszka@redhat.com>
Fri, 28 Jan 2011 15:47:44 +0000 (16:47 +0100)
committerSteve Conklin <sconklin@canonical.com>
Thu, 2 Jun 2011 19:23:07 +0000 (14:23 -0500)
commit0e4b8564120fa48e3e7e82408317a621dbd2c8e7
tree6c2b1507698751e88eae178528774738536004d4
parent2b090186088cc0243482c0005ac471ae5b2e7028
iwlwifi: do not set tx power when channel is changing

BugLink: http://bugs.launchpad.net/bugs/775809

commit f844a709a7d8f8be61a571afc31dfaca9e779621 upstream.

Mac80211 can request for tx power and channel change in one ->config
call. If that happens, *_send_tx_power functions will try to setup tx
power for old channel, what can be not correct because we already change
the band. I.e  error  "Failed to get channel info for channel 140 [0]",
can be printed frequently when operating in software scanning mode.

Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
Acked-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
drivers/net/wireless/iwlwifi/iwl-3945.c
drivers/net/wireless/iwlwifi/iwl-4965.c
drivers/net/wireless/iwlwifi/iwl-agn-rxon.c
drivers/net/wireless/iwlwifi/iwl-core.c