From: John Crispin Date: Mon, 20 May 2019 07:55:07 +0000 (+0200) Subject: HE: Remove vht_ prefix from CSA/bandwidth X-Git-Tag: hostap_2_9~249 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f200631c3563c20bd3cb641c06285d6a7353b888;p=thirdparty%2Fhostap.git HE: Remove vht_ prefix from CSA/bandwidth Bandwidth is used for both VHT and HE here. Signed-off-by: Shashidhar Lakkavalli Signed-off-by: John Crispin --- diff --git a/src/ap/hostapd.c b/src/ap/hostapd.c index 9fce748f1..4c3b959eb 100644 --- a/src/ap/hostapd.c +++ b/src/ap/hostapd.c @@ -3262,7 +3262,7 @@ static int hostapd_fill_csa_settings(struct hostapd_data *hapd, struct hostapd_iface *iface = hapd->iface; struct hostapd_freq_params old_freq; int ret; - u8 chan, vht_bandwidth; + u8 chan, bandwidth; os_memset(&old_freq, 0, sizeof(old_freq)); if (!iface || !iface->freq || hapd->csa_in_progress) @@ -3271,22 +3271,22 @@ static int hostapd_fill_csa_settings(struct hostapd_data *hapd, switch (settings->freq_params.bandwidth) { case 80: if (settings->freq_params.center_freq2) - vht_bandwidth = CHANWIDTH_80P80MHZ; + bandwidth = CHANWIDTH_80P80MHZ; else - vht_bandwidth = CHANWIDTH_80MHZ; + bandwidth = CHANWIDTH_80MHZ; break; case 160: - vht_bandwidth = CHANWIDTH_160MHZ; + bandwidth = CHANWIDTH_160MHZ; break; default: - vht_bandwidth = CHANWIDTH_USE_HT; + bandwidth = CHANWIDTH_USE_HT; break; } if (ieee80211_freq_to_channel_ext( settings->freq_params.freq, settings->freq_params.sec_channel_offset, - vht_bandwidth, + bandwidth, &hapd->iface->cs_oper_class, &chan) == NUM_HOSTAPD_MODES) { wpa_printf(MSG_DEBUG,