From 138205d6007b8b55b12bf96e8793ebd4c25462db Mon Sep 17 00:00:00 2001 From: Mathy Vanhoef Date: Mon, 6 Aug 2018 15:46:25 -0400 Subject: [PATCH] OCV: Add build configuration for channel validation support Add compilation flags for Operating Channel Verification (OCV) support. Signed-off-by: Mathy Vanhoef --- hostapd/Android.mk | 5 +++++ hostapd/Makefile | 5 +++++ hostapd/android.config | 3 +++ hostapd/defconfig | 3 +++ wpa_supplicant/Android.mk | 5 +++++ wpa_supplicant/Makefile | 5 +++++ wpa_supplicant/android.config | 3 +++ wpa_supplicant/defconfig | 3 +++ 8 files changed, 32 insertions(+) diff --git a/hostapd/Android.mk b/hostapd/Android.mk index 322f6a632..82d43c754 100644 --- a/hostapd/Android.mk +++ b/hostapd/Android.mk @@ -235,6 +235,11 @@ L_CFLAGS += -DCONFIG_SUITEB192 NEED_SHA384=y endif +ifdef CONFIG_OCV +L_CFLAGS += -DCONFIG_OCV +CONFIG_IEEE80211W=y +endif + ifdef CONFIG_IEEE80211W L_CFLAGS += -DCONFIG_IEEE80211W NEED_SHA256=y diff --git a/hostapd/Makefile b/hostapd/Makefile index 2ce8b7ded..d88964c32 100644 --- a/hostapd/Makefile +++ b/hostapd/Makefile @@ -278,6 +278,11 @@ CFLAGS += -DCONFIG_SUITEB192 NEED_SHA384=y endif +ifdef CONFIG_OCV +CFLAGS += -DCONFIG_OCV +CONFIG_IEEE80211W=y +endif + ifdef CONFIG_IEEE80211W CFLAGS += -DCONFIG_IEEE80211W NEED_SHA256=y diff --git a/hostapd/android.config b/hostapd/android.config index 08d21f044..e14423f26 100644 --- a/hostapd/android.config +++ b/hostapd/android.config @@ -50,6 +50,9 @@ CONFIG_DRIVER_NL80211_QCA=y # Driver support is also needed for IEEE 802.11w. CONFIG_IEEE80211W=y +# Support Operating Channel Validation +#CONFIG_OCV=y + # Integrated EAP server #CONFIG_EAP=y diff --git a/hostapd/defconfig b/hostapd/defconfig index 77a894d5e..58e525dfa 100644 --- a/hostapd/defconfig +++ b/hostapd/defconfig @@ -53,6 +53,9 @@ CONFIG_RSN_PREAUTH=y # IEEE 802.11w (management frame protection) CONFIG_IEEE80211W=y +# Support Operating Channel Validation +#CONFIG_OCV=y + # Integrated EAP server CONFIG_EAP=y diff --git a/wpa_supplicant/Android.mk b/wpa_supplicant/Android.mk index a6809956d..f3b6d2cfa 100644 --- a/wpa_supplicant/Android.mk +++ b/wpa_supplicant/Android.mk @@ -207,6 +207,11 @@ L_CFLAGS += -DCONFIG_SUITEB192 NEED_SHA384=y endif +ifdef CONFIG_OCV +L_CFLAGS += -DCONFIG_OCV +CONFIG_IEEE80211W=y +endif + ifdef CONFIG_IEEE80211W L_CFLAGS += -DCONFIG_IEEE80211W NEED_SHA256=y diff --git a/wpa_supplicant/Makefile b/wpa_supplicant/Makefile index c2e93e20b..69132bb57 100644 --- a/wpa_supplicant/Makefile +++ b/wpa_supplicant/Makefile @@ -240,6 +240,11 @@ CFLAGS += -DCONFIG_SUITEB192 NEED_SHA384=y endif +ifdef CONFIG_OCV +CFLAGS += -DCONFIG_OCV +CONFIG_IEEE80211W=y +endif + ifdef CONFIG_IEEE80211W CFLAGS += -DCONFIG_IEEE80211W NEED_SHA256=y diff --git a/wpa_supplicant/android.config b/wpa_supplicant/android.config index c97f59131..6ecef0582 100644 --- a/wpa_supplicant/android.config +++ b/wpa_supplicant/android.config @@ -280,6 +280,9 @@ CONFIG_L2_PACKET=linux # Driver support is also needed for IEEE 802.11w. CONFIG_IEEE80211W=y +# Support Operating Channel Validation +#CONFIG_OCV=y + # Select TLS implementation # openssl = OpenSSL (default) # gnutls = GnuTLS diff --git a/wpa_supplicant/defconfig b/wpa_supplicant/defconfig index af281e56d..da0b3f126 100644 --- a/wpa_supplicant/defconfig +++ b/wpa_supplicant/defconfig @@ -301,6 +301,9 @@ CONFIG_BACKEND=file # Driver support is also needed for IEEE 802.11w. #CONFIG_IEEE80211W=y +# Support Operating Channel Validation +#CONFIG_OCV=y + # Select TLS implementation # openssl = OpenSSL (default) # gnutls = GnuTLS