[PATCH 3/3] hostap: Tx Power Envelope also for 6GHz HE AP

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



According to IEEE P802.11ax/D8.0, Add Transmit Power Envelope element
for 6GHz HE AP.

Signed-off-by: Shay Bar <shay.bar@xxxxxxxxxx>
---
 src/ap/beacon.c | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/src/ap/beacon.c b/src/ap/beacon.c
index 477caa494..c8ac0e007 100644
--- a/src/ap/beacon.c
+++ b/src/ap/beacon.c
@@ -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);
-- 
2.17.1


_______________________________________________
Hostap mailing list
Hostap@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/hostap



[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux