Browse Source

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 <[email protected]>
David Bauer 5 years ago
parent
commit
a9f7510150
1 changed files with 4 additions and 0 deletions
  1. 4 0
      package/network/services/hostapd/src/src/utils/build_features.h

+ 4 - 0
package/network/services/hostapd/src/src/utils/build_features.h

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