[PATCH] hostapd: respect obss_interval on 40MHz intolerant disconnect

Nicolas Escande nico.escande at gmail.com
Mon Apr 29 03:13:25 PDT 2024


When an AP is configured for HT operation on 40MHz but has overlapping BSS on
the secondary channel, it will fallback to 20MHz only. Also a 40MHz AP will
downgrade to 20MHz while at least 1 40MHz intolerant STA is connected.

However in the current code, on such an AP, we do not check the obss_interval
parameter on the last 40MHz intolerant STA disconnect & start a timer that will
unconditionnaly bring the AP to 40MHz operation even if it had overlapping BSS.

Signed-off-by: Nicolas Escande <nico.escande at gmail.com>
---
 src/ap/ieee802_11_ht.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/ap/ieee802_11_ht.c b/src/ap/ieee802_11_ht.c
index f90f1254e..af3ff9110 100644
--- a/src/ap/ieee802_11_ht.c
+++ b/src/ap/ieee802_11_ht.c
@@ -417,6 +417,7 @@ void ht40_intolerant_remove(struct hostapd_iface *iface, struct sta_info *sta)
 	iface->num_sta_ht40_intolerant--;
 
 	if (iface->num_sta_ht40_intolerant == 0 &&
+	    iface->conf->obss_interval &&
 	    (iface->conf->ht_capab & HT_CAP_INFO_SUPP_CHANNEL_WIDTH_SET) &&
 	    (iface->drv_flags & WPA_DRIVER_FLAGS_HT_2040_COEX)) {
 		unsigned int delay_time = OVERLAPPING_BSS_TRANS_DELAY_FACTOR *
-- 
2.44.0




More information about the Hostap mailing list