OSDN Git Service

Add dump state for wificond interface classes
[android-x86/system-connectivity-wificond.git] / ap_interface_impl.cpp
index b48d911..dde3655 100644 (file)
@@ -26,6 +26,7 @@
 using android::net::wifi::IApInterface;
 using android::wifi_system::HostapdManager;
 using android::wifi_system::InterfaceTool;
+using std::endl;
 using std::string;
 using std::unique_ptr;
 using std::vector;
@@ -70,6 +71,15 @@ sp<IApInterface> ApInterfaceImpl::GetBinder() const {
   return binder_;
 }
 
+void ApInterfaceImpl::Dump(std::stringstream* ss) const {
+  *ss << "------- Dump of AP interface with index: "
+      << interface_index_ << " and name: " << interface_name_
+      << "-------" << endl;
+  *ss << "Number of associated stations: "
+      <<  number_of_associated_stations_ << endl;
+  *ss << "------- Dump End -------" << endl;
+}
+
 bool ApInterfaceImpl::StartHostapd() {
   return hostapd_manager_->StartHostapd();
 }