OSDN Git Service

Cleanup p2p0 interface upon tearDownInterfaces(). am: 075145ad1d am: 750c4ad4e3
[android-x86/system-connectivity-wificond.git] / ap_interface_binder.cpp
index e09e1cb..0766be0 100644 (file)
@@ -87,5 +87,14 @@ binder::Status ApInterfaceBinder::writeHostapdConfig(
   return binder::Status::ok();
 }
 
+binder::Status ApInterfaceBinder::getInterfaceName(std::string* out_name) {
+  if (!impl_) {
+    LOG(WARNING) << "Cannot get interface name from dead ApInterface";
+    return binder::Status::ok();
+  }
+  *out_name = impl_->GetInterfaceName();
+  return binder::Status::ok();
+}
+
 }  // namespace wificond
 }  // namespace android