From 0f48658d2052560141448dc8f90adbbb0879bc0d Mon Sep 17 00:00:00 2001 From: San Mehat Date: Tue, 16 Jun 2009 10:50:47 -0700 Subject: nexus: Add some logging output to WifiController Signed-off-by: San Mehat --- nexus/WifiController.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'nexus') diff --git a/nexus/WifiController.cpp b/nexus/WifiController.cpp index 5c5db1a1d..b7bd6edad 100644 --- a/nexus/WifiController.cpp +++ b/nexus/WifiController.cpp @@ -69,7 +69,9 @@ int WifiController::stop() { } int WifiController::enable() { + if (!isPoweredUp()) { + LOGI("Powering up"); sendStatusBroadcast("Powering up WiFi hardware"); if (powerUp()) { LOGE("Powerup failed (%s)", strerror(errno)); @@ -78,6 +80,7 @@ int WifiController::enable() { } if (mModuleName[0] != '\0' && !isKernelModuleLoaded(mModuleName)) { + LOGI("Loading driver"); sendStatusBroadcast("Loading WiFi driver"); if (loadKernelModule(mModulePath, mModuleArgs)) { LOGE("Kernel module load failed (%s)", strerror(errno)); @@ -86,6 +89,7 @@ int WifiController::enable() { } if (!isFirmwareLoaded()) { + LOGI("Loading firmware"); sendStatusBroadcast("Loading WiFI firmware"); if (loadFirmware()) { LOGE("Firmware load failed (%s)", strerror(errno)); @@ -94,6 +98,7 @@ int WifiController::enable() { } if (!mSupplicant->isStarted()) { + LOGI("Starting WPA Supplicant"); sendStatusBroadcast("Starting WPA Supplicant"); if (mSupplicant->start()) { LOGE("Supplicant start failed (%s)", strerror(errno)); @@ -113,6 +118,7 @@ int WifiController::enable() { mPropMngr->registerProperty("wifi.scanmode", this); mPropMngr->registerProperty("wifi.interface", this); + LOGI("Enabled successfully"); return 0; out_unloadmodule: -- cgit v1.2.3