Some checks failed
Build Kernel / Build all affected Kernels (push) Has been cancelled
Build all core packages / Build all core packages for selected target (push) Has been cancelled
Build and Push prebuilt tools container / Build and Push all prebuilt containers (push) Has been cancelled
Build Toolchains / Build Toolchains for each target (push) Has been cancelled
Build host tools / Build host tools for linux and macos based systems (push) Has been cancelled
Coverity scan build / Coverity x86/64 build (push) Has been cancelled
34 lines
1.3 KiB
Diff
34 lines
1.3 KiB
Diff
From f0e9f5aab52b3eab85d28338cc996972ced4c39c Mon Sep 17 00:00:00 2001
|
|
From: David Bauer <mail@david-bauer.net>
|
|
Date: Tue, 17 May 2022 23:07:59 +0200
|
|
Subject: [PATCH] ctrl: make WNM_AP functions dependant on CONFIG_AP
|
|
|
|
This fixes linking errors found when compiling wpa_supplicant with
|
|
CONFIG_WNM_AP enabled but CONFIG_AP disabled.
|
|
|
|
Signed-off-by: David Bauer <mail@david-bauer.net>
|
|
---
|
|
wpa_supplicant/ctrl_iface.c | 4 ++--
|
|
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
|
|
--- a/wpa_supplicant/ctrl_iface.c
|
|
+++ b/wpa_supplicant/ctrl_iface.c
|
|
@@ -13292,7 +13292,7 @@ char * wpa_supplicant_ctrl_iface_process
|
|
if (wpas_ctrl_iface_coloc_intf_report(wpa_s, buf + 18))
|
|
reply_len = -1;
|
|
#endif /* CONFIG_WNM */
|
|
-#ifdef CONFIG_WNM_AP
|
|
+#if defined(CONFIG_AP) && defined(CONFIG_WNM_AP)
|
|
} else if (os_strncmp(buf, "DISASSOC_IMMINENT ", 18) == 0) {
|
|
if (ap_ctrl_iface_disassoc_imminent(wpa_s, buf + 18))
|
|
reply_len = -1;
|
|
@@ -13302,7 +13302,7 @@ char * wpa_supplicant_ctrl_iface_process
|
|
} else if (os_strncmp(buf, "BSS_TM_REQ ", 11) == 0) {
|
|
if (ap_ctrl_iface_bss_tm_req(wpa_s, buf + 11))
|
|
reply_len = -1;
|
|
-#endif /* CONFIG_WNM_AP */
|
|
+#endif /* CONFIG_AP && CONFIG_WNM_AP */
|
|
} else if (os_strcmp(buf, "FLUSH") == 0) {
|
|
wpa_supplicant_ctrl_iface_flush(wpa_s);
|
|
} else if (os_strncmp(buf, "RADIO_WORK ", 11) == 0) {
|