aboutsummaryrefslogtreecommitdiffstats
path: root/src/ap/ap_drv_ops.c
diff options
context:
space:
mode:
authorJohn Crispin <john@phrozen.org>2019-05-20 07:55:07 (GMT)
committerJouni Malinen <j@w1.fi>2019-05-27 13:30:05 (GMT)
commitc6b7ac077fca9788c24e527c32378b75e7de8cfe (patch)
tree3da57954ea60dff0086cb668e4c411390a7fa382 /src/ap/ap_drv_ops.c
parent39b9d059cd98510e7626032c5610c6849a380955 (diff)
downloadhostap-c6b7ac077fca9788c24e527c32378b75e7de8cfe.zip
hostap-c6b7ac077fca9788c24e527c32378b75e7de8cfe.tar.gz
hostap-c6b7ac077fca9788c24e527c32378b75e7de8cfe.tar.bz2
HE: Add helpers for getting the channel width parameters
Signed-off-by: Shashidhar Lakkavalli <slakkavalli@datto.com> Signed-off-by: John Crispin <john@phrozen.org>
Diffstat (limited to 'src/ap/ap_drv_ops.c')
-rw-r--r--src/ap/ap_drv_ops.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/ap/ap_drv_ops.c b/src/ap/ap_drv_ops.c
index 8cfd659..9d7759d 100644
--- a/src/ap/ap_drv_ops.c
+++ b/src/ap/ap_drv_ops.c
@@ -929,15 +929,15 @@ int hostapd_drv_do_acs(struct hostapd_data *hapd)
if (hapd->iface->conf->ieee80211n && params.ht40_enabled)
params.ch_width = 40;
- /* Note: VHT20 is defined by combination of ht_capab & vht_oper_chwidth
+ /* Note: VHT20 is defined by combination of ht_capab & oper_chwidth
*/
if (hapd->iface->conf->ieee80211ac && params.ht40_enabled) {
- if (hapd->iface->conf->vht_oper_chwidth == CHANWIDTH_80MHZ)
+ u8 oper_chwidth = hostapd_get_oper_chwidth(hapd->iface->conf);
+
+ if (oper_chwidth == CHANWIDTH_80MHZ)
params.ch_width = 80;
- else if (hapd->iface->conf->vht_oper_chwidth ==
- CHANWIDTH_160MHZ ||
- hapd->iface->conf->vht_oper_chwidth ==
- CHANWIDTH_80P80MHZ)
+ else if (oper_chwidth == CHANWIDTH_160MHZ ||
+ oper_chwidth == CHANWIDTH_80P80MHZ)
params.ch_width = 160;
}