iwlwifi: mvm: use firmware LED command where applicable
authorJohannes Berg <johannes.berg@intel.com>
Wed, 28 Jun 2017 14:19:49 +0000 (16:19 +0200)
committerLuca Coelho <luciano.coelho@intel.com>
Wed, 9 Aug 2017 06:15:32 +0000 (09:15 +0300)
commit7089ae634c50544b29b31faf1a751e8765c8de3b
tree6bfeeb4f33e95039b2c76c46b08c61a675ef1e51
parent4aa234eeec0aa9414637bd193f0745cf91bb60ef
iwlwifi: mvm: use firmware LED command where applicable

On devices starting from 8000 series, the host can no longer toggle
the LED through the CSR_LED_REG register, but must do it via the
firmware instead. Add support for this. Note that this means that
the LED cannot be turned on while the firmware is off, so using an
arbitrary LED trigger may not work as expected.

Fixes: 503ab8c56ca0 ("iwlwifi: Add 8000 HW family support")
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
drivers/net/wireless/intel/iwlwifi/fw/api/commands.h
drivers/net/wireless/intel/iwlwifi/fw/api/led.h [new file with mode: 0644]
drivers/net/wireless/intel/iwlwifi/mvm/fw-api.h
drivers/net/wireless/intel/iwlwifi/mvm/fw.c
drivers/net/wireless/intel/iwlwifi/mvm/led.c
drivers/net/wireless/intel/iwlwifi/mvm/mvm.h
drivers/net/wireless/intel/iwlwifi/mvm/ops.c