From 958cb34886739de18377bbda7d7fc2280ac96271 Mon Sep 17 00:00:00 2001 From: John Crispin Date: Mon, 20 May 2019 09:55:09 +0200 Subject: [PATCH] HE: Enable DFS similarly to VHT Signed-off-by: Shashidhar Lakkavalli Signed-off-by: John Crispin --- src/ap/dfs.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/ap/dfs.c b/src/ap/dfs.c index 417235b02..a3c9aa26f 100644 --- a/src/ap/dfs.c +++ b/src/ap/dfs.c @@ -28,7 +28,7 @@ static int dfs_get_used_n_chans(struct hostapd_iface *iface, int *seg1) if (iface->conf->ieee80211n && iface->conf->secondary_channel) n_chans = 2; - if (iface->conf->ieee80211ac) { + if (iface->conf->ieee80211ac || iface->conf->ieee80211ax) { switch (hostapd_get_oper_chwidth(iface->conf)) { case CHANWIDTH_USE_HT: break; @@ -238,7 +238,7 @@ static void dfs_adjust_center_freq(struct hostapd_iface *iface, u8 *oper_centr_freq_seg0_idx, u8 *oper_centr_freq_seg1_idx) { - if (!iface->conf->ieee80211ac) + if (!iface->conf->ieee80211ac && !iface->conf->ieee80211ax) return; if (!chan) @@ -288,8 +288,8 @@ static int dfs_get_start_chan_idx(struct hostapd_iface *iface, int *seg1_start) if (iface->conf->ieee80211n && iface->conf->secondary_channel == -1) channel_no -= 4; - /* VHT */ - if (iface->conf->ieee80211ac) { + /* VHT/HE */ + if (iface->conf->ieee80211ac || iface->conf->ieee80211ax) { switch (hostapd_get_oper_chwidth(iface->conf)) { case CHANWIDTH_USE_HT: break;