diff options
author | Christopher Wiley | 2016-08-10 11:33:45 -0500 |
---|---|---|
committer | Christopher Wiley | 2016-08-15 12:25:28 -0500 |
commit | 66527843f7df41d152e09b21dec2f0d931db08db (patch) | |
tree | dd720559f241938fe8083e3ef498a89755c8b85b /client_interface_impl.h | |
parent | 4aeb818632b7ee0c78ddcd1055494b58fbc10bb4 (diff) | |
download | system-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_impl.h')
-rw-r--r-- | client_interface_impl.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/client_interface_impl.h b/client_interface_impl.h index 7eb4415..aaec6b4 100644 --- a/client_interface_impl.h +++ b/client_interface_impl.h | |||
@@ -44,6 +44,9 @@ class ClientInterfaceImpl { | |||
44 | // Get a pointer to the binder representing this ClientInterfaceImpl. | 44 | // Get a pointer to the binder representing this ClientInterfaceImpl. |
45 | android::sp<android::net::wifi::IClientInterface> GetBinder() const; | 45 | android::sp<android::net::wifi::IClientInterface> GetBinder() const; |
46 | 46 | ||
47 | bool EnableSupplicant(); | ||
48 | bool DisableSupplicant(); | ||
49 | |||
47 | private: | 50 | private: |
48 | const std::string interface_name_; | 51 | const std::string interface_name_; |
49 | const uint32_t interface_index_; | 52 | const uint32_t interface_index_; |