From 7869aadbd4523618fff6ac606a1aaa0bf75e174d Mon Sep 17 00:00:00 2001 From: Jeff Johnson Date: Mon, 15 May 2017 15:46:36 -0700 Subject: [PATCH] qcacld-3.0: Add Kbuild support for FIPS feature In order to get FIPS certification the driver will need to support a userspace API and accompanying logic to exercise the FIPS WMI interface exposed by firmware. Since this logic need not be enabled on production devices, expose a configuration knob so that it can be enabled or disabled on demand. Change-Id: I979be0175ea89e9147b07b222f54a7c3fc23dbd9 CRs-Fixed: 2065002 --- Kbuild | 7 +++++++ Kconfig | 4 ++++ 2 files changed, 11 insertions(+) diff --git a/Kbuild b/Kbuild index faab588e44d5..9e04d6d78507 100644 --- a/Kbuild +++ b/Kbuild @@ -167,6 +167,9 @@ ifneq ($(CONFIG_ROME_IF),sdio) #Flag to enable DISA CONFIG_WLAN_FEATURE_DISA := y + #Flag to enable FIPS + CONFIG_WLAN_FEATURE_FIPS := y + #Flag to enable Fast Path feature CONFIG_WLAN_FASTPATH := y @@ -2099,6 +2102,10 @@ ifeq ($(CONFIG_WLAN_FEATURE_DISA),y) CDEFINES += -DWLAN_FEATURE_DISA endif +ifeq ($(CONFIG_WLAN_FEATURE_FIPS),y) +CDEFINES += -DWLAN_FEATURE_FIPS +endif + ifeq ($(CONFIG_LFR_SUBNET_DETECTION), y) CDEFINES += -DFEATURE_LFR_SUBNET_DETECTION endif diff --git a/Kconfig b/Kconfig index cf9ee355ca46..1f00105f5c28 100644 --- a/Kconfig +++ b/Kconfig @@ -128,6 +128,10 @@ config WLAN_FEATURE_DISA bool "Enable DISA certification feature" default n +config WLAN_FEATURE_FIPS + bool "Enable FIPS certification feature" + default n + config WLAN_FEATURE_11AX bool "Enable 11AX(High Efficiency) feature" default n