hotspot2: synchronize Passpoint configuration changes through WifiStateMachine
This is to avoid any race conditions so that all Passpoint configuration
changes and use of those configurations will be done in the WifiStateMachine
thread.
While there, initiate a disconnect when removing a Passpoint provider and
the current connecting/connected network is provided by that provider.
Bug: 33200134, 34202139
Test: frameworks/opt/net/wifi/tests/wifitests/runtests.sh
Test: manually remove the Global Reach Passpoint profile while the
phone is connected to its network, verified that the profile
is removed and the WiFi connection is torn down
Change-Id: I88feac77d3c1c1836d651df09d01142b73489c54
3 files changed