• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

system/corennnnn


Commit MetaInfo

Revision0f48658d2052560141448dc8f90adbbb0879bc0d (tree)
Time2009-06-17 02:50:47
AuthorSan Mehat <san@goog...>
CommiterSan Mehat

Log Message

nexus: Add some logging output to WifiController

Signed-off-by: San Mehat <san@google.com>

Change Summary

Incremental Difference

--- a/nexus/WifiController.cpp
+++ b/nexus/WifiController.cpp
@@ -69,7 +69,9 @@ int WifiController::stop() {
6969 }
7070
7171 int WifiController::enable() {
72+
7273 if (!isPoweredUp()) {
74+ LOGI("Powering up");
7375 sendStatusBroadcast("Powering up WiFi hardware");
7476 if (powerUp()) {
7577 LOGE("Powerup failed (%s)", strerror(errno));
@@ -78,6 +80,7 @@ int WifiController::enable() {
7880 }
7981
8082 if (mModuleName[0] != '\0' && !isKernelModuleLoaded(mModuleName)) {
83+ LOGI("Loading driver");
8184 sendStatusBroadcast("Loading WiFi driver");
8285 if (loadKernelModule(mModulePath, mModuleArgs)) {
8386 LOGE("Kernel module load failed (%s)", strerror(errno));
@@ -86,6 +89,7 @@ int WifiController::enable() {
8689 }
8790
8891 if (!isFirmwareLoaded()) {
92+ LOGI("Loading firmware");
8993 sendStatusBroadcast("Loading WiFI firmware");
9094 if (loadFirmware()) {
9195 LOGE("Firmware load failed (%s)", strerror(errno));
@@ -94,6 +98,7 @@ int WifiController::enable() {
9498 }
9599
96100 if (!mSupplicant->isStarted()) {
101+ LOGI("Starting WPA Supplicant");
97102 sendStatusBroadcast("Starting WPA Supplicant");
98103 if (mSupplicant->start()) {
99104 LOGE("Supplicant start failed (%s)", strerror(errno));
@@ -113,6 +118,7 @@ int WifiController::enable() {
113118 mPropMngr->registerProperty("wifi.scanmode", this);
114119 mPropMngr->registerProperty("wifi.interface", this);
115120
121+ LOGI("Enabled successfully");
116122 return 0;
117123
118124 out_unloadmodule: