ClientModeImpl: Migrate the disableReason checks from WCM

When networks are temporarily/permanently disabled due to no internet,
we were not previously disconnecting from it. This was missed in the
recent addition of NetworkUpdateListener in ClientModeImpl. Restoring it
from WifiConnectivityManager and removing some redundant code for the
same in WifiConnectivityManager.

Bug: 142086267
Test: atest com.android.server.wifi

Change-Id: I33619105fa26efc8bfc79caae882ad8cec3b84de
7 files changed
tree: e641e97b6a18f69865a1edc2b429375418c123c1
  1. service/
  2. PREUPLOAD.cfg