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>
This commit is contained in:
parent
642f727edc
commit
7840cec664
1 changed files with 2 additions and 2 deletions
|
@ -13292,7 +13292,7 @@ char * wpa_supplicant_ctrl_iface_process(struct wpa_supplicant *wpa_s,
|
|||
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(struct wpa_supplicant *wpa_s,
|
|||
} 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) {
|
||||
|
|
Loading…
Add table
Reference in a new issue