iwlegacy: set tx power after rxon_assoc
authorStanislaw Gruszka <sgruszka@redhat.com>
Wed, 27 Jul 2011 13:37:43 +0000 (15:37 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 1 Aug 2011 17:46:45 +0000 (13:46 -0400)
commit17e859a899712d16c3e70b045d61ad9e02c53f8a
tree78dcd698e6584ad3914b0dced314bc3e4c6ed002
parentc1227340ca65c2069222a956a68b6842d460c4f4
iwlegacy: set tx power after rxon_assoc

If settings of tx power was deferred during scan or changing channel we
have to setup them during commit rxon. Fix problem on 3945 (4965 already
has this fix).

Optimize code to apply tx settings only when tx power was actually
changed.

Cc: stable@kernel.org # 2.6.39+
Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/iwlegacy/iwl-3945.c
drivers/net/wireless/iwlegacy/iwl-4965.c