diff options
| author | San Mehat <san@google.com> | 2009-05-12 17:26:28 -0700 |
|---|---|---|
| committer | San Mehat <san@google.com> | 2009-05-13 09:10:01 -0700 |
| commit | 82a2116e6b67db910bba22c4874e6ca5efd3eec0 (patch) | |
| tree | 0f08c363327859f3da5128b24743e0974edf5f55 /nexus/WifiController.cpp | |
| parent | df6c1b91e3813886070f35929583c30cfaead918 (diff) | |
| download | system_core-82a2116e6b67db910bba22c4874e6ca5efd3eec0.tar.gz system_core-82a2116e6b67db910bba22c4874e6ca5efd3eec0.tar.bz2 system_core-82a2116e6b67db910bba22c4874e6ca5efd3eec0.zip | |
nexus: Initial support for manipulating wifi networks + change wifi scan notification msgs
Signed-off-by: San Mehat <san@google.com>
Diffstat (limited to 'nexus/WifiController.cpp')
| -rw-r--r-- | nexus/WifiController.cpp | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/nexus/WifiController.cpp b/nexus/WifiController.cpp index f67761ab..126db69e 100644 --- a/nexus/WifiController.cpp +++ b/nexus/WifiController.cpp @@ -23,7 +23,7 @@ #include "WifiController.h" #include "WifiScanner.h" #include "NetworkManager.h" -#include "ErrorCode.h"; +#include "ErrorCode.h" WifiController::WifiController(char *modpath, char *modname, char *modargs) : Controller("WIFI") { @@ -151,6 +151,19 @@ int WifiController::setScanMode(uint32_t mode) { return rc; } +int WifiController::addNetwork() { + return mSupplicant->addNetwork(); +} + +int WifiController::removeNetwork(int networkId) { + return mSupplicant->removeNetwork(networkId); +} + ScanResultCollection *WifiController::createScanResults() { return mSupplicant->createLatestScanResults(); } + +// XXX: This should be a const list +WifiNetworkCollection *WifiController::createNetworkList() { + return mSupplicant->createNetworkList(); +} |
