OSDN Git Service

Add additional logging
authorDmitry Shmidt <dimitrysh@google.com>
Mon, 8 Feb 2010 17:29:48 +0000 (09:29 -0800)
committerDmitry Shmidt <dimitrysh@google.com>
Mon, 8 Feb 2010 17:30:59 +0000 (09:30 -0800)
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
wifi/wifi.c

index e6444f3..5f24dcd 100644 (file)
@@ -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);