Browse Source

iwlwifi: mvm: reset Thermal Throttling's SMPS request upon disassociation

The request of SMPS issued by the Thermal Throttling code
was not reset when we disassociated - fix that.

Reviewed-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Emmanuel Grumbach 12 years ago
parent
commit
f94045ed19
1 changed files with 2 additions and 0 deletions
  1. 2 0
      drivers/net/wireless/iwlwifi/mvm/mac80211.c

+ 2 - 0
drivers/net/wireless/iwlwifi/mvm/mac80211.c

@@ -944,6 +944,8 @@ static void iwl_mvm_bss_info_changed_station(struct iwl_mvm *mvm,
 				IWL_ERR(mvm, "failed to update power mode\n");
 				IWL_ERR(mvm, "failed to update power mode\n");
 		}
 		}
 		iwl_mvm_bt_coex_vif_change(mvm);
 		iwl_mvm_bt_coex_vif_change(mvm);
+		iwl_mvm_update_smps(mvm, vif, IWL_MVM_SMPS_REQ_TT,
+				    IEEE80211_SMPS_AUTOMATIC);
 	} else if (changes & BSS_CHANGED_BEACON_INFO) {
 	} else if (changes & BSS_CHANGED_BEACON_INFO) {
 		/*
 		/*
 		 * We received a beacon _after_ association so
 		 * We received a beacon _after_ association so