WifiConfigManager: Set "last selected" even if app has no permission
We've allowed apps to use the legacy API surface to connect to networks
that they don't have permission to modify/control the network. Ensure we
set/reset the |lastSelectedNetwork| flag for such requests.
Note: These apps cannot still enable/disable the network for
auto-connect purposes.
Bug: 121221919
Test: ./frameworks/opt/net/wifi/tests/wifitests/runtests.sh
Change-Id: I74525b3b8c9f7cf65aa8329c18b9db545cb03f38
2 files changed