nexus: Initial support for manipulating wifi networks + change wifi scan notification msgs
Signed-off-by: San Mehat <san@google.com>
diff --git a/nexus/WifiController.cpp b/nexus/WifiController.cpp
index f67761a..126db69 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 @@
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();
+}