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

Commit 0bb061f8 authored by Nate Jiang's avatar Nate Jiang Committed by Automerger Merge Worker
Browse files

WifiNanIface: Validate interface before cleanup. am: 674b27ab

Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/12464566

Change-Id: Ibc123ac00b48485c9f319d8ec304221e427cd989
parents e15b9a1e 674b27ab
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -534,6 +534,9 @@ WifiNanIface::WifiNanIface(
}

void WifiNanIface::invalidate() {
    if (!isValid()) {
        return;
    }
    // send commands to HAL to actually disable and destroy interfaces
    legacy_hal_.lock()->nanDisableRequest(ifname_, 0xFFFF);
    legacy_hal_.lock()->nanDataInterfaceDelete(ifname_, 0xFFFE, "aware_data0");