WifiConnectivityManager: Handle external auto join disable correctly

If WifiManager.enableWifiConnectivityManager() is invoked, we should
not re-enable auto-join because of any internal triggers.

Changes in this CL:
a) Rename mWifiConnectivityManagerEnabled to mAutoJoinEnabled, which
holds the internal auto join state.
b) Use mAutoJoinEnabledExternal to track any external API calls
to enable/disable WifiConnectivityManager.

Bug: 141889280
Test: atest com.android.server.wifi
Change-Id: I4773a3f4542b3100dcccc6a9b27e14e7cac4549d
5 files changed
tree: cfd4fb8fd062bf0e78e0f5cf57ff6da56ab9f58c
  1. apex/
  2. service/
  3. PREUPLOAD.cfg