diff options
author | Stanislaw Gruszka <sgruszka@redhat.com> | 2011-01-28 15:47:44 (GMT) |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-01-28 20:46:24 (GMT) |
commit | f844a709a7d8f8be61a571afc31dfaca9e779621 (patch) | |
tree | ebccd8b84ff00ad01ceca017d1b3370374882319 /drivers/net/wireless/iwlwifi/iwl-4965.c | |
parent | efe1cf0c5743caf4daccb57b399ef63edad41c9d (diff) | |
download | linux-fsl-qoriq-f844a709a7d8f8be61a571afc31dfaca9e779621.tar.xz |
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 d9a7d93..0532406 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 /* If we issue a new RXON command which required a tune then we must * send a new TXPOWER command or we won't be able to Tx any frames */ - ret = iwl_set_tx_power(priv, priv->tx_power_user_lmt, true); + ret = iwl_set_tx_power(priv, priv->tx_power_next, true); if (ret) { IWL_ERR(priv, "Error sending TX power (%d)\n", ret); return ret; |