]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Fix build without CONFIG_CTRL_IFACE or CONFIG_NO_STDOUT_DEBUG
authorSolomon Peachy <pizza@shaftnet.org>
Sat, 16 Mar 2013 10:07:18 +0000 (12:07 +0200)
committerJouni Malinen <j@w1.fi>
Sat, 16 Mar 2013 10:07:18 +0000 (12:07 +0200)
Signed-off-by: Solomon Peachy <pizza@shaftnet.org>
wpa_supplicant/wpa_supplicant.c

index 908d7986bb936ceb7fc5488171c2a67528b7821c..da1a19c7a0dd4a8c8e1e5279ff3d16f45e099066 100644 (file)
@@ -655,8 +655,8 @@ void wpa_supplicant_set_state(struct wpa_supplicant *wpa_s,
                wpa_supplicant_notify_scanning(wpa_s, 0);
 
        if (state == WPA_COMPLETED && wpa_s->new_connection) {
-#if defined(CONFIG_CTRL_IFACE) || !defined(CONFIG_NO_STDOUT_DEBUG)
                struct wpa_ssid *ssid = wpa_s->current_ssid;
+#if defined(CONFIG_CTRL_IFACE) || !defined(CONFIG_NO_STDOUT_DEBUG)
                wpa_msg(wpa_s, MSG_INFO, WPA_EVENT_CONNECTED "- Connection to "
                        MACSTR " completed [id=%d id_str=%s]",
                        MAC2STR(wpa_s->bssid),