summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlwifi/iwl-config.h
diff options
context:
space:
mode:
authorEran Harary <eran.harary@intel.com>2014-09-29 08:27:56 +0200
committerEmmanuel Grumbach <emmanuel.grumbach@intel.com>2014-10-29 11:52:24 +0100
commitc7583d7dd62d44a5e930d67e7e6b881a569a5561 (patch)
tree7bb2b13b3e3d682e732c49b96a421158f113ec72 /drivers/net/wireless/iwlwifi/iwl-config.h
parentiwlwifi: pcie: fix recovery from ARC reset in WoWLAN (diff)
downloadlinux-c7583d7dd62d44a5e930d67e7e6b881a569a5561.tar.xz
linux-c7583d7dd62d44a5e930d67e7e6b881a569a5561.zip
iwlwifi: always run the secured flow for family 8000
In the new format the "CSS section" has the same TLV type as the "mem section". So we need to run the secured flow for all the 8000 products. Signed-off-by: Eran Harary <eran.harary@intel.com> Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-config.h')
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-config.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-config.h b/drivers/net/wireless/iwlwifi/iwl-config.h
index 76d363d1a497..f8aa9cf08279 100644
--- a/drivers/net/wireless/iwlwifi/iwl-config.h
+++ b/drivers/net/wireless/iwlwifi/iwl-config.h
@@ -87,6 +87,16 @@ enum iwl_device_family {
IWL_DEVICE_FAMILY_8000,
};
+static inline bool iwl_has_secure_boot(u32 hw_rev,
+ enum iwl_device_family family)
+{
+ /* return 1 only for family 8000 B0 */
+ if ((family == IWL_DEVICE_FAMILY_8000) && (hw_rev & 0xC))
+ return 1;
+
+ return 0;
+}
+
/*
* LED mode
* IWL_LED_DEFAULT: use device default