[PATCH 2/3] hostapd: Fix explicit VHT channel switching

Michal Kazior michal.kazior
Tue Mar 18 05:37:35 PDT 2014


The ieee80211ac wasn't properly set for CSA. This led to inconsistent
beacons in some cases.

Signed-off-by: Michal Kazior <michal.kazior at tieto.com>
---
 src/ap/drv_callbacks.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/ap/drv_callbacks.c b/src/ap/drv_callbacks.c
index 439bf66..9ed7601 100644
--- a/src/ap/drv_callbacks.c
+++ b/src/ap/drv_callbacks.c
@@ -480,6 +480,8 @@ void hostapd_event_ch_switch(struct hostapd_data *hapd, int freq, int ht,
 
 	if (hapd->iface->csa_in_progress &&
 	    freq == hapd->iface->cs_freq_params.freq) {
+		hapd->iconf->ieee80211ac = hapd->iface->cs_freq_params.vht_enabled;
+
 		hostapd_cleanup_cs_params(hapd);
 
 		wpa_msg(hapd->msg_ctx, MSG_INFO, AP_CSA_FINISHED "freq=%d",
-- 
1.8.5.3




More information about the Hostap mailing list