summaryrefslogtreecommitdiff
path: root/ap_interface_impl.h
diff options
context:
space:
mode:
authorNingyuan Wang <nywang@google.com>2016-08-11 09:59:22 -0700
committerNingyuan Wang <nywang@google.com>2016-08-12 14:17:59 -0700
commit9bc59a058868140e33bc7c46c9232c8d9b9148ca (patch)
tree7d6d21267bc0bc4e298d3e2aec1fc7201ffcb04a /ap_interface_impl.h
parent8c8faa2a8999e5ecbe5b05605946ad66a7a202a4 (diff)
downloadwificond-9bc59a058868140e33bc7c46c9232c8d9b9148ca.tar.gz
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 'ap_interface_impl.h')
-rw-r--r--ap_interface_impl.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/ap_interface_impl.h b/ap_interface_impl.h
index 655bcc7..851f492 100644
--- a/ap_interface_impl.h
+++ b/ap_interface_impl.h
@@ -38,6 +38,7 @@ class ApInterfaceBinder;
class ApInterfaceImpl {
public:
ApInterfaceImpl(const std::string& interface_name,
+ uint32_t interface_index,
std::unique_ptr<wifi_system::HostapdManager> hostapd_manager);
~ApInterfaceImpl();
@@ -55,6 +56,7 @@ class ApInterfaceImpl {
private:
const std::string interface_name_;
+ const uint32_t interface_index_;
const std::unique_ptr<wifi_system::HostapdManager> hostapd_manager_;
const android::sp<ApInterfaceBinder> binder_;