]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
HE: Enable ACS similarly to VHT
authorJohn Crispin <john@phrozen.org>
Mon, 20 May 2019 07:55:09 +0000 (09:55 +0200)
committerJouni Malinen <j@w1.fi>
Mon, 27 May 2019 14:41:23 +0000 (17:41 +0300)
Signed-off-by: Shashidhar Lakkavalli <slakkavalli@datto.com>
Signed-off-by: John Crispin <john@phrozen.org>
src/ap/acs.c
src/ap/ap_drv_ops.c
src/ap/drv_callbacks.c

index 7863ae9b8ab406b1592c60ad6c1de1ebf9a50be5..11178a1f047c9a853880c8acb0458477578e9f84 100644 (file)
@@ -594,7 +594,7 @@ acs_find_ideal_chan(struct hostapd_iface *iface)
            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_80MHZ:
                        n_chans = 4;
@@ -607,7 +607,7 @@ acs_find_ideal_chan(struct hostapd_iface *iface)
 
        bw = num_chan_to_bw(n_chans);
 
-       /* TODO: VHT80+80. Update acs_adjust_center_freq() too. */
+       /* TODO: VHT/HE80+80. Update acs_adjust_center_freq() too. */
 
        wpa_printf(MSG_DEBUG,
                   "ACS: Survey analysis for selected bandwidth %d MHz", bw);
@@ -647,7 +647,7 @@ acs_find_ideal_chan(struct hostapd_iface *iface)
                }
 
                if (iface->current_mode->mode == HOSTAPD_MODE_IEEE80211A &&
-                   iface->conf->ieee80211ac) {
+                   (iface->conf->ieee80211ac || iface->conf->ieee80211ax)) {
                        if (hostapd_get_oper_chwidth(iface->conf) ==
                            CHANWIDTH_80MHZ &&
                            !acs_usable_vht80_chan(chan)) {
index 9249762ca8b40d999bd1648a94234a94364aacdd..dced3371d84ea7ceea9ab05158d323ab9d416386 100644 (file)
@@ -939,7 +939,9 @@ int hostapd_drv_do_acs(struct hostapd_data *hapd)
 
        /* Note: VHT20 is defined by combination of ht_capab & oper_chwidth
         */
-       if (hapd->iface->conf->ieee80211ac && params.ht40_enabled) {
+       if ((hapd->iface->conf->ieee80211ax ||
+            hapd->iface->conf->ieee80211ac) &&
+           params.ht40_enabled) {
                u8 oper_chwidth = hostapd_get_oper_chwidth(hapd->iface->conf);
 
                if (oper_chwidth == CHANWIDTH_80MHZ)
index 3c7bb6c43dde7d510ba7c2903565dcb0af34934a..104dc1cd7c0c99d1275e6d367b9199d648e6c7ad 100644 (file)
@@ -960,7 +960,7 @@ void hostapd_acs_channel_selected(struct hostapd_data *hapd,
                goto out;
        }
 
-       if (hapd->iface->conf->ieee80211ac) {
+       if (hapd->iface->conf->ieee80211ac || hapd->iface->conf->ieee80211ax) {
                /* set defaults for backwards compatibility */
                hostapd_set_oper_centr_freq_seg1_idx(hapd->iconf, 0);
                hostapd_set_oper_centr_freq_seg0_idx(hapd->iconf, 0);