summaryrefslogtreecommitdiffstats
path: root/ap_interface_binder.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'ap_interface_binder.cpp')
-rw-r--r--ap_interface_binder.cpp16
1 files changed, 4 insertions, 12 deletions
diff --git a/ap_interface_binder.cpp b/ap_interface_binder.cpp
index 66ea6ae..371fa61 100644
--- a/ap_interface_binder.cpp
+++ b/ap_interface_binder.cpp
@@ -20,8 +20,8 @@
#include "wificond/ap_interface_impl.h"
-using android::net::wifi::IApInterfaceEventCallback;
-using com::android::server::wifi::wificond::NativeWifiClient;
+using android::net::wifi::nl80211::IApInterfaceEventCallback;
+using android::net::wifi::nl80211::NativeWifiClient;
namespace android {
namespace wificond {
@@ -32,11 +32,9 @@ ApInterfaceBinder::ApInterfaceBinder(ApInterfaceImpl* impl)
ApInterfaceBinder::~ApInterfaceBinder() {
}
-void ApInterfaceBinder::NotifyConnectedClientsChanged(
- const std::vector<NativeWifiClient>& clients) {
+void ApInterfaceBinder::NotifyConnectedClientsChanged(const NativeWifiClient client, bool isConnected) {
if (ap_interface_event_callback_ != nullptr) {
- LOG(DEBUG) << "NotifyConnectedClientsChanged called returning clients count " << clients.size();
- ap_interface_event_callback_->onConnectedClientsChanged(clients);
+ ap_interface_event_callback_->onConnectedClientsChanged(client, isConnected);
}
}
@@ -87,11 +85,5 @@ binder::Status ApInterfaceBinder::getInterfaceName(std::string* out_name) {
return binder::Status::ok();
}
-binder::Status ApInterfaceBinder::getConnectedClients(
- std::vector<NativeWifiClient>* out_connected_clients) {
- *out_connected_clients = impl_->GetConnectedClients();
- return binder::Status::ok();
-}
-
} // namespace wificond
} // namespace android