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

Commit 34e3e8e9 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" into oc-dr1-dev

am: 9424e9d5

Change-Id: Ia6990c90e8ffc17f2a88815d0cd53ac7dbffba31
parents fe6f369b 9424e9d5
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;