aboutsummaryrefslogtreecommitdiffstats
path: root/package/network/services/hostapd
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2017-02-19 22:04:16 +0100
committerJo-Philipp Wich <jo@mein.io>2017-02-20 12:06:18 +0100
commitaff2d5c856f34f46442f83974d4969c33ab1c563 (patch)
tree7571da8b387ef68ecac19bca7bc5878a5e06297c /package/network/services/hostapd
parent0247314f7d4b0db1ce3db0971201bfd41e496a54 (diff)
downloadupstream-aff2d5c856f34f46442f83974d4969c33ab1c563.tar.gz
upstream-aff2d5c856f34f46442f83974d4969c33ab1c563.tar.bz2
upstream-aff2d5c856f34f46442f83974d4969c33ab1c563.zip
hostapd: fix feature indication
- Fix eap test to work with standalone hostapd builds - Fix 11n test to check the correct define - Add 11ac, 11r and 11w tests Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'package/network/services/hostapd')
-rw-r--r--package/network/services/hostapd/src/src/utils/build_features.h16
1 files changed, 14 insertions, 2 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 ffbb7978d9..315804361c 100644
--- a/package/network/services/hostapd/src/src/utils/build_features.h
+++ b/package/network/services/hostapd/src/src/utils/build_features.h
@@ -3,14 +3,26 @@
static inline int has_feature(const char *feat)
{
-#ifdef IEEE8021X_EAPOL
+#if defined(IEEE8021X_EAPOL) || (defined(HOSTAPD) && !defined(CONFIG_NO_RADIUS))
if (!strcmp(feat, "eap"))
return 1;
#endif
-#ifdef IEEE80211N
+#ifdef CONFIG_IEEE80211N
if (!strcmp(feat, "11n"))
return 1;
#endif
+#ifdef CONFIG_IEEE80211AC
+ if (!strcmp(feat, "11ac"))
+ return 1;
+#endif
+#ifdef CONFIG_IEEE80211R
+ if (!strcmp(feat, "11r"))
+ return 1;
+#endif
+#ifdef CONFIG_IEEE80211W
+ if (!strcmp(feat, "11w"))
+ return 1;
+#endif
return 0;
}