]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Add Transmit Power Envelope also for 6 GHz HE AP
authorShay Bar <shay.bar@celeno.com>
Wed, 10 Feb 2021 11:07:19 +0000 (13:07 +0200)
committerJouni Malinen <j@w1.fi>
Sat, 13 Feb 2021 22:29:31 +0000 (00:29 +0200)
According to IEEE P802.11ax/D8.0, add Transmit Power Envelope element
into Beacon and Probe Response frames when operating HE AP on the 6 GHz
band.

Signed-off-by: Shay Bar <shay.bar@celeno.com>
src/ap/beacon.c

index 477caa4947dee4290cc06de8ec5d7d3cad7c4a63..5005e9c9d1d7d82e1dbec7a241e958e3de525bda 100644 (file)
@@ -563,6 +563,12 @@ static u8 * hostapd_gen_probe_resp(struct hostapd_data *hapd,
        }
 #endif /* CONFIG_IEEE80211AC */
 
+#ifdef CONFIG_IEEE80211AX
+       if (hapd->iconf->ieee80211ax && !hapd->conf->disable_11ax &&
+           is_6ghz_op_class(hapd->iconf->op_class))
+               pos = hostapd_eid_txpower_envelope(hapd, pos);
+#endif /* CONFIG_IEEE80211AX */
+
        if ((hapd->iconf->ieee80211ac && !hapd->conf->disable_11ac) ||
            (hapd->iconf->ieee80211ax && !hapd->conf->disable_11ax))
                pos = hostapd_eid_wb_chsw_wrapper(hapd, pos);
@@ -1291,6 +1297,12 @@ int ieee802_11_build_ap_params(struct hostapd_data *hapd,
        }
 #endif /* CONFIG_IEEE80211AC */
 
+#ifdef CONFIG_IEEE80211AX
+       if (hapd->iconf->ieee80211ax && !hapd->conf->disable_11ax &&
+           is_6ghz_op_class(hapd->iconf->op_class))
+               tailpos = hostapd_eid_txpower_envelope(hapd, tailpos);
+#endif /* CONFIG_IEEE80211AX */
+
        if ((hapd->iconf->ieee80211ac && !hapd->conf->disable_11ac) ||
            (hapd->iconf->ieee80211ax && !hapd->conf->disable_11ax))
                tailpos = hostapd_eid_wb_chsw_wrapper(hapd, tailpos);