diff options
author | John W. Linville <linville@tuxdriver.com> | 2011-06-07 14:07:11 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-06-07 14:07:11 -0400 |
commit | 41bfce8edebbe9dc6ddc238a71f07fbe9ab46016 (patch) | |
tree | 31e1799bdb73dd5b7bc5aea367cc6fead035e396 /drivers/net/wireless/iwlegacy/iwl-4965.c | |
parent | 805a3b810708db3261cc8c1183ffb2703a5ce243 (diff) | |
parent | 51892dbbd511911c0f965a36b431fc3e8f1e4f8a (diff) |
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-2.6
Diffstat (limited to 'drivers/net/wireless/iwlegacy/iwl-4965.c')
-rw-r--r-- | drivers/net/wireless/iwlegacy/iwl-4965.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/net/wireless/iwlegacy/iwl-4965.c b/drivers/net/wireless/iwlegacy/iwl-4965.c index 79e7ce643f7..3a022bcf615 100644 --- a/drivers/net/wireless/iwlegacy/iwl-4965.c +++ b/drivers/net/wireless/iwlegacy/iwl-4965.c | |||
@@ -1235,7 +1235,7 @@ static int iwl4965_commit_rxon(struct iwl_priv *priv, struct iwl_rxon_context *c | |||
1235 | 1235 | ||
1236 | memcpy(active_rxon, &ctx->staging, sizeof(*active_rxon)); | 1236 | memcpy(active_rxon, &ctx->staging, sizeof(*active_rxon)); |
1237 | iwl_legacy_print_rx_config_cmd(priv, ctx); | 1237 | iwl_legacy_print_rx_config_cmd(priv, ctx); |
1238 | return 0; | 1238 | goto set_tx_power; |
1239 | } | 1239 | } |
1240 | 1240 | ||
1241 | /* If we are currently associated and the new config requires | 1241 | /* If we are currently associated and the new config requires |
@@ -1315,6 +1315,7 @@ static int iwl4965_commit_rxon(struct iwl_priv *priv, struct iwl_rxon_context *c | |||
1315 | 1315 | ||
1316 | iwl4965_init_sensitivity(priv); | 1316 | iwl4965_init_sensitivity(priv); |
1317 | 1317 | ||
1318 | set_tx_power: | ||
1318 | /* If we issue a new RXON command which required a tune then we must | 1319 | /* If we issue a new RXON command which required a tune then we must |
1319 | * send a new TXPOWER command or we won't be able to Tx any frames */ | 1320 | * send a new TXPOWER command or we won't be able to Tx any frames */ |
1320 | ret = iwl_legacy_set_tx_power(priv, priv->tx_power_next, true); | 1321 | ret = iwl_legacy_set_tx_power(priv, priv->tx_power_next, true); |
@@ -1541,7 +1542,7 @@ static void iwl4965_temperature_calib(struct iwl_priv *priv) | |||
1541 | s32 temp; | 1542 | s32 temp; |
1542 | 1543 | ||
1543 | temp = iwl4965_hw_get_temperature(priv); | 1544 | temp = iwl4965_hw_get_temperature(priv); |
1544 | if (temp < 0) | 1545 | if (IWL_TX_POWER_TEMPERATURE_OUT_OF_RANGE(temp)) |
1545 | return; | 1546 | return; |
1546 | 1547 | ||
1547 | if (priv->temperature != temp) { | 1548 | if (priv->temperature != temp) { |