Do not expect validated when connect to Wi-Fi for upstream type None

Currently, upstream network validation is always required, even
for type None. This is unnecessary for APF and mDNS tests, as
they can be executed on local networks. Additionally, some
devices lack the ability to perform network validation when the
hotspot is enabled due to hardware limitations. Therefore, remove
the validation check for upstream type None.

Test: m connectivity_multi_devices_snippet && \
      atest CtsConnectivityMultiDevicesTestCases:ConnectivityMultiDevicesTest
Bug: 335368434
Bug: 396551848
Change-Id: If2a96cf9d62e37fc27be6193f9ce9b9cfc8613df
This commit is contained in:
Junyu Lai 2024-07-02 14:15:03 +08:00 • committed by Paul Hu
commit d16aa5538e

View file

@ -95,7 +95,9 @@ def setup_hotspot_and_client_for_upstream_type(
hotspot_interface = server.startHotspot(test_ssid, test_passphrase)
# Make the client connects to the hotspot.
client_network = client.connectToWifi(test_ssid, test_passphrase)
client_network = client.connectToWifi(
test_ssid, test_passphrase, upstream_type != UpstreamType.NONE
)
return hotspot_interface, client_network