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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxx>
---
 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


_______________________________________________
Hostap mailing list
Hostap@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/hostap



[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux