summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristopher Wiley2016-08-10 11:33:45 -0500
committerChristopher Wiley2016-08-15 12:25:28 -0500
commit66527843f7df41d152e09b21dec2f0d931db08db (patch)
treedd720559f241938fe8083e3ef498a89755c8b85b /client_interface_binder.h
parent4aeb818632b7ee0c78ddcd1055494b58fbc10bb4 (diff)
downloadsystem-connectivity-wificond-66527843f7df41d152e09b21dec2f0d931db08db.tar.gz
system-connectivity-wificond-66527843f7df41d152e09b21dec2f0d931db08db.tar.xz
system-connectivity-wificond-66527843f7df41d152e09b21dec2f0d931db08db.zip
Add the ability to start/stop supplicant to wificond
Introduce two new methods: enableSupplicant() disableSupplicant() to IClientInterface. These are used to start/stop wpa_supplicant from controlling a given interface. Today, they start/stop the wpa_supplicant service, but in the future we may use them to add/remove the interface from supplicant's control. Bug: 30666540 Test: Can still connect to WiFi on bullhead. Change-Id: I25fe9e7e5f2e3764cd38cf89902dffd957b474ee
Diffstat (limited to 'client_interface_binder.h')
-rw-r--r--client_interface_binder.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/client_interface_binder.h b/client_interface_binder.h
index e4b7298..dcff8fc 100644
--- a/client_interface_binder.h
+++ b/client_interface_binder.h
@@ -18,6 +18,7 @@
18#define WIFICOND_CLIENT_INTERFACE_BINDER_H_ 18#define WIFICOND_CLIENT_INTERFACE_BINDER_H_
19 19
20#include <android-base/macros.h> 20#include <android-base/macros.h>
21#include <binder/Status.h>
21 22
22#include "android/net/wifi/BnClientInterface.h" 23#include "android/net/wifi/BnClientInterface.h"
23 24
@@ -36,6 +37,9 @@ class ClientInterfaceBinder : public android::net::wifi::BnClientInterface {
36 // by remote processes are possible. 37 // by remote processes are possible.
37 void NotifyImplDead() { impl_ = nullptr; } 38 void NotifyImplDead() { impl_ = nullptr; }
38 39
40 ::android::binder::Status enableSupplicant(bool* success);
41 ::android::binder::Status disableSupplicant(bool* success);
42
39 private: 43 private:
40 ClientInterfaceImpl* impl_; 44 ClientInterfaceImpl* impl_;
41 45