diff options
author | Michael Yartys <michael.yartys@protonmail.com> | 2022-02-13 15:09:56 +0100 |
---|---|---|
committer | Hauke Mehrtens <hauke@hauke-m.de> | 2022-07-03 20:25:38 +0200 |
commit | f60628f33ca9891fd9fb814588530df56ebdcdca (patch) | |
tree | db5a94ee148b6f593e0117087ef09364fa1c454f /package/network/services/hostapd/src | |
parent | 90a63504230ed31303bf7978658ba5db74f54f84 (diff) | |
download | upstream-f60628f33ca9891fd9fb814588530df56ebdcdca.tar.gz upstream-f60628f33ca9891fd9fb814588530df56ebdcdca.tar.bz2 upstream-f60628f33ca9891fd9fb814588530df56ebdcdca.zip |
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 <michael.yartys@protonmail.com>
Diffstat (limited to 'package/network/services/hostapd/src')
-rw-r--r-- | package/network/services/hostapd/src/src/utils/build_features.h | 4 |
1 files changed, 4 insertions, 0 deletions
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 @@ -55,6 +55,10 @@ static inline int has_feature(const char *feat) if (!strcmp(feat, "fils")) return 1; #endif +#ifdef CONFIG_OCV + if (!strcmp(feat, "ocv")) + return 1; +#endif return 0; } |