From f60628f33ca9891fd9fb814588530df56ebdcdca Mon Sep 17 00:00:00 2001 From: Michael Yartys Date: Sun, 13 Feb 2022 15:09:56 +0100 Subject: hostapd: enable compilation of OCV and add build feature discovery Operating Channel Validation (OCV) is a security feature designed to prevent person-in-the-middle multi-channel attacks. Compile the -basic and -full variants of hostapd with this feature, and enable discovery of this feature for future luci integration. OCV can be configured by setting ocv equal to one of the following values in the wireless config: 0 = disabled (hostapd/wpa_supplicant default) 1 = enabled 2 = enabled in workaround mode - Allow STA that claims OCV capability to connect even if the STA doesn't send OCI or negotiate PMF. Signed-off-by: Michael Yartys --- package/network/services/hostapd/src/src/utils/build_features.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'package/network/services/hostapd/src') diff --git a/package/network/services/hostapd/src/src/utils/build_features.h b/package/network/services/hostapd/src/src/utils/build_features.h index cb7cb72731..642a35836e 100644 --- a/package/network/services/hostapd/src/src/utils/build_features.h +++ b/package/network/services/hostapd/src/src/utils/build_features.h @@ -54,6 +54,10 @@ static inline int has_feature(const char *feat) #ifdef CONFIG_FILS if (!strcmp(feat, "fils")) return 1; +#endif +#ifdef CONFIG_OCV + if (!strcmp(feat, "ocv")) + return 1; #endif return 0; } -- cgit v1.2.3