diff options
author | Stanislaw Gruszka <sgruszka@redhat.com> | 2011-01-28 10:47:44 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-01-28 15:46:24 -0500 |
commit | f844a709a7d8f8be61a571afc31dfaca9e779621 (patch) | |
tree | ebccd8b84ff00ad01ceca017d1b3370374882319 /drivers/net/wireless/iwlwifi/iwl-4965.c | |
parent | efe1cf0c5743caf4daccb57b399ef63edad41c9d (diff) |
iwlwifi: do not set tx power when channel is changing
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>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-4965.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-4965.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-4965.c b/drivers/net/wireless/iwlwifi/iwl-4965.c index d9a7d93def6c..053240642b50 100644 --- a/drivers/net/wireless/iwlwifi/iwl-4965.c +++ b/drivers/net/wireless/iwlwifi/iwl-4965.c | |||
@@ -1571,7 +1571,7 @@ static int iwl4965_commit_rxon(struct iwl_priv *priv, struct iwl_rxon_context *c | |||
1571 | 1571 | ||
1572 | /* If we issue a new RXON command which required a tune then we must | 1572 | /* If we issue a new RXON command which required a tune then we must |
1573 | * send a new TXPOWER command or we won't be able to Tx any frames */ | 1573 | * send a new TXPOWER command or we won't be able to Tx any frames */ |
1574 | ret = iwl_set_tx_power(priv, priv->tx_power_user_lmt, true); | 1574 | ret = iwl_set_tx_power(priv, priv->tx_power_next, true); |
1575 | if (ret) { | 1575 | if (ret) { |
1576 | IWL_ERR(priv, "Error sending TX power (%d)\n", ret); | 1576 | IWL_ERR(priv, "Error sending TX power (%d)\n", ret); |
1577 | return ret; | 1577 | return ret; |