]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
6 GHz: Do not check for HT capability on 6 GHz channels
authorAnkita Bajaj <bankita@codeaurora.org>
Wed, 27 Nov 2019 06:55:27 +0000 (12:25 +0530)
committerJouni Malinen <j@w1.fi>
Thu, 5 Dec 2019 15:12:27 +0000 (17:12 +0200)
HT capability check is not required when starting AP on 6 GHz band as
only HE operation mode is allowed in the 6 GHz band.

Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
src/ap/hw_features.c

index 2fefaf842dfb367c5f6ed2b01c3adea8ec40421b..8b1ed708335d87ee0199d50c71844e301d57c48f 100644 (file)
@@ -670,6 +670,9 @@ int hostapd_check_ht_capab(struct hostapd_iface *iface)
 {
 #ifdef CONFIG_IEEE80211N
        int ret;
+
+       if (is_6ghz_freq(iface->freq))
+               return 0;
        if (!iface->conf->ieee80211n)
                return 0;