ClientModeImpl: Ensure we don't end in progress connection event

When connecting to a new network while connected, we should not end the
connection event for the new connection.

We should still end the connection attempt if there is an
NETWORK_DISCONNECTION from the network while the connection is in progress
(most likely for EAP networks, otherwise we should get some L2 failure
like ASSOC-REJECT or AUTH-FAILURE).

Bug: 168242861
Test: atest com.android.server.wifi
Change-Id: I870205e7309db0532327979e0e2003f26a981d51
2 files changed
tree: 3a0ce2eaefb12533c5f39cfc5bb8a67444b9500d
  1. apex/
  2. service/
  3. metrics_pdd_hook.py
  4. PREUPLOAD.cfg