diff options
author | Dmitry Shmidt <dimitrysh%android.com@gtempaccount.com> | 2014-05-13 23:53:15 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2014-05-13 23:53:15 +0000 |
commit | 384bd5d631a9d493d65afac4ce21a751e8cd2c68 (patch) | |
tree | 3e44cb6a708b4a0def33041c1794504630cb730c | |
parent | 62038fc4c5c596f04a87388bb42bdef13d359c39 (diff) | |
parent | 7b11946c48ebfab9b6a5d2c64366f19727d3a0af (diff) | |
download | hardware_libhardware_legacy-384bd5d631a9d493d65afac4ce21a751e8cd2c68.zip hardware_libhardware_legacy-384bd5d631a9d493d65afac4ce21a751e8cd2c68.tar.gz hardware_libhardware_legacy-384bd5d631a9d493d65afac4ce21a751e8cd2c68.tar.bz2 |
am 7b11946c: am 9739aeb2: Merge "Indicate WPA_EVENT_TERMINATING event on primary interface."
* commit '7b11946c48ebfab9b6a5d2c64366f19727d3a0af':
Indicate WPA_EVENT_TERMINATING event on primary interface.
-rw-r--r-- | wifi/wifi.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/wifi/wifi.c b/wifi/wifi.c index 25a6fb7..21f4577 100644 --- a/wifi/wifi.c +++ b/wifi/wifi.c @@ -720,26 +720,30 @@ int wifi_wait_on_socket(char *buf, size_t buflen) char *match, *match2; if (monitor_conn == NULL) { - return snprintf(buf, buflen, WPA_EVENT_TERMINATING " - connection closed"); + return snprintf(buf, buflen, "IFNAME=%s %s - connection closed", + primary_iface, WPA_EVENT_TERMINATING); } result = wifi_ctrl_recv(buf, &nread); /* Terminate reception on exit socket */ if (result == -2) { - return snprintf(buf, buflen, WPA_EVENT_TERMINATING " - connection closed"); + return snprintf(buf, buflen, "IFNAME=%s %s - connection closed", + primary_iface, WPA_EVENT_TERMINATING); } if (result < 0) { ALOGD("wifi_ctrl_recv failed: %s\n", strerror(errno)); - return snprintf(buf, buflen, WPA_EVENT_TERMINATING " - recv error"); + return snprintf(buf, buflen, "IFNAME=%s %s - recv error", + primary_iface, WPA_EVENT_TERMINATING); } buf[nread] = '\0'; /* Check for EOF on the socket */ if (result == 0 && nread == 0) { /* Fabricate an event to pass up */ ALOGD("Received EOF on supplicant socket\n"); - return snprintf(buf, buflen, WPA_EVENT_TERMINATING " - signal 0 received"); + return snprintf(buf, buflen, "IFNAME=%s %s - signal 0 received", + primary_iface, WPA_EVENT_TERMINATING); } /* * Events strings are in the format |