]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
HE: Verify supported capabilities
authorJohn Crispin <john@phrozen.org>
Mon, 20 May 2019 07:55:09 +0000 (09:55 +0200)
committerJouni Malinen <j@w1.fi>
Mon, 27 May 2019 14:42:40 +0000 (17:42 +0300)
Signed-off-by: Shashidhar Lakkavalli <slakkavalli@datto.com>
Signed-off-by: John Crispin <john@phrozen.org>
src/ap/hw_features.c

index 89c3c5f723bebd5bb682ba5e49d7c97c40fbea16..c1f19e26b55034164a555e2791f5197414dc24b0 100644 (file)
@@ -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))