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

Commit f16bfd8a authored by Bernie Innocenti's avatar Bernie Innocenti Committed by android-build-merger
Browse files

Merge "Disable APF memory clear on pre-APFv4 devices" into pi-dev

am: f0dfd4b0

Change-Id: I320b3c1bb0b35fe18a6467eb3edef9d757496589
parents dd2ea24a f0dfd4b0
Loading
Loading
Loading
Loading
+7 −3
Original line number Diff line number Diff line
@@ -429,9 +429,13 @@ public class ApfFilter {
        try {
            mHardwareAddress = mInterfaceParams.macAddr.toByteArray();
            synchronized(this) {
                // Clear APF memory.
                // Clear the APF memory to reset all counters upon connecting to the first AP
                // in an SSID. This is limited to APFv4 devices because this large write triggers
                // a crash on some older devices (b/78905546).
                if (mApfCapabilities.hasDataAccess()) {
                    byte[] zeroes = new byte[mApfCapabilities.maximumApfProgramSize];
                    mIpClientCallback.installPacketFilter(zeroes);
                }

                // Install basic filters
                installNewProgramLocked();