aboutsummaryrefslogtreecommitdiffstats
path: root/package/network
diff options
context:
space:
mode:
authorDavid Bauer <mail@david-bauer.net>2020-05-21 09:50:37 +0200
committerDavid Bauer <mail@david-bauer.net>2020-05-22 21:54:30 +0200
commita9f75101508f64306710590bf45a326d4c2a1970 (patch)
tree321aad33f43f79b28cbdfff62ce7de1e25b85f0b /package/network
parentd6f66dd88e5d833f88fa4b6e056499ec7644ff7c (diff)
downloadupstream-a9f75101508f64306710590bf45a326d4c2a1970.tar.gz
upstream-a9f75101508f64306710590bf45a326d4c2a1970.tar.bz2
upstream-a9f75101508f64306710590bf45a326d4c2a1970.zip
hostapd: add WEP as queryable build feature
Commit 472fd98c5b12 ("hostapd: disable support for Wired Equivalent Privacy by default") made support for WEP optional. Expose the WEP support to LuCi or other userspace tools using the existing interface. This way they are able to remove WEP from the available ciphers if hostapd is built without WEP support. Signed-off-by: David Bauer <mail@david-bauer.net>
Diffstat (limited to 'package/network')
-rw-r--r--package/network/services/hostapd/src/src/utils/build_features.h4
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 abebecb570..b28ff6fa9f 100644
--- a/package/network/services/hostapd/src/src/utils/build_features.h
+++ b/package/network/services/hostapd/src/src/utils/build_features.h
@@ -39,6 +39,10 @@ static inline int has_feature(const char *feat)
if (!strcmp(feat, "suiteb192"))
return 1;
#endif
+#ifdef CONFIG_WEP
+ if (!strcmp(feat, "wep"))
+ return 1;
+#endif
return 0;
}