]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Fix test compilation error related to sme_event_unprot_disconnect()
authorLior David <liord@codeaurora.org>
Tue, 22 Jan 2019 15:24:35 +0000 (17:24 +0200)
committerJouni Malinen <j@w1.fi>
Wed, 23 Jan 2019 22:21:28 +0000 (00:21 +0200)
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 <liord@codeaurora.org>
wpa_supplicant/ctrl_iface.c

index 9c4b3eaf2c871d6bd6d5468cd8c2ca31b51cb012..7d38095e19bf3b5e3d285e4914317d0b89d29d05 100644 (file)
@@ -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)