Skip to content

Commit 361d676

Browse files
abhinavnxpfabiobaltieri
authored andcommitted
modules: hostap: Added 11AC kconfig
Added 11AC kconfig to disable 11AC mode. Used this kconfig to disable 80211ac confs. Signed-off-by: Abhinav Kulkarni <abhinav.kulkarni@nxp.com>
1 parent cb598a3 commit 361d676

File tree

3 files changed

+15
-2
lines changed

3 files changed

+15
-2
lines changed

modules/hostap/CMakeLists.txt

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,6 @@ zephyr_library_sources(
186186
${HOSTAP_SRC_BASE}/ap/comeback_token.c
187187
${HOSTAP_SRC_BASE}/ap/ieee802_11_ht.c
188188
${HOSTAP_SRC_BASE}/ap/ieee802_11_shared.c
189-
${HOSTAP_SRC_BASE}/ap/ieee802_11_vht.c
190189
${HOSTAP_SRC_BASE}/ap/ieee802_1x.c
191190
${HOSTAP_SRC_BASE}/ap/neighbor_db.c
192191
${HOSTAP_SRC_BASE}/ap/p2p_hostapd.c
@@ -213,6 +212,10 @@ zephyr_library_sources(
213212
${HOSTAP_SRC_BASE}/utils/ip_addr.c
214213
)
215214
215+
zephyr_library_sources_ifdef(CONFIG_WIFI_NM_WPA_SUPPLICANT_11AC
216+
${HOSTAP_SRC_BASE}/ap/ieee802_11_vht.c
217+
)
218+
216219
if (CONFIG_WIFI_NM_WPA_SUPPLICANT_MBO)
217220
zephyr_library_sources(${HOSTAP_SRC_BASE}/ap/mbo_ap.c)
218221
endif()
@@ -227,11 +230,14 @@ zephyr_library_compile_definitions(
227230
CONFIG_NO_VLAN
228231
CONFIG_NO_ACCOUNTING
229232
NEED_AP_MLME
230-
CONFIG_IEEE80211AC
231233
EAP_SERVER
232234
EAP_SERVER_IDENTITY
233235
)
234236
237+
zephyr_library_compile_definitions_ifdef(CONFIG_WIFI_NM_WPA_SUPPLICANT_11AC
238+
CONFIG_IEEE80211AC
239+
)
240+
235241
zephyr_library_compile_definitions_ifdef(CONFIG_WIFI_NM_WPA_SUPPLICANT_11AX
236242
CONFIG_IEEE80211AX
237243
)

modules/hostap/Kconfig

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -358,6 +358,11 @@ config WIFI_NM_WPA_SUPPLICANT_DPP
358358
select MBEDTLS_X509_CSR_WRITE_C
359359
select MBEDTLS_X509_CSR_PARSE_C
360360

361+
config WIFI_NM_WPA_SUPPLICANT_11AC
362+
bool "IEEE 802.11ac VHT support"
363+
depends on WIFI_NM_WPA_SUPPLICANT_AP || WIFI_NM_HOSTAPD_AP
364+
default y
365+
361366
config WIFI_NM_WPA_SUPPLICANT_11AX
362367
bool "IEEE 802.11ax HE support"
363368
depends on WIFI_NM_WPA_SUPPLICANT_AP || WIFI_NM_HOSTAPD_AP

modules/hostap/src/hapd_main.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -375,9 +375,11 @@ struct hostapd_config *hostapd_config_read2(const char *fname)
375375
bss->okc = 1;
376376
conf->no_pri_sec_switch = 1;
377377
conf->ht_op_mode_fixed = 1;
378+
#if CONFIG_WIFI_NM_WPA_SUPPLICANT_11AC
378379
conf->ieee80211ac = 1;
379380
conf->vht_oper_chwidth = CHANWIDTH_USE_HT;
380381
conf->vht_capab |= VHT_CAP_MAX_A_MPDU_LENGTH_EXPONENT_MAX;
382+
#endif
381383
#ifdef CONFIG_WIFI_NM_WPA_SUPPLICANT_11AX
382384
conf->ieee80211ax = 1;
383385
conf->he_oper_chwidth = CHANWIDTH_USE_HT;

0 commit comments

Comments
 (0)