summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlwifi/mvm/tt.c
diff options
context:
space:
mode:
authorEytan Lifshitz2014-04-02 20:37:57 +0200
committerEmmanuel Grumbach2014-04-13 08:36:00 +0200
commit19a04bddabe66edc7dff7aa121b614a202ccb9b8 (patch)
tree9684621bb2d504e4394b907fcefb521922c5e1cf /drivers/net/wireless/iwlwifi/mvm/tt.c
parentiwlwifi: mvm: dump Rx FIFO when the firmware asserts (diff)
downloadkernel-qcow2-linux-19a04bddabe66edc7dff7aa121b614a202ccb9b8.tar.gz
kernel-qcow2-linux-19a04bddabe66edc7dff7aa121b614a202ccb9b8.tar.xz
kernel-qcow2-linux-19a04bddabe66edc7dff7aa121b614a202ccb9b8.zip
iwlwifi: mvm: Fix warning message when exit thermal throttling
When NIC exit thermal throttling while having minimal tx-backoff restriction, the warning message that indicate about that state won't show up. Fixed. Signed-off-by: Eytan Lifshitz <eytan.lifshitz@intel.com> Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/mvm/tt.c')
-rw-r--r--drivers/net/wireless/iwlwifi/mvm/tt.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/wireless/iwlwifi/mvm/tt.c b/drivers/net/wireless/iwlwifi/mvm/tt.c
index 7a99fa361954..cee4e72fc893 100644
--- a/drivers/net/wireless/iwlwifi/mvm/tt.c
+++ b/drivers/net/wireless/iwlwifi/mvm/tt.c
@@ -484,7 +484,8 @@ void iwl_mvm_tt_handler(struct iwl_mvm *mvm)
IWL_WARN(mvm,
"Due to high temperature thermal throttling initiated\n");
tt->throttle = true;
- } else if (tt->throttle && !tt->dynamic_smps && tt->tx_backoff == 0 &&
+ } else if (tt->throttle && !tt->dynamic_smps &&
+ tt->tx_backoff == tt->min_backoff &&
temperature <= params->tx_protection_exit) {
IWL_WARN(mvm,
"Temperature is back to normal thermal throttling stopped\n");