WifiNetworkSelector: Clear all configured network status
Currently, only the SaveNetworkEvaluator clears status for each saved
network before network selction is performed. This pre-selection step is
required to
a) Try and re-enable any temporarily disabled networks.
b) Clear the candidate field in the NetworkSelectionStatus object for
each network.
This pre-selection step is needed for all configured networks (not just
saved) since ephemeral networks are no longer removed after disconnect.
Changes in the CL:
a) Move the pre-selection network reset to the common
WifiNetworkSelector from SavedNetworkEvaluator.
b) Ensure that all configured networks (including ephemeral & passpoint
networks) are reset in this common method.
a) was done to avoid duplicating this logic in all of the evaluators.
Bug: 132979765
Test: Manual verification of the steps mentioned in the bug.
Test: Unit tests
Change-Id: Id2e629712958b04356367985ef41e2094bbeb712
4 files changed