mirror of
https://github.com/Telecominfraproject/wlan-ap.git
synced 2025-12-21 11:22:50 +00:00
Some checks failed
Build OpenWrt/uCentral images / build (cig_wf186h) (push) Has been cancelled
Build OpenWrt/uCentral images / build (cig_wf186w) (push) Has been cancelled
Build OpenWrt/uCentral images / build (cig_wf188n) (push) Has been cancelled
Build OpenWrt/uCentral images / build (cig_wf189) (push) Has been cancelled
Build OpenWrt/uCentral images / build (cig_wf196) (push) Has been cancelled
Build OpenWrt/uCentral images / build (cybertan_eww631-a1) (push) Has been cancelled
Build OpenWrt/uCentral images / build (cybertan_eww631-b1) (push) Has been cancelled
Build OpenWrt/uCentral images / build (edgecore_eap101) (push) Has been cancelled
Build OpenWrt/uCentral images / build (edgecore_eap102) (push) Has been cancelled
Build OpenWrt/uCentral images / build (edgecore_eap104) (push) Has been cancelled
Build OpenWrt/uCentral images / build (edgecore_eap105) (push) Has been cancelled
Build OpenWrt/uCentral images / build (edgecore_eap111) (push) Has been cancelled
Build OpenWrt/uCentral images / build (edgecore_eap112) (push) Has been cancelled
Build OpenWrt/uCentral images / build (edgecore_oap101) (push) Has been cancelled
Build OpenWrt/uCentral images / build (edgecore_oap101-6e) (push) Has been cancelled
Build OpenWrt/uCentral images / build (edgecore_oap101e) (push) Has been cancelled
Build OpenWrt/uCentral images / build (edgecore_oap101e-6e) (push) Has been cancelled
Build OpenWrt/uCentral images / build (hfcl_ion4x) (push) Has been cancelled
Build OpenWrt/uCentral images / build (hfcl_ion4x_2) (push) Has been cancelled
Build OpenWrt/uCentral images / build (hfcl_ion4x_3) (push) Has been cancelled
Build OpenWrt/uCentral images / build (hfcl_ion4x_w) (push) Has been cancelled
Build OpenWrt/uCentral images / build (hfcl_ion4xe) (push) Has been cancelled
Build OpenWrt/uCentral images / build (hfcl_ion4xi) (push) Has been cancelled
Build OpenWrt/uCentral images / build (hfcl_ion4xi_w) (push) Has been cancelled
Build OpenWrt/uCentral images / build (indio_um-305ax) (push) Has been cancelled
Build OpenWrt/uCentral images / build (sercomm_ap72tip) (push) Has been cancelled
Build OpenWrt/uCentral images / build (sonicfi_rap630c-311g) (push) Has been cancelled
Build OpenWrt/uCentral images / build (sonicfi_rap630w-211g) (push) Has been cancelled
Build OpenWrt/uCentral images / build (sonicfi_rap630w-311g) (push) Has been cancelled
Build OpenWrt/uCentral images / build (udaya_a6-id2) (push) Has been cancelled
Build OpenWrt/uCentral images / build (udaya_a6-od2) (push) Has been cancelled
Build OpenWrt/uCentral images / build (wallys_dr5018) (push) Has been cancelled
Build OpenWrt/uCentral images / build (wallys_dr6018) (push) Has been cancelled
Build OpenWrt/uCentral images / build (wallys_dr6018-v4) (push) Has been cancelled
Build OpenWrt/uCentral images / build (yuncore_ax820) (push) Has been cancelled
Build OpenWrt/uCentral images / build (yuncore_ax840) (push) Has been cancelled
Build OpenWrt/uCentral images / build (yuncore_fap640) (push) Has been cancelled
Build OpenWrt/uCentral images / build (yuncore_fap650) (push) Has been cancelled
Build OpenWrt/uCentral images / build (yuncore_fap655) (push) Has been cancelled
Build OpenWrt/uCentral images / trigger-testing (push) Has been cancelled
Build OpenWrt/uCentral images / create-x64_vm-ami (push) Has been cancelled
Signed-off-by: John Crispin <john@phrozen.org>
81 lines
2.6 KiB
Diff
81 lines
2.6 KiB
Diff
From ed2488e7b721ca430ddbe1245f7b40396b4685c9 Mon Sep 17 00:00:00 2001
|
|
From: Aloka Dixit <quic_alokad@quicinc.com>
|
|
Date: Thu, 22 Jul 2021 13:07:26 -0700
|
|
Subject: [PATCH 22/23] eht: configuration option for beacon rates
|
|
|
|
Add a new option 'eht' under 'beacon_rate' to configure EHT MCS rates.
|
|
Valid values for this option will be 0-15.
|
|
|
|
Signed-off-by: Aloka Dixit <quic_alokad@quicinc.com>
|
|
---
|
|
hostapd/config_file.c | 10 ++++++++++
|
|
hostapd/hostapd.conf | 2 ++
|
|
src/common/defs.h | 3 ++-
|
|
src/drivers/driver.h | 5 +++--
|
|
4 files changed, 17 insertions(+), 3 deletions(-)
|
|
|
|
diff --git a/hostapd/config_file.c b/hostapd/config_file.c
|
|
index 00af762..c00c24f 100644
|
|
--- a/hostapd/config_file.c
|
|
+++ b/hostapd/config_file.c
|
|
@@ -3259,6 +3259,16 @@ static int hostapd_config_fill(struct hostapd_config *conf,
|
|
}
|
|
conf->rate_type = BEACON_RATE_HE;
|
|
conf->beacon_rate = val;
|
|
+ } else if (os_strncmp(pos, "eht:", 3) == 0) {
|
|
+ val = atoi(pos + 3);
|
|
+ if (val < 0 || val > 15) {
|
|
+ wpa_printf(MSG_ERROR,
|
|
+ "Line %d: invalid beacon_rate EHT-MCS %d",
|
|
+ line, val);
|
|
+ return 1;
|
|
+ }
|
|
+ conf->rate_type = BEACON_RATE_EHT;
|
|
+ conf->beacon_rate = val;
|
|
} else {
|
|
val = atoi(pos);
|
|
if (val < 10 || val > 10000) {
|
|
diff --git a/hostapd/hostapd.conf b/hostapd/hostapd.conf
|
|
index a3a7dab..2893a4a 100644
|
|
--- a/hostapd/hostapd.conf
|
|
+++ b/hostapd/hostapd.conf
|
|
@@ -298,6 +298,8 @@ beacon_tx_mode=1
|
|
# beacon_rate=vht:<VHT MCS>
|
|
# HE:
|
|
# beacon_rate=he:<HE MCS>
|
|
+## EHT:
|
|
+# beacon_rate=eht:<EHT MCS>
|
|
#
|
|
# For example, beacon_rate=10 for 1 Mbps or beacon_rate=60 for 6 Mbps (OFDM).
|
|
#beacon_rate=10
|
|
diff --git a/src/common/defs.h b/src/common/defs.h
|
|
index c0c6dbe..981ce1e 100644
|
|
--- a/src/common/defs.h
|
|
+++ b/src/common/defs.h
|
|
@@ -427,7 +427,8 @@ enum beacon_rate_type {
|
|
BEACON_RATE_LEGACY,
|
|
BEACON_RATE_HT,
|
|
BEACON_RATE_VHT,
|
|
- BEACON_RATE_HE
|
|
+ BEACON_RATE_HE,
|
|
+ BEACON_RATE_EHT,
|
|
};
|
|
|
|
enum eap_proxy_sim_state {
|
|
diff --git a/src/drivers/driver.h b/src/drivers/driver.h
|
|
index 9549683..a9c8e9c 100644
|
|
--- a/src/drivers/driver.h
|
|
+++ b/src/drivers/driver.h
|
|
@@ -1428,8 +1428,9 @@ struct wpa_driver_ap_params {
|
|
* This parameter can be used to set a specific Beacon frame data rate
|
|
* for the BSS. The interpretation of this value depends on the
|
|
* rate_type (legacy: in 100 kbps units, HT: HT-MCS, VHT: VHT-MCS,
|
|
- * HE: HE-MCS). If beacon_rate == 0 and rate_type == 0
|
|
- * (BEACON_RATE_LEGACY), the default Beacon frame data rate is used.
|
|
+ * HE: HE-MCS, EHT: EHT-MCS).
|
|
+ * If beacon_rate == 0 and rate_type == 0 (BEACON_RATE_LEGACY),
|
|
+ * the default Beacon frame data rate is used.
|
|
*/
|
|
unsigned int beacon_rate;
|
|
|