Browse Source

Fix build without CONFIG_CTRL_IFACE or CONFIG_NO_STDOUT_DEBUG

Signed-off-by: Solomon Peachy <pizza@shaftnet.org>
Solomon Peachy 12 years ago
parent
commit
7d37a357fa
1 changed files with 1 additions and 1 deletions
  1. 1 1
      wpa_supplicant/wpa_supplicant.c

+ 1 - 1
wpa_supplicant/wpa_supplicant.c

@@ -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),