From: Lior David Date: Tue, 22 Jan 2019 15:24:35 +0000 (+0200) Subject: Fix test compilation error related to sme_event_unprot_disconnect() X-Git-Tag: hostap_2_8~511 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c85249aa150f0489d81902cc7505d6597ccea22b;p=thirdparty%2Fhostap.git Fix test compilation error related to sme_event_unprot_disconnect() sme_event_unprot_disconnect() is only defined with CONFIG_IEEE80211W, so the CONFIG_TESTING_OPTIONS command UNPROT_DEAUTH can be defined only with builds that enable IEEE 802.11w support. Signed-off-by: Lior David --- diff --git a/wpa_supplicant/ctrl_iface.c b/wpa_supplicant/ctrl_iface.c index 9c4b3eaf2..7d38095e1 100644 --- a/wpa_supplicant/ctrl_iface.c +++ b/wpa_supplicant/ctrl_iface.c @@ -10580,10 +10580,12 @@ char * wpa_supplicant_ctrl_iface_process(struct wpa_supplicant *wpa_s, } else if (os_strcmp(buf, "RESEND_ASSOC") == 0) { if (wpas_ctrl_resend_assoc(wpa_s) < 0) reply_len = -1; +#ifdef CONFIG_IEEE80211W } else if (os_strcmp(buf, "UNPROT_DEAUTH") == 0) { sme_event_unprot_disconnect( wpa_s, wpa_s->bssid, NULL, WLAN_REASON_CLASS2_FRAME_FROM_NONAUTH_STA); +#endif /* CONFIG_IEEE80211W */ #endif /* CONFIG_TESTING_OPTIONS */ } else if (os_strncmp(buf, "VENDOR_ELEM_ADD ", 16) == 0) { if (wpas_ctrl_vendor_elem_add(wpa_s, buf + 16) < 0)