diff options
author | Wey-Yi Guy <wey-yi.w.guy@intel.com> | 2011-05-27 08:40:24 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-06-23 15:05:41 -0700 |
commit | aa27055641f8f60c26e9f436b08350f9b339cd3a (patch) | |
tree | 854c1a8edd892f11d75766fb18948135dab78110 | |
parent | 2cd3e43e8db9d0ae1af443418547f65ee1efa280 (diff) | |
download | lwn-aa27055641f8f60c26e9f436b08350f9b339cd3a.tar.gz lwn-aa27055641f8f60c26e9f436b08350f9b339cd3a.zip |
iwlagn: send tx power command if defer cause by RXON not match
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>
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-agn-rxon.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-agn-rxon.c b/drivers/net/wireless/iwlwifi/iwl-agn-rxon.c index f49610fa0b0d..5b606a3491ca 100644 --- a/drivers/net/wireless/iwlwifi/iwl-agn-rxon.c +++ b/drivers/net/wireless/iwlwifi/iwl-agn-rxon.c @@ -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; } |