WifiNetworkFactory: Retry connection on failure

Any intermediate connection failures should trigger retries to
workaround any transient issues. Limit the number of retries to 3 for
now.

Bug: 119207115
Test: ./frameworks/opt/net/wifi/tests/wifitests/runtests.sh
Test: act.py -c wifi_manager.config -tb dut-name -tc WifiNetworkRequestTest
Change-Id: I466b6f43b4cede40850731d5a5190ee66d1ab69f
2 files changed