Don't use L2 connected WifiInfo in onStart initialization

handleOnStart tries to initialize the current connected WifiEntry by
synchronously querying WifiManager.getConnectionInfo,
WifiManager.getCurrentNetwork, and NetworkCapabilities. However, if
onStart happens during a connection attempt, then these APIs may be
returning data from either the old network or the new network, causing a
mismatched state (e.g. we show the new network as "Connected" even
though it's not L3 connected).

Fix this by ignoring the WifiInfo if it doesn't match the
NetworkCapabilities. We know it doesn't match if getSupplicantState()
isn't COMPLETED (i.e. it's not yet L3 connected and therefore has no
NetworkCapabilities).

Flag: EXEMPT minor bugfix

Bug: 418072112
Bug: 418071481
Test: atest WifiTrackerLibTests, manually verify failed password
attempt doesn't show the target network as "connected"

Change-Id: I4c4489120c8842f9fbd48e9e7aba2bd193e0257b
4 files changed