Update ieee80211ac when channel switching

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

 



>From 041fe3cde140cb16762ecc7442d74d16fe2ea4fa Mon Sep 17 00:00:00 2001
From: peterhuang <peterhuang@xxxxxxxxxxx>
Date: Thu, 19 Aug 2021 19:22:06 +0800
Subject: [PATCH] Update ieee80211ac when channel switching

hostap will build wrong beacon_after if it doesn't update ieee80211ac
when channel switching.
---
 src/ap/hostapd.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/ap/hostapd.c b/src/ap/hostapd.c
index a8f1bf937..4b88641a2 100644
--- a/src/ap/hostapd.c
+++ b/src/ap/hostapd.c
@@ -3496,6 +3496,7 @@ static int hostapd_change_config_freq(struct hostapd_data *hapd,
 
 	conf->channel = channel;
 	conf->ieee80211n = params->ht_enabled;
+	conf->ieee80211ac = params->vht_enabled;
 	conf->secondary_channel = params->sec_channel_offset;
 	ieee80211_freq_to_chan(params->center_freq1,
 			       &seg0);
-- 
2.25.1

_______________________________________________
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