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

Commit 8d1668da authored by Zheng BaoZhong's avatar Zheng BaoZhong Committed by Mike Lockwood
Browse files

Wifi: Fix synchronization bug in multicast lock.

parent 0f0767d4
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -1889,8 +1889,10 @@ public class WifiService extends IWifiManager.Stub {
            // our new size == 1 (first call), but this function won't
            // be called often and by making the stopPacket call each
            // time we're less fragile and self-healing.
            synchronized (mWifiStateTracker) {
                WifiNative.stopPacketFiltering();
            }
        }

        int uid = Binder.getCallingUid();
        Long ident = Binder.clearCallingIdentity();
@@ -1925,8 +1927,10 @@ public class WifiService extends IWifiManager.Stub {
            removed.unlinkDeathRecipient();
        }
        if (mMulticasters.size() == 0) {
            synchronized (mWifiStateTracker) {
                WifiNative.startPacketFiltering();
            }
        }

        Long ident = Binder.clearCallingIdentity();
        try {