summaryrefslogtreecommitdiff
path: root/hostapd
diff options
context:
space:
mode:
authorAloka Dixit <quic_alokad@quicinc.com>2022-04-19 11:04:03 -0700
committerJouni Malinen <j@w1.fi>2022-04-29 17:28:39 +0300
commit8dcc2139ff8f9d767e46bc09276b55e33561cc35 (patch)
treee7bf5332f480a37f22dd811e4b62cb425fdd01fb /hostapd
parent9f7da264bdd35dde43057489c21d972b21834ae1 (diff)
downloadhostap-8dcc2139ff8f9d767e46bc09276b55e33561cc35.tar.gz
EHT: AP mode configuration options to enable/disable the support
Add compilation support for IEEE 802.11be along with options to enable EHT support per radio and disable per interface. Enabling HE is mandatory to enable EHT mode. Tested-by: Pradeep Kumar Chitrapu <quic_pradeepc@quicinc.com> Signed-off-by: Aloka Dixit <quic_alokad@quicinc.com> Signed-off-by: Pradeep Kumar Chitrapu <quic_pradeepc@quicinc.com>
Diffstat (limited to 'hostapd')
-rw-r--r--hostapd/Android.mk5
-rw-r--r--hostapd/Makefile5
-rw-r--r--hostapd/config_file.c6
-rw-r--r--hostapd/defconfig7
-rw-r--r--hostapd/hostapd.conf10
5 files changed, 33 insertions, 0 deletions
diff --git a/hostapd/Android.mk b/hostapd/Android.mk
index b89f3a69f..f36957594 100644
--- a/hostapd/Android.mk
+++ b/hostapd/Android.mk
@@ -294,6 +294,11 @@ ifdef CONFIG_IEEE80211AC
L_CFLAGS += -DCONFIG_IEEE80211AC
endif
+ifdef CONFIG_IEEE80211BE
+CONFIG_IEEE80211AX=y
+L_CFLAGS += -DCONFIG_IEEE80211BE
+endif
+
ifdef CONFIG_IEEE80211AX
L_CFLAGS += -DCONFIG_IEEE80211AX
endif
diff --git a/hostapd/Makefile b/hostapd/Makefile
index 0f9239052..25d6530d3 100644
--- a/hostapd/Makefile
+++ b/hostapd/Makefile
@@ -339,6 +339,11 @@ ifdef CONFIG_IEEE80211AC
CFLAGS += -DCONFIG_IEEE80211AC
endif
+ifdef CONFIG_IEEE80211BE
+CONFIG_IEEE80211AX=y
+CFLAGS += -DCONFIG_IEEE80211BE
+endif
+
ifdef CONFIG_IEEE80211AX
CFLAGS += -DCONFIG_IEEE80211AX
OBJS += ../src/ap/ieee802_11_he.o
diff --git a/hostapd/config_file.c b/hostapd/config_file.c
index ce29c62f4..a3ebfb2bc 100644
--- a/hostapd/config_file.c
+++ b/hostapd/config_file.c
@@ -4669,6 +4669,8 @@ static int hostapd_config_fill(struct hostapd_config *conf,
bss->disable_11ac = !!atoi(pos);
} else if (os_strcmp(buf, "disable_11ax") == 0) {
bss->disable_11ax = !!atoi(pos);
+ } else if (os_strcmp(buf, "disable_11be") == 0) {
+ bss->disable_11be = !!atoi(pos);
#ifdef CONFIG_PASN
#ifdef CONFIG_TESTING_OPTIONS
} else if (os_strcmp(buf, "force_kdk_derivation") == 0) {
@@ -4696,6 +4698,10 @@ static int hostapd_config_fill(struct hostapd_config *conf,
return 1;
} else if (os_strcmp(buf, "rnr") == 0) {
bss->rnr = atoi(pos);
+#ifdef CONFIG_IEEE80211BE
+ } else if (os_strcmp(buf, "ieee80211be") == 0) {
+ conf->ieee80211be = atoi(pos);
+#endif /* CONFIG_IEEE80211BE */
} else {
wpa_printf(MSG_ERROR,
"Line %d: unknown configuration item '%s'",
diff --git a/hostapd/defconfig b/hostapd/defconfig
index c458e7fa2..a9eab4d9c 100644
--- a/hostapd/defconfig
+++ b/hostapd/defconfig
@@ -158,6 +158,13 @@ CONFIG_IPV6=y
# IEEE 802.11ax HE support
#CONFIG_IEEE80211AX=y
+# IEEE 802.11be EHT support
+# CONFIG_IEEE80211AX is mandatory for setting CONFIG_IEEE80211BE.
+# Note: This is experimental and work in progress. The definitions are still
+# subject to change and this should not be expected to interoperate with the
+# final IEEE 802.11be version.
+#CONFIG_IEEE80211BE=y
+
# Simultaneous Authentication of Equals (SAE), WPA3-Personal
#CONFIG_SAE=y
diff --git a/hostapd/hostapd.conf b/hostapd/hostapd.conf
index 4efb73467..b24cd6ffb 100644
--- a/hostapd/hostapd.conf
+++ b/hostapd/hostapd.conf
@@ -990,6 +990,16 @@ wmm_ac_vo_acm=0
# Valid range: 0..20 TUs; default is 0 (disabled)
#unsol_bcast_probe_resp_interval=0
+##### IEEE 802.11be related configuration #####################################
+
+#ieee80211be: Whether IEEE 802.11be (EHT) is enabled
+# 0 = disabled (default)
+# 1 = enabled
+#ieee80211be=1
+
+#disable_11be: Boolean (0/1) to disable EHT for a specific BSS
+#disable_11be=0
+
##### IEEE 802.1X-2004 related configuration ##################################
# Require IEEE 802.1X authorization