diff options
author | Zhu Yi <yi.zhu@intel.com> | 2008-07-10 23:53:40 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-07-14 14:53:00 -0400 |
commit | 36da7d70e307f8650db1b1c7350d2161ca3829ef (patch) | |
tree | 3f199151754efae25c2bca4594346f289e61ff35 /drivers/net/wireless | |
parent | fe905f1d5a8404f45fa0df26e6a870bf1e3b5983 (diff) |
iwlwifi: send TXPOWER command after a new RXON command
The patch fixes the problem that TXPOWER command is not sent
after we issue a new RXON command which requires a tune. Otherwise
we won't be able to Tx any frames.
Signed-off-by: Zhu Yi <yi.zhu@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl4965-base.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl4965-base.c b/drivers/net/wireless/iwlwifi/iwl4965-base.c index 55648a8c88a2..71f5da3fe5c4 100644 --- a/drivers/net/wireless/iwlwifi/iwl4965-base.c +++ b/drivers/net/wireless/iwlwifi/iwl4965-base.c | |||
@@ -328,16 +328,6 @@ static int iwl4965_commit_rxon(struct iwl_priv *priv) | |||
328 | if (!priv->error_recovering) | 328 | if (!priv->error_recovering) |
329 | priv->start_calib = 0; | 329 | priv->start_calib = 0; |
330 | 330 | ||
331 | iwl_init_sensitivity(priv); | ||
332 | |||
333 | /* If we issue a new RXON command which required a tune then we must | ||
334 | * send a new TXPOWER command or we won't be able to Tx any frames */ | ||
335 | ret = iwl_set_tx_power(priv, priv->tx_power_user_lmt, true); | ||
336 | if (ret) { | ||
337 | IWL_ERROR("Error sending TX power (%d)\n", ret); | ||
338 | return ret; | ||
339 | } | ||
340 | |||
341 | /* Add the broadcast address so we can send broadcast frames */ | 331 | /* Add the broadcast address so we can send broadcast frames */ |
342 | if (iwl_rxon_add_station(priv, iwl_bcast_addr, 0) == | 332 | if (iwl_rxon_add_station(priv, iwl_bcast_addr, 0) == |
343 | IWL_INVALID_STATION) { | 333 | IWL_INVALID_STATION) { |
@@ -373,6 +363,16 @@ static int iwl4965_commit_rxon(struct iwl_priv *priv) | |||
373 | memcpy(active_rxon, &priv->staging_rxon, sizeof(*active_rxon)); | 363 | memcpy(active_rxon, &priv->staging_rxon, sizeof(*active_rxon)); |
374 | } | 364 | } |
375 | 365 | ||
366 | iwl_init_sensitivity(priv); | ||
367 | |||
368 | /* If we issue a new RXON command which required a tune then we must | ||
369 | * send a new TXPOWER command or we won't be able to Tx any frames */ | ||
370 | ret = iwl_set_tx_power(priv, priv->tx_power_user_lmt, true); | ||
371 | if (ret) { | ||
372 | IWL_ERROR("Error sending TX power (%d)\n", ret); | ||
373 | return ret; | ||
374 | } | ||
375 | |||
376 | return 0; | 376 | return 0; |
377 | } | 377 | } |
378 | 378 | ||