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

Skip to content
Commit 9661f0b3 authored by Xiao Ma's avatar Xiao Ma
Browse files

Fix the probe wake lock duration when mcast_resolicit is enabled.

Fix the bug introduced in aosp/1890315, adding the number of resolicit
in setNeighborParameters is incorrect, because this function might be
called(e.g. setNeighbourParametersPostRoaming) by multiple times,
besides, where the number of resolicit is an invalid number(-1), that
results in an incorrect total number of probe solicits. For example,
when number of solicit is 5, then total number of probe solicits by
adding number of resolicit is 4(5-1). Instead, the more reasonable
approach would be adding the resolicit number iif mcast_resolicit
is enabled and getProbeWakeLockDuration is called.

Also fix the error of fail to set neighbor parameter due to the loss
of mocked number of solicit and interval in the integration test.

Bug: 162944199
Test: atest NetworkStackTests NetworkStackIntegrationTests
Change-Id: Ifa3a02218c5c77092214812f2a1f03ce76b34ae9
parent 835efd62
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment