Permalink
Browse files

Add additional logging

Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
  • Loading branch information...
1 parent b74877b commit 007404c68f5cf6328e30b6d0edac3fd52ef36abb Dmitry Shmidt committed Feb 8, 2010
Showing with 2 additions and 1 deletion.
  1. +2 −1 wifi/wifi.c
View
@@ -308,7 +308,7 @@ int wifi_start_supplicant()
sched_yield();
while (count-- > 0) {
- #ifdef HAVE_LIBC_SYSTEM_PROPERTIES
+#ifdef HAVE_LIBC_SYSTEM_PROPERTIES
if (pi == NULL) {
pi = __system_property_find(SUPP_PROP_NAME);
}
@@ -428,6 +428,7 @@ int wifi_wait_for_event(char *buf, size_t buflen)
struct timeval *tptr;
if (monitor_conn == NULL) {
+ LOGD("Connection closed\n");
strncpy(buf, WPA_EVENT_TERMINATING " - connection closed", buflen-1);
buf[buflen-1] = '\0';
return strlen(buf);

0 comments on commit 007404c

Please sign in to comment.