aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlegacy
diff options
context:
space:
mode:
authorJohn W. Linville <linville@tuxdriver.com>2013-08-09 15:06:28 -0400
committerJohn W. Linville <linville@tuxdriver.com>2013-08-09 15:06:28 -0400
commit4f0544489215fc78cccb96f8e3d0f078ae965297 (patch)
tree69e71db0cf005a68ab1b70f33ae0462fd94152fc /drivers/net/wireless/iwlegacy
parent2952f6ef5195ea76279f7370f0a6571867e54438 (diff)
parent5a6e0cf70743f30c17ccb5f228db9a124b0e7477 (diff)
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless
Diffstat (limited to 'drivers/net/wireless/iwlegacy')
-rw-r--r--drivers/net/wireless/iwlegacy/4965-mac.c16
-rw-r--r--drivers/net/wireless/iwlegacy/common.c1
2 files changed, 9 insertions, 8 deletions
diff --git a/drivers/net/wireless/iwlegacy/4965-mac.c b/drivers/net/wireless/iwlegacy/4965-mac.c
index c4b22e190a54..b411ab905284 100644
--- a/drivers/net/wireless/iwlegacy/4965-mac.c
+++ b/drivers/net/wireless/iwlegacy/4965-mac.c
@@ -4466,12 +4466,12 @@ il4965_irq_tasklet(struct il_priv *il)
4466 * is killed. Hence update the killswitch state here. The 4466 * is killed. Hence update the killswitch state here. The
4467 * rfkill handler will care about restarting if needed. 4467 * rfkill handler will care about restarting if needed.
4468 */ 4468 */
4469 if (!test_bit(S_ALIVE, &il->status)) { 4469 if (hw_rf_kill) {
4470 if (hw_rf_kill) 4470 set_bit(S_RFKILL, &il->status);
4471 set_bit(S_RFKILL, &il->status); 4471 } else {
4472 else 4472 clear_bit(S_RFKILL, &il->status);
4473 clear_bit(S_RFKILL, &il->status);
4474 wiphy_rfkill_set_hw_state(il->hw->wiphy, hw_rf_kill); 4473 wiphy_rfkill_set_hw_state(il->hw->wiphy, hw_rf_kill);
4474 il_force_reset(il, true);
4475 } 4475 }
4476 4476
4477 handled |= CSR_INT_BIT_RF_KILL; 4477 handled |= CSR_INT_BIT_RF_KILL;
@@ -5340,6 +5340,9 @@ il4965_alive_start(struct il_priv *il)
5340 5340
5341 il->active_rate = RATES_MASK; 5341 il->active_rate = RATES_MASK;
5342 5342
5343 il_power_update_mode(il, true);
5344 D_INFO("Updated power mode\n");
5345
5343 if (il_is_associated(il)) { 5346 if (il_is_associated(il)) {
5344 struct il_rxon_cmd *active_rxon = 5347 struct il_rxon_cmd *active_rxon =
5345 (struct il_rxon_cmd *)&il->active; 5348 (struct il_rxon_cmd *)&il->active;
@@ -5370,9 +5373,6 @@ il4965_alive_start(struct il_priv *il)
5370 D_INFO("ALIVE processing complete.\n"); 5373 D_INFO("ALIVE processing complete.\n");
5371 wake_up(&il->wait_command_queue); 5374 wake_up(&il->wait_command_queue);
5372 5375
5373 il_power_update_mode(il, true);
5374 D_INFO("Updated power mode\n");
5375
5376 return; 5376 return;
5377 5377
5378restart: 5378restart:
diff --git a/drivers/net/wireless/iwlegacy/common.c b/drivers/net/wireless/iwlegacy/common.c
index 3195aad440dd..b03e22ef5462 100644
--- a/drivers/net/wireless/iwlegacy/common.c
+++ b/drivers/net/wireless/iwlegacy/common.c
@@ -4660,6 +4660,7 @@ il_force_reset(struct il_priv *il, bool external)
4660 4660
4661 return 0; 4661 return 0;
4662} 4662}
4663EXPORT_SYMBOL(il_force_reset);
4663 4664
4664int 4665int
4665il_mac_change_interface(struct ieee80211_hw *hw, struct ieee80211_vif *vif, 4666il_mac_change_interface(struct ieee80211_hw *hw, struct ieee80211_vif *vif,