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>
This commit is contained in:
parent
ef5cb964b1
commit
709c326461
1 changed files with 14 additions and 2 deletions
|
@ -3,13 +3,25 @@
|
||||||
|
|
||||||
static inline int has_feature(const char *feat)
|
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"))
|
if (!strcmp(feat, "eap"))
|
||||||
return 1;
|
return 1;
|
||||||
#endif
|
#endif
|
||||||
#ifdef IEEE80211N
|
#ifdef CONFIG_IEEE80211N
|
||||||
if (!strcmp(feat, "11n"))
|
if (!strcmp(feat, "11n"))
|
||||||
return 1;
|
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
|
#endif
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue