network/services/hostapd: move whole files outside of patches and drop Build/Prepare...
[openwrt/openwrt.git] / package / network / services / hostapd / src / src / utils / build_features.h
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 (file)
index 0000000..ffbb797
--- /dev/null
@@ -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 */