aboutsummaryrefslogtreecommitdiffstats
path: root/package/network/services/hostapd/src/src/utils/build_features.h
diff options
context:
space:
mode:
Diffstat (limited to 'package/network/services/hostapd/src/src/utils/build_features.h')
-rw-r--r--package/network/services/hostapd/src/src/utils/build_features.h17
1 files changed, 17 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
new file mode 100644
index 0000000000..ffbb7978d9
--- /dev/null
+++ b/package/network/services/hostapd/src/src/utils/build_features.h
@@ -0,0 +1,17 @@
+#ifndef BUILD_FEATURES_H
+#define BUILD_FEATURES_H
+
+static inline int has_feature(const char *feat)
+{
+#ifdef IEEE8021X_EAPOL
+ if (!strcmp(feat, "eap"))
+ return 1;
+#endif
+#ifdef IEEE80211N
+ if (!strcmp(feat, "11n"))
+ return 1;
+#endif
+ return 0;
+}
+
+#endif /* BUILD_FEATURES_H */