diff options
author | Ningyuan Wang | 2016-08-11 11:59:22 -0500 |
---|---|---|
committer | Ningyuan Wang | 2016-08-12 16:17:59 -0500 |
commit | 9bc59a058868140e33bc7c46c9232c8d9b9148ca (patch) | |
tree | 7d6d21267bc0bc4e298d3e2aec1fc7201ffcb04a /client_interface_impl.h | |
parent | 8c8faa2a8999e5ecbe5b05605946ad66a7a202a4 (diff) | |
download | system-connectivity-wificond-9bc59a058868140e33bc7c46c9232c8d9b9148ca.tar.gz system-connectivity-wificond-9bc59a058868140e33bc7c46c9232c8d9b9148ca.tar.xz system-connectivity-wificond-9bc59a058868140e33bc7c46c9232c8d9b9148ca.zip |
Get interface index from kernel for wificond
This CL adds the interface index query to interface name query.
With interface index wificond can assign scan request to specific
interface and ignore scan result from uninteresting interfaces.
BUG=30808053
TEST=compile, unit tests, integration tests
Change-Id: I2a6333dcad4e9faadb7793501762602017125865
Diffstat (limited to 'client_interface_impl.h')
-rw-r--r-- | client_interface_impl.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/client_interface_impl.h b/client_interface_impl.h index ae5470c..7eb4415 100644 --- a/client_interface_impl.h +++ b/client_interface_impl.h | |||
@@ -37,7 +37,8 @@ class ClientInterfaceBinder; | |||
37 | // keep this object separate from the binder representation of itself. | 37 | // keep this object separate from the binder representation of itself. |
38 | class ClientInterfaceImpl { | 38 | class ClientInterfaceImpl { |
39 | public: | 39 | public: |
40 | explicit ClientInterfaceImpl(const std::string& interface_name); | 40 | ClientInterfaceImpl(const std::string& interface_name, |
41 | uint32_t interface_index); | ||
41 | ~ClientInterfaceImpl(); | 42 | ~ClientInterfaceImpl(); |
42 | 43 | ||
43 | // Get a pointer to the binder representing this ClientInterfaceImpl. | 44 | // Get a pointer to the binder representing this ClientInterfaceImpl. |
@@ -45,6 +46,7 @@ class ClientInterfaceImpl { | |||
45 | 46 | ||
46 | private: | 47 | private: |
47 | const std::string interface_name_; | 48 | const std::string interface_name_; |
49 | const uint32_t interface_index_; | ||
48 | const android::sp<ClientInterfaceBinder> binder_; | 50 | const android::sp<ClientInterfaceBinder> binder_; |
49 | 51 | ||
50 | DISALLOW_COPY_AND_ASSIGN(ClientInterfaceImpl); | 52 | DISALLOW_COPY_AND_ASSIGN(ClientInterfaceImpl); |