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

Commit 819e3723 authored by lesl's avatar lesl
Browse files

wifi: Fix removeIfaceInstanceFromBridgedApIfaceInternal

Fix the incorrect empty check.

Bug: 162686273
Test: Manual Test, shutdown instance works normally

Change-Id: I44c5c4adcc7a964e25b5fa5e291bb9b9f4932655
parent 74f0eda6
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1031,7 +1031,7 @@ WifiStatus WifiChip::removeIfaceInstanceFromBridgedApIfaceInternal(
    const std::string& ifname, const std::string& ifInstanceName) {
    legacy_hal::wifi_error legacy_status;
    const auto iface = findUsingName(ap_ifaces_, ifname);
    if (!iface.get() || !ifInstanceName.empty()) {
    if (!iface.get() || ifInstanceName.empty()) {
        return createWifiStatus(WifiStatusCode::ERROR_INVALID_ARGS);
    }
    // Requires to remove one of the instance in bridge mode