[PATCH 2/2] EHT: Verify supported capabilities
Alexander Savchenko
oleksandr.savchenko.dn at bp.renesas.com
Tue May 27 04:58:40 PDT 2025
Added the check for support EHT by the driver.
Signed-off-by: Alexander Savchenko <oleksandr.savchenko.dn at bp.renesas.com>
---
src/ap/hw_features.c | 15 +++++++++++++++
1 file changed, 15 insertions(+)
diff --git a/src/ap/hw_features.c b/src/ap/hw_features.c
index 037fe74f2..1f80bdd24 100644
--- a/src/ap/hw_features.c
+++ b/src/ap/hw_features.c
@@ -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)) {
--
2.17.1
More information about the Hostap
mailing list