hostapd: ubus: add handler for wps_status and guard WPS calls
[openwrt/staging/mkresin.git] / package / network / services / hostapd / src / src / utils / build_features.h
index 4013ae7b308d0137bdc9648f2723a11cfc9cf5e6..7ca65fa39141df29211528bc39cbf9c7bc1a832f 100644 (file)
@@ -15,6 +15,10 @@ static inline int has_feature(const char *feat)
        if (!strcmp(feat, "11ac"))
                return 1;
 #endif
+#ifdef CONFIG_IEEE80211AX
+       if (!strcmp(feat, "11ax"))
+               return 1;
+#endif
 #ifdef CONFIG_IEEE80211R
        if (!strcmp(feat, "11r"))
                return 1;
@@ -34,6 +38,22 @@ static inline int has_feature(const char *feat)
 #ifdef CONFIG_OWE
        if (!strcmp(feat, "owe"))
                return 1;
+#endif
+#ifdef CONFIG_SUITEB192
+       if (!strcmp(feat, "suiteb192"))
+               return 1;
+#endif
+#ifdef CONFIG_WEP
+       if (!strcmp(feat, "wep"))
+               return 1;
+#endif
+#ifdef CONFIG_HS20
+       if (!strcmp(feat, "hs20"))
+               return 1;
+#endif
+#ifdef CONFIG_WPS
+       if (!strcmp(feat, "wps"))
+               return 1;
 #endif
        return 0;
 }