aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/notify.c
diff options
context:
space:
mode:
authorDmitry Shmidt <dimitrysh@google.com>2013-11-11 20:25:17 (GMT)
committerJouni Malinen <j@w1.fi>2013-11-17 14:47:45 (GMT)
commit6b4990766595b77d488d50e1a8e6952e3cdd87ed (patch)
treeec45fedf1651df87540c0114e9b25c89fc823ffd /wpa_supplicant/notify.c
parent22cf7d7324ee5e75d3baf905123a5554edf36e8b (diff)
downloadhostap-6b4990766595b77d488d50e1a8e6952e3cdd87ed.zip
hostap-6b4990766595b77d488d50e1a8e6952e3cdd87ed.tar.gz
hostap-6b4990766595b77d488d50e1a8e6952e3cdd87ed.tar.bz2
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 <dimitrysh@google.com>
Diffstat (limited to 'wpa_supplicant/notify.c')
-rw-r--r--wpa_supplicant/notify.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/wpa_supplicant/notify.c b/wpa_supplicant/notify.c
index 40cffdf..a82fbf3 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 */
}