3665c6c33f7ac8b0823c8b74963b253e999ef183
[openwrt/staging/981213.git] /
1 From f0e9f5aab52b3eab85d28338cc996972ced4c39c Mon Sep 17 00:00:00 2001
2 From: David Bauer <mail@david-bauer.net>
3 Date: Tue, 17 May 2022 23:07:59 +0200
4 Subject: [PATCH] ctrl: make WNM_AP functions dependant on CONFIG_AP
5
6 This fixes linking errors found when compiling wpa_supplicant with
7 CONFIG_WNM_AP enabled but CONFIG_AP disabled.
8
9 Signed-off-by: David Bauer <mail@david-bauer.net>
10 ---
11 wpa_supplicant/ctrl_iface.c | 4 ++--
12 1 file changed, 2 insertions(+), 2 deletions(-)
13
14 diff --git a/wpa_supplicant/ctrl_iface.c b/wpa_supplicant/ctrl_iface.c
15 index ac337e0f5..6e23114e6 100644
16 --- a/wpa_supplicant/ctrl_iface.c
17 +++ b/wpa_supplicant/ctrl_iface.c
18 @@ -12185,7 +12185,7 @@ char * wpa_supplicant_ctrl_iface_process(struct wpa_supplicant *wpa_s,
19 if (wpas_ctrl_iface_coloc_intf_report(wpa_s, buf + 18))
20 reply_len = -1;
21 #endif /* CONFIG_WNM */
22 -#ifdef CONFIG_WNM_AP
23 +#if defined(CONFIG_AP) && defined(CONFIG_WNM_AP)
24 } else if (os_strncmp(buf, "DISASSOC_IMMINENT ", 18) == 0) {
25 if (ap_ctrl_iface_disassoc_imminent(wpa_s, buf + 18))
26 reply_len = -1;
27 @@ -12195,7 +12195,7 @@ char * wpa_supplicant_ctrl_iface_process(struct wpa_supplicant *wpa_s,
28 } else if (os_strncmp(buf, "BSS_TM_REQ ", 11) == 0) {
29 if (ap_ctrl_iface_bss_tm_req(wpa_s, buf + 11))
30 reply_len = -1;
31 -#endif /* CONFIG_WNM_AP */
32 +#endif /* CONFIG_AP && CONFIG_WNM_AP */
33 } else if (os_strcmp(buf, "FLUSH") == 0) {
34 wpa_supplicant_ctrl_iface_flush(wpa_s);
35 } else if (os_strncmp(buf, "RADIO_WORK ", 11) == 0) {
36 --
37 2.35.1
38