From 63e194043256fa83e93a506aa2afd9b9825c56a4 Mon Sep 17 00:00:00 2001 From: John Crispin Date: Mon, 20 May 2019 09:55:09 +0200 Subject: [PATCH] HE: Verify supported capabilities Signed-off-by: Shashidhar Lakkavalli Signed-off-by: John Crispin --- src/ap/hw_features.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) 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)) -- 2.39.2