OSDN Git Service

Add BSSID in the state change message
authorDmitry Shmidt <dimitrysh@google.com>
Tue, 19 Jan 2010 19:51:00 +0000 (11:51 -0800)
committerDmitry Shmidt <dimitrysh@google.com>
Tue, 19 Jan 2010 19:55:09 +0000 (11:55 -0800)
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
wpa_supplicant/wpa_supplicant.c

index de38355..b411546 100644 (file)
@@ -501,8 +501,8 @@ void wpa_supplicant_set_state(struct wpa_supplicant *wpa_s, wpa_states state)
        wpa_supplicant_dbus_notify_state_change(wpa_s, state,
                                                wpa_s->wpa_state);
 #ifdef ANDROID
-       wpa_msg(wpa_s, MSG_INFO, WPA_EVENT_STATE_CHANGE "id=%d state=%d",
-                network_id, reported_state);
+       wpa_msg(wpa_s, MSG_INFO, WPA_EVENT_STATE_CHANGE "id=%d state=%d BSSID=" MACSTR,
+               network_id, reported_state, MAC2STR(wpa_s->bssid));
 #endif
 
        if (state == WPA_COMPLETED && wpa_s->new_connection) {