From: Luciano Coelho Date: Wed, 20 Aug 2014 14:26:58 +0000 (+0300) Subject: iwlwifi: mvm: reset the temperature when temperature test is disabled X-Git-Tag: fixes-against-v3.18-rc2~81^2~133^2~3^2~30 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b689fa799a1450056044a47d6afa6ad52f3a8997;p=pandora-kernel.git 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 Reviewed-by: Johannes Berg Signed-off-by: Emmanuel Grumbach --- Reading git-diff-tree failed