Patchwork Add SSID in supplicant change event

login
register
mail settings
Submitter Dmitry Shmidt
Date Nov. 11, 2013, 8:25 p.m.
Message ID <20131111202709.631C013F933@ushik.mtv.corp.google.com>
Download mbox | patch
Permalink /patch/290485/
State Accepted
Headers show

Comments

Dmitry Shmidt - Nov. 11, 2013, 8:25 p.m.
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
---
 wpa_supplicant/notify.c | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)
Jouni Malinen - Nov. 17, 2013, 4:24 p.m.
Thanks, applied.

Patch

diff --git a/wpa_supplicant/notify.c b/wpa_supplicant/notify.c
index 40cffdf..ab62bea 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 */
 }