WifiNetworkFactory: Ignore connection events after success
When the device connects to a network triggered by network request, stop
listening to any further connection attempt success/failure events from
ClientModeImpl.
Further connection attempt events maybe triggered by:
a) Connection attempt success events would be triggered by
roaming.
b) Connection attempt failure events would be triggered by a
disconnect (This is not correctly tracked in ClientModeImpl
because a disconnect should not be treated as a connection attempt
failure, but there are cases like ip configuration failure which
triggers this method currently).
Both of the above events should be handled by the network agent created
for tracking the connection. The network factory should ignore them.
Bug: 128391794
Test: atest WifiNetworkFactoryTest
Test: act.py -c wifi_manager_cross.config -tb dut-name -tc
WifiNetworkRequestTest
Change-Id: I446397a3abee829b0e9859328ad32fac26956b52
2 files changed