summaryrefslogtreecommitdiff
path: root/drivers/net/wireless/iwlwifi/iwl-config.h
diff options
context:
space:
mode:
authorEran Harary <eran.harary@intel.com>2014-09-29 06:27:56 (GMT)
committerEmmanuel Grumbach <emmanuel.grumbach@intel.com>2014-10-29 10:52:24 (GMT)
commitc7583d7dd62d44a5e930d67e7e6b881a569a5561 (patch)
tree7bb2b13b3e3d682e732c49b96a421158f113ec72 /drivers/net/wireless/iwlwifi/iwl-config.h
parenta3ead6568c511d47b6cdc3d624ef0b4924e9dd27 (diff)
downloadlinux-c7583d7dd62d44a5e930d67e7e6b881a569a5561.tar.xz
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 76d363d..f8aa9cf 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