iwlwifi: mvm: reset the temperature when temperature test is disabled
authorLuciano Coelho <luciano.coelho@intel.com>
Wed, 20 Aug 2014 14:26:58 +0000 (17:26 +0300)
committerEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Wed, 3 Sep 2014 19:33:13 +0000 (22:33 +0300)
commitb689fa799a1450056044a47d6afa6ad52f3a8997
tree3372f878d2fe2f5d5dd056aefa4111b728f7c984
parenta4db848f2d0160a3fca08a5787dbef6bcc4ce2b3
iwlwifi: mvm: reset the temperature when temperature test is disabled

Since we can't read the actual temperature when the firmware is
running, just set the temperature to 0 when the test is disabled and
disable CT Kill if it was enabled.

Additionally, since we rely on iwl_mvm_tt_handler() to exit CT kill
when in test mode, call iwl_mvm_exit_ctkill() in that function if the
temperature is low again.  Also make the iwl_mvm_enter_ctkill() and
iwl_mvm_exit_ctkill() return if called when not necessary anymore
(e.g. when iwl_mvm_exit_ctkill() is called when we're not in CT-kill).

Signed-off-by: Luciano Coelho <luciano.coelho@intel.com>
Reviewed-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
drivers/net/wireless/iwlwifi/mvm/debugfs.c
drivers/net/wireless/iwlwifi/mvm/tt.c