From: Alexander Savchenko Date: Tue, 27 May 2025 11:58:39 +0000 (+0300) Subject: HE: Verify supported capabilities X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f4926d16555f1e8a9dbc04ae8cc068c616eb59b3;p=thirdparty%2Fhostap.git HE: Verify supported capabilities Added the check for support HE by the driver. Signed-off-by: Alexander Savchenko --- diff --git a/src/ap/hw_features.c b/src/ap/hw_features.c index cef38173e..037fe74f2 100644 --- a/src/ap/hw_features.c +++ b/src/ap/hw_features.c @@ -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 &&