]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
HE: Verify supported capabilities
authorAlexander Savchenko <oleksandr.savchenko.dn@bp.renesas.com>
Tue, 27 May 2025 11:58:39 +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 HE by the driver.

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

index cef38173efa2b2f1412b44bfc83336cc8be3f80b..037fe74f2ef8ed46915ce302f59d4ba75059da85 100644 (file)
@@ -730,7 +730,7 @@ static int ieee80211ac_supported_vht_capab(struct hostapd_iface *iface)
 #ifdef CONFIG_IEEE80211AX
 static int ieee80211ax_supported_he_capab(struct hostapd_iface *iface)
 {
-       return 1;
+       return iface->current_mode->he_capab[IEEE80211_MODE_AP].he_supported;
 }
 #endif /* CONFIG_IEEE80211AX */
 
@@ -756,8 +756,10 @@ int hostapd_check_ht_capab(struct hostapd_iface *iface)
                return -1;
 #ifdef CONFIG_IEEE80211AX
        if (iface->conf->ieee80211ax &&
-           !ieee80211ax_supported_he_capab(iface))
+           !ieee80211ax_supported_he_capab(iface)) {
+               wpa_printf(MSG_ERROR, "Driver does not support HE");
                return -1;
+       }
 #endif /* CONFIG_IEEE80211AX */
 #ifdef CONFIG_IEEE80211AC
        if (iface->conf->ieee80211ac &&