passpoint-r2: select a best OsuProvider in startProvisioning
The intermediate layer called WifiTracker gets the OsuProviders without
OSU SSID from WifiService Layer by calling getMatchingOsuProviders API.
With the list, WifiTracker is able to remove duplicate entries by
only comparing servicei provider information in the OsuProvider object
without OSU SSID.
So, when user selects service name for sign up on UI, WifiTracker will pass
the selected OsuProvider without OSU SSID to WifiService Layer by
calling startProvisioning in WifiManager.
If the provided OsuProvider doesn't have OSU SSID, PasspointProvioner will
select the one which has strongest signal strength from matching OsuProviders
with the provided OsuProvider.
Bug: 119514793
Test: ./frameworks/opt/net/wifi/tests/wifitests/runtests.sh
Test: live test with Passpoint R2 service provider AP
Signed-off-by: Ecco Park <eccopark@google.com>
Change-Id: I50ce60f0499397b1f6529ebb24b6e12be0678736
6 files changed