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

Commit ff3ca46c authored by Etan Cohen's avatar Etan Cohen Committed by android-build-merger
Browse files

Merge "[AWARE] Actually shut-down functionality when destroying NAN iface"...

Merge "[AWARE] Actually shut-down functionality when destroying NAN iface" into oc-dr1-dev am: 9424e9d5
am: 34e3e8e9

Change-Id: I858a0ad08dbe9b0ed7d13c23d3da1e38855c6286
parents cbe1d66c 34e3e8e9
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -420,6 +420,11 @@ WifiNanIface::WifiNanIface(
}

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();
  event_cb_handler_.invalidate();
  is_valid_ = false;