treewide: nuke DRIVER_11W_SUPPORT
[openwrt/staging/hauke.git] / package / network / services / hostapd / src / src / utils / build_features.h
1 #ifndef BUILD_FEATURES_H
2 #define BUILD_FEATURES_H
3
4 static inline int has_feature(const char *feat)
5 {
6 #if defined(IEEE8021X_EAPOL) || (defined(HOSTAPD) && !defined(CONFIG_NO_RADIUS))
7 if (!strcmp(feat, "eap"))
8 return 1;
9 #endif
10 #ifdef CONFIG_IEEE80211N
11 if (!strcmp(feat, "11n"))
12 return 1;
13 #endif
14 #ifdef CONFIG_IEEE80211AC
15 if (!strcmp(feat, "11ac"))
16 return 1;
17 #endif
18 #ifdef CONFIG_IEEE80211AX
19 if (!strcmp(feat, "11ax"))
20 return 1;
21 #endif
22 #ifdef CONFIG_IEEE80211R
23 if (!strcmp(feat, "11r"))
24 return 1;
25 #endif
26 if (!strcmp(feat, "11w"))
27 return 1;
28 #ifdef CONFIG_ACS
29 if (!strcmp(feat, "acs"))
30 return 1;
31 #endif
32 #ifdef CONFIG_SAE
33 if (!strcmp(feat, "sae"))
34 return 1;
35 #endif
36 #ifdef CONFIG_OWE
37 if (!strcmp(feat, "owe"))
38 return 1;
39 #endif
40 #ifdef CONFIG_SUITEB192
41 if (!strcmp(feat, "suiteb192"))
42 return 1;
43 #endif
44 #ifdef CONFIG_WEP
45 if (!strcmp(feat, "wep"))
46 return 1;
47 #endif
48 #ifdef CONFIG_HS20
49 if (!strcmp(feat, "hs20"))
50 return 1;
51 #endif
52 #ifdef CONFIG_WPS
53 if (!strcmp(feat, "wps"))
54 return 1;
55 #endif
56 return 0;
57 }
58
59 #endif /* BUILD_FEATURES_H */