Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9424e9d5 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "[AWARE] Actually shut-down functionality when destroying NAN iface" into oc-dr1-dev

parents ada528db c4d9f87f
Loading
Loading
Loading
Loading
+5 −0
Original line number Original line Diff line number Diff line
@@ -420,6 +420,11 @@ WifiNanIface::WifiNanIface(
}
}


void WifiNanIface::invalidate() {
void WifiNanIface::invalidate() {
  // send commands to HAL to actually disable and destroy interfaces
  legacy_hal_.lock()->nanDisableRequest(0xFFFF);
  legacy_hal_.lock()->nanDataInterfaceDelete(0xFFFE, "aware_data0");
  legacy_hal_.lock()->nanDataInterfaceDelete(0xFFFD, "aware_data1");

  legacy_hal_.reset();
  legacy_hal_.reset();
  event_cb_handler_.invalidate();
  event_cb_handler_.invalidate();
  is_valid_ = false;
  is_valid_ = false;