aboutsummaryrefslogtreecommitdiffstats
path: root/nexus/WifiController.cpp
diff options
context:
space:
mode:
authorSan Mehat <san@google.com>2009-05-10 09:27:07 -0700
committerSan Mehat <san@google.com>2009-05-12 14:02:32 -0700
commit69772dc644e1ccc12b6394267f010100470f3c95 (patch)
tree687e8fa9015bb4dbd176a21553c16f2803e8cc9e /nexus/WifiController.cpp
parentd768066ef54270a0d3ccfccd50ae8238db5a2cdd (diff)
downloadsystem_core-69772dc644e1ccc12b6394267f010100470f3c95.tar.gz
system_core-69772dc644e1ccc12b6394267f010100470f3c95.tar.bz2
system_core-69772dc644e1ccc12b6394267f010100470f3c95.zip
nexus: Move to a line based protocol (similar to FTP) + fix bugs
Signed-off-by: San Mehat <san@google.com>
Diffstat (limited to 'nexus/WifiController.cpp')
-rw-r--r--nexus/WifiController.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/nexus/WifiController.cpp b/nexus/WifiController.cpp
index 806141cf..cba00ec3 100644
--- a/nexus/WifiController.cpp
+++ b/nexus/WifiController.cpp
@@ -93,11 +93,8 @@ out_powerdown:
return -1;
}
-void WifiController::sendStatusBroadcast(const char *msg) {
- char tmp[255];
-
- sprintf(tmp, "WIFI_STATUS:%s", msg);
- NetworkManager::Instance()->getBroadcaster()->sendBroadcast(tmp);
+void WifiController::sendStatusBroadcast(char *msg) {
+ NetworkManager::Instance()->getBroadcaster()->sendBroadcast(600, msg, false);
}
int WifiController::disable() {