]> git.baikalelectronics.ru Git - kernel.git/commit
iwlwifi: mvm: use the firmware to get the temperature during CT kill
authorLuciano Coelho <luciano.coelho@intel.com>
Thu, 4 Sep 2014 09:29:15 +0000 (12:29 +0300)
committerEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Sun, 14 Sep 2014 10:06:40 +0000 (13:06 +0300)
commite88f5679e4b1764fb04f93c08d8d2b2b353cb38e
treea5027bca0554298925f89297ae1c0814cf54d71d
parentf437a2b2b404d40d61fcd10d0390726fe6c6ad59
iwlwifi: mvm: use the firmware to get the temperature during CT kill

Reading the temperature directly from the hardware, without the help
of the firmware, is a complex process and is not entirely the same for
different hardware.  Also, some NICs don't easily allow access to the
sensors when the firmware is not running, which would add even more
complexity to the code.

To reduce the code complexity and to avoid code duplication between
the firmware and the driver, boot the firmware briefly to read the
current temperature while in CT kill mode.

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/fw-api.h
drivers/net/wireless/iwlwifi/mvm/mac80211.c
drivers/net/wireless/iwlwifi/mvm/mvm.h
drivers/net/wireless/iwlwifi/mvm/ops.c
drivers/net/wireless/iwlwifi/mvm/tt.c