summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEytan Lifshitz <eytan.lifshitz@intel.com>2013-06-04 12:28:51 +0300
committerJohannes Berg <johannes.berg@intel.com>2013-06-05 09:06:13 +0200
commitfded313ec045024d4f769ce6b3e41fe343c167b0 (patch)
tree97f48e055c2cb2e6188cc48a5ddf745805e6ebbe
parent9116a3683902583a302ac5dcb283416d504d9bb4 (diff)
iwlwifi: mvm: don't request SMPS on non-STA iface
The Thermal Throttling code could do that, fix it. Signed-off-by: Eytan Lifshitz <eytan.lifshitz@intel.com> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
-rw-r--r--drivers/net/wireless/iwlwifi/mvm/tt.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/wireless/iwlwifi/mvm/tt.c b/drivers/net/wireless/iwlwifi/mvm/tt.c
index 4665fc033c17..a7e3b8ddf22b 100644
--- a/drivers/net/wireless/iwlwifi/mvm/tt.c
+++ b/drivers/net/wireless/iwlwifi/mvm/tt.c
@@ -371,6 +371,9 @@ static void iwl_mvm_tt_smps_iterator(void *_data, u8 *mac,
else
smps_mode = IEEE80211_SMPS_AUTOMATIC;
+ if (vif->type != NL80211_IFTYPE_STATION)
+ return;
+
iwl_mvm_update_smps(mvm, vif, IWL_MVM_SMPS_REQ_TT, smps_mode);
}