system/corennnnn
Revision | 0f48658d2052560141448dc8f90adbbb0879bc0d (tree) |
---|---|
Time | 2009-06-17 02:50:47 |
Author | San Mehat <san@goog...> |
Commiter | San Mehat |
nexus: Add some logging output to WifiController
Signed-off-by: San Mehat <san@google.com>
@@ -69,7 +69,9 @@ int WifiController::stop() { | ||
69 | 69 | } |
70 | 70 | |
71 | 71 | int WifiController::enable() { |
72 | + | |
72 | 73 | if (!isPoweredUp()) { |
74 | + LOGI("Powering up"); | |
73 | 75 | sendStatusBroadcast("Powering up WiFi hardware"); |
74 | 76 | if (powerUp()) { |
75 | 77 | LOGE("Powerup failed (%s)", strerror(errno)); |
@@ -78,6 +80,7 @@ int WifiController::enable() { | ||
78 | 80 | } |
79 | 81 | |
80 | 82 | if (mModuleName[0] != '\0' && !isKernelModuleLoaded(mModuleName)) { |
83 | + LOGI("Loading driver"); | |
81 | 84 | sendStatusBroadcast("Loading WiFi driver"); |
82 | 85 | if (loadKernelModule(mModulePath, mModuleArgs)) { |
83 | 86 | LOGE("Kernel module load failed (%s)", strerror(errno)); |
@@ -86,6 +89,7 @@ int WifiController::enable() { | ||
86 | 89 | } |
87 | 90 | |
88 | 91 | if (!isFirmwareLoaded()) { |
92 | + LOGI("Loading firmware"); | |
89 | 93 | sendStatusBroadcast("Loading WiFI firmware"); |
90 | 94 | if (loadFirmware()) { |
91 | 95 | LOGE("Firmware load failed (%s)", strerror(errno)); |
@@ -94,6 +98,7 @@ int WifiController::enable() { | ||
94 | 98 | } |
95 | 99 | |
96 | 100 | if (!mSupplicant->isStarted()) { |
101 | + LOGI("Starting WPA Supplicant"); | |
97 | 102 | sendStatusBroadcast("Starting WPA Supplicant"); |
98 | 103 | if (mSupplicant->start()) { |
99 | 104 | LOGE("Supplicant start failed (%s)", strerror(errno)); |
@@ -113,6 +118,7 @@ int WifiController::enable() { | ||
113 | 118 | mPropMngr->registerProperty("wifi.scanmode", this); |
114 | 119 | mPropMngr->registerProperty("wifi.interface", this); |
115 | 120 | |
121 | + LOGI("Enabled successfully"); | |
116 | 122 | return 0; |
117 | 123 | |
118 | 124 | out_unloadmodule: |