]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
EHT: Verify supported capabilities
authorAlexander Savchenko <oleksandr.savchenko.dn@bp.renesas.com>
Tue, 27 May 2025 11:58:40 +0000 (14:58 +0300)
committerJouni Malinen <j@w1.fi>
Mon, 29 Sep 2025 10:55:01 +0000 (13:55 +0300)
Added the check for support EHT by the driver.

Signed-off-by: Alexander Savchenko <oleksandr.savchenko.dn@bp.renesas.com>
src/ap/hw_features.c

index 037fe74f2ef8ed46915ce302f59d4ba75059da85..1f80bdd24082c15b10aa6c11796fd08effc72acb 100644 (file)
@@ -727,6 +727,14 @@ static int ieee80211ac_supported_vht_capab(struct hostapd_iface *iface)
 #endif /* CONFIG_IEEE80211AC */
 
 
+#ifdef CONFIG_IEEE80211BE
+static int ieee80211be_supported_eht_capab(struct hostapd_iface *iface)
+{
+       return iface->current_mode->eht_capab[IEEE80211_MODE_AP].eht_supported;
+}
+#endif /* CONFIG_IEEE80211BE */
+
+
 #ifdef CONFIG_IEEE80211AX
 static int ieee80211ax_supported_he_capab(struct hostapd_iface *iface)
 {
@@ -754,6 +762,13 @@ int hostapd_check_ht_capab(struct hostapd_iface *iface)
 
        if (!ieee80211n_supported_ht_capab(iface))
                return -1;
+#ifdef CONFIG_IEEE80211BE
+       if (iface->conf->ieee80211be &&
+           !ieee80211be_supported_eht_capab(iface)) {
+               wpa_printf(MSG_ERROR, "Driver does not support EHT");
+               return -1;
+       }
+#endif /* CONFIG_IEEE80211BE */
 #ifdef CONFIG_IEEE80211AX
        if (iface->conf->ieee80211ax &&
            !ieee80211ax_supported_he_capab(iface)) {