From 007404c68f5cf6328e30b6d0edac3fd52ef36abb Mon Sep 17 00:00:00 2001 From: Dmitry Shmidt Date: Mon, 8 Feb 2010 09:29:48 -0800 Subject: [PATCH] Add additional logging Signed-off-by: Dmitry Shmidt --- wifi/wifi.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wifi/wifi.c b/wifi/wifi.c index e6444f3..5f24dcd 100644 --- a/wifi/wifi.c +++ b/wifi/wifi.c @@ -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); -- 2.11.0