From 6b4990766595b77d488d50e1a8e6952e3cdd87ed Mon Sep 17 00:00:00 2001 From: Dmitry Shmidt Date: Mon, 11 Nov 2013 12:25:17 -0800 Subject: [PATCH] Android: Add SSID in supplicant change event In addition, change wpa_s->pending_bssid to wpa_s->bssid for the BSSID value in the event. Signed-off-by: Dmitry Shmidt --- wpa_supplicant/notify.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/wpa_supplicant/notify.c b/wpa_supplicant/notify.c index 40cffdfff..a82fbf3a9 100644 --- a/wpa_supplicant/notify.c +++ b/wpa_supplicant/notify.c @@ -90,9 +90,13 @@ void wpas_notify_state_changed(struct wpa_supplicant *wpa_s, #ifdef ANDROID wpa_msg_ctrl(wpa_s, MSG_INFO, WPA_EVENT_STATE_CHANGE - "id=%d state=%d BSSID=" MACSTR, + "id=%d state=%d BSSID=" MACSTR " SSID=%s", wpa_s->current_ssid ? wpa_s->current_ssid->id : -1, - new_state, MAC2STR(wpa_s->pending_bssid)); + new_state, + MAC2STR(wpa_s->bssid), + wpa_s->current_ssid && wpa_s->current_ssid->ssid ? + wpa_ssid_txt(wpa_s->current_ssid->ssid, + wpa_s->current_ssid->ssid_len) : ""); #endif /* ANDROID */ }