[PATCH] hw_features: clean center freq for falling back ht40 channels

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

 



Some channels fail to be set, when falling back to 20MHz, due to
remaining info of center freq. As we are going 20 MHz, reset the
info as well.

Signed-off-by: Eduardo Abinader <eduardoabinader@xxxxxxxxx>
---
 src/ap/hw_features.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/ap/hw_features.c b/src/ap/hw_features.c
index d66ff4b..0e0878b 100644
--- a/src/ap/hw_features.c
+++ b/src/ap/hw_features.c
@@ -329,6 +329,8 @@ static void ieee80211n_check_scan(struct hostapd_iface *iface)
 	res = ieee80211n_allowed_ht40_channel_pair(iface);
 	if (!res) {
 		iface->conf->secondary_channel = 0;
+		iface->conf->vht_oper_centr_freq_seg0_idx = 0;
+		iface->conf->vht_oper_centr_freq_seg1_idx = 0;
 		res = 1;
 		wpa_printf(MSG_INFO, "Fallback to 20 MHz");
 	}
-- 
2.5.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