WifiConnectivityManager: stop caching ClientModeManagers
Instead, get it from ActiveModeWarden directly,
so that they don't accidentally go out of sync.
Also, call onActiveModeManagerRemoved callbacks
when a mode manager fails to start (onStartFailure).
If a failure occurs while switching roles, the
mode manager would have already been added, so
need to notify listeners of the removal.
Bug: 169772923
Test: atest FrameworksWifiTests
Test: toggle wifi a few times
Change-Id: I67c07f6cb3ab69d92302b7aaa623357c59486bbf
7 files changed