]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Do not include VHT elements in Beacon frames on the 6 GHz band
authorJouni Malinen <j@w1.fi>
Sat, 13 Feb 2021 22:31:04 +0000 (00:31 +0200)
committerJouni Malinen <j@w1.fi>
Sat, 13 Feb 2021 22:33:08 +0000 (00:33 +0200)
A similar change was previously done for Probe Response frames, but the
Beacon frame case was missed. Fix this to remove the VHT elements also
from Beacon frames on the 6 GHz since the relevant information is
included only in the HE elements on that band.

Fixes: 49e95ee1ee2c ("AP: Publish only HE capabilities and operation IEs on 6 GHz band")
Signed-off-by: Jouni Malinen <j@w1.fi>
src/ap/beacon.c

index 5005e9c9d1d7d82e1dbec7a241e958e3de525bda..fbbe8f4db79fe0045ea442b1c341d675e44bce34 100644 (file)
@@ -1290,7 +1290,8 @@ int ieee802_11_build_ap_params(struct hostapd_data *hapd,
 #endif /* CONFIG_FST */
 
 #ifdef CONFIG_IEEE80211AC
-       if (hapd->iconf->ieee80211ac && !hapd->conf->disable_11ac) {
+       if (hapd->iconf->ieee80211ac && !hapd->conf->disable_11ac &&
+           !is_6ghz_op_class(hapd->iconf->op_class)) {
                tailpos = hostapd_eid_vht_capabilities(hapd, tailpos, 0);
                tailpos = hostapd_eid_vht_operation(hapd, tailpos);
                tailpos = hostapd_eid_txpower_envelope(hapd, tailpos);