]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
iwlagn: send tx power command if defer cause by RXON not match
authorWey-Yi Guy <wey-yi.w.guy@intel.com>
Fri, 27 May 2011 15:40:24 +0000 (08:40 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 23 Jun 2011 22:05:41 +0000 (15:05 -0700)
commit 43e4e0b94984b45d52048e3ac027cac15c718b65 upstream.

During channge channel, tx power will not send to uCode, the tx power command
should send after scan complete. but should also can send after RXON command.

Stable fix identified by Stanislaw Gruszka <sgruszka@redhat.com>.

Signed-off-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>
drivers/net/wireless/iwlwifi/iwl-agn-rxon.c

index f49610fa0b0d427446b337c0b45defef175cd133..5b606a3491cad5ee39b52ef0bc6fe9b9d9cf84bb 100644 (file)
@@ -218,6 +218,11 @@ int iwlagn_commit_rxon(struct iwl_priv *priv, struct iwl_rxon_context *ctx)
 
                memcpy(active, &ctx->staging, sizeof(*active));
                iwl_print_rx_config_cmd(priv, ctx);
+               /*
+                * We do not commit tx power settings while channel changing,
+                * do it now if after settings changed.
+                */
+               iwl_set_tx_power(priv, priv->tx_power_next, false);
                return 0;
        }