diff options
author | San Mehat <san@google.com> | 2009-06-16 10:50:47 -0700 |
---|---|---|
committer | San Mehat <san@google.com> | 2009-06-16 10:50:47 -0700 |
commit | 0f48658d2052560141448dc8f90adbbb0879bc0d (patch) | |
tree | df2a91a57c5bf10d1d9570957562c5f6873c4bb0 /nexus | |
parent | 5fc4129fcb9609790e2d1d3a93c7d9de8dd94ccb (diff) | |
download | core-0f48658d2052560141448dc8f90adbbb0879bc0d.tar.gz core-0f48658d2052560141448dc8f90adbbb0879bc0d.tar.bz2 core-0f48658d2052560141448dc8f90adbbb0879bc0d.zip |
nexus: Add some logging output to WifiController
Signed-off-by: San Mehat <san@google.com>
Diffstat (limited to 'nexus')
-rw-r--r-- | nexus/WifiController.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
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: |