From: John Crispin Date: Mon, 20 May 2019 07:55:09 +0000 (+0200) Subject: HE: Verify supported capabilities X-Git-Tag: hostap_2_9~233 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=63e194043256fa83e93a506aa2afd9b9825c56a4;p=thirdparty%2Fhostap.git HE: Verify supported capabilities Signed-off-by: Shashidhar Lakkavalli Signed-off-by: John Crispin --- diff --git a/src/ap/hw_features.c b/src/ap/hw_features.c index 89c3c5f72..c1f19e26b 100644 --- a/src/ap/hw_features.c +++ b/src/ap/hw_features.c @@ -655,6 +655,14 @@ static int ieee80211ac_supported_vht_capab(struct hostapd_iface *iface) } #endif /* CONFIG_IEEE80211AC */ + +#ifdef CONFIG_IEEE80211AX +static int ieee80211ax_supported_he_capab(struct hostapd_iface *iface) +{ + return 1; +} +#endif /* CONFIG_IEEE80211AX */ + #endif /* CONFIG_IEEE80211N */ @@ -675,6 +683,11 @@ int hostapd_check_ht_capab(struct hostapd_iface *iface) if (!ieee80211n_supported_ht_capab(iface)) return -1; +#ifdef CONFIG_IEEE80211AX + if (iface->conf->ieee80211ax && + !ieee80211ax_supported_he_capab(iface)) + return -1; +#endif /* CONFIG_IEEE80211AX */ #ifdef CONFIG_IEEE80211AC if (iface->conf->ieee80211ac && !ieee80211ac_supported_vht_capab(iface))