hostapd: add WEP as queryable build feature
authorDavid Bauer <mail@david-bauer.net>
Thu, 21 May 2020 07:50:37 +0000 (09:50 +0200)
committerDavid Bauer <mail@david-bauer.net>
Fri, 22 May 2020 19:54:30 +0000 (21:54 +0200)
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>
package/network/services/hostapd/src/src/utils/build_features.h

index abebecb570ba7fe810c668f7dca6675019303be1..b28ff6fa9f548dfffcc9166911861bdb943c97d7 100644 (file)
@@ -38,6 +38,10 @@ static inline int has_feature(const char *feat)
 #ifdef CONFIG_SUITEB192
        if (!strcmp(feat, "suiteb192"))
                return 1;
+#endif
+#ifdef CONFIG_WEP
+       if (!strcmp(feat, "wep"))
+               return 1;
 #endif
        return 0;
 }