Home
last modified time | relevance | path

Searched refs:network (Results 1 – 25 of 84) sorted by relevance

1234

/tools/test/connectivity/acts/tests/google/wifi/
DWifiSoftApAcsTest.py121 network, ad = params
122 SSID = network[WifiEnums.SSID_KEY]
187 def start_traffic_and_softap(self, network, softap_band): argument
195 if not network:
201 wutils.connect_to_wifi_network(self.dut_client, network)
202 t = Thread(target=self.run_iperf_client,args=((network,self.dut_client),))
232 network = None
233 chan = self.start_traffic_and_softap(network, WIFI_CONFIG_APBAND_2G)
241 network = None
242 chan = self.start_traffic_and_softap(network, WIFI_CONFIG_APBAND_5G)
[all …]
DWifiLinkProbeTest.py84 def _test_link_probe_does_not_crash_device(self, network): argument
96 wutils.wifi_connect(self.dut, network, num_of_tries=3)
105 expected = network[WifiEnums.SSID_KEY]
111 def _test_link_probe_ap_attenuated(self, network): argument
124 wutils.wifi_connect(self.dut, network, num_of_tries=3)
135 expected = network[WifiEnums.SSID_KEY]
145 network = self.reference_networks[0]["2g"]
146 self._test_link_probe_does_not_crash_device(network)
150 network = self.reference_networks[0]["5g"]
151 self._test_link_probe_does_not_crash_device(network)
[all …]
DWifiAutoUpdateTest.py157 for network in networks:
158 ssid = network[SSID]
161 wutils.wifi_connect(self.dut, network, num_of_tries=6)
162 self.wifi_config_list.append(network)
163 self.pre_default_mac[network[SSID]] = self.get_sta_mac_address()
164 self.pre_random_mac[network[SSID]] = \
165 self.dut.droid.wifigetRandomizedMacAddress(network)
215 def add_network_and_enable(self, network): argument
222 ret = self.dut.droid.wifiAddNetwork(network)
223 asserts.assert_true(ret != -1, "Add network %r failed" % network)
[all …]
DWifiCrashTest.py62 self.network = self.reference_networks[0]["2g"]
96 wutils.wifi_connect(self.dut, self.network, num_of_tries=3)
104 if wifi_info[WifiEnums.SSID_KEY] != self.network[WifiEnums.SSID_KEY]:
120 wutils.wifi_connect(self.dut, self.network, num_of_tries=3)
127 if wifi_info[WifiEnums.SSID_KEY] != self.network[WifiEnums.SSID_KEY]:
143 wutils.wifi_connect(self.dut, self.network, num_of_tries=3)
150 if wifi_info[WifiEnums.SSID_KEY] != self.network[WifiEnums.SSID_KEY]:
166 wutils.wifi_connect(self.dut, self.network, num_of_tries=3)
173 if wifi_info[WifiEnums.SSID_KEY] != self.network[WifiEnums.SSID_KEY]:
DWifiRoamingTest.py137 def trigger_roaming_and_verify_attenuation(self, network): argument
144 band = '5G' if network['SSID'].startswith('5g_') else '2G'
156 rssi = self.get_rssi(pcap_file, network["bssid"])
160 if self.get_rssi(pcap_file, network["bssid"]) < ROAM_DBM:
220 network = {'SSID':'test_roaming_fail', 'password':'roam123456@'}
224 wutils.ap_setup(self, 0, self.access_points[0], network)
226 network["SSID"], '2g')
231 network['bssid'] = network_bssid
235 self.roaming_from_AP1_and_AP2(network, network_fail)
240 wutils.ap_setup(self, 1, self.access_points[1], network)
[all …]
DWifiChaosTest.py183 def scan_and_connect_by_id(self, network, net_id): argument
190 ssid = network[WifiEnums.SSID_KEY]
213 def send_link_probes(self, network): argument
229 expected = network[WifiEnums.SSID_KEY]
251 def run_connect_disconnect(self, network, hostname, rpm_port, rpm_ip, argument
268 ssid = network[WifiEnums.SSID_KEY]
269 net_id = self.dut.droid.wifiAddNetwork(network)
270 asserts.assert_true(net_id != -1, "Add network %s failed" % network)
272 self.scan_and_connect_by_id(network, net_id)
319 network = {}
[all …]
DWifiMacRandomizationTest.py131 def get_randomized_mac(self, network): argument
141 return self.dut.droid.wifigetRandomizedMacAddress(network)
143 def connect_to_network_and_verify_mac_randomization(self, network, argument
155 wutils.connect_to_wifi_network(self.dut, network)
156 return self.verify_mac_randomization(network, status=status)
158 def verify_mac_randomization_and_add_to_list(self, network, mac_list): argument
168 network)
171 ' for this network %s.' % network)
174 def verify_mac_randomization(self, network, status=RANDOMIZATION_PERSISTENT): argument
185 randomized_mac = self.get_randomized_mac(network)
[all …]
DWifiIOTtpeTest.py65 for network in self.iot_networks:
66 SSID = network['SSID'].replace('-','_')
67 self.ssid_map[SSID] = network
88 def connect_to_wifi_network(self, network): argument
94 SSID = network[WifiEnums.SSID_KEY]
99 wutils.wifi_connect(self.dut, network, num_of_tries=3)
101 def run_iperf_client(self, network): argument
109 SSID = network[WifiEnums.SSID_KEY]
118 def connect_to_wifi_network_and_run_iperf(self, network): argument
128 self.connect_to_wifi_network(network)
[all …]
DWifiIOTTwPkg1Test.py75 for network in self.iot_networks:
76 SSID = network['SSID'].replace('-','_')
77 self.ssid_map[SSID] = network
109 def connect_to_wifi_network(self, network): argument
115 SSID = network[WifiEnums.SSID_KEY]
120 wutils.wifi_connect(self.dut, network, num_of_tries=3)
122 def run_iperf_client(self, network): argument
135 SSID = network[WifiEnums.SSID_KEY]
164 def run_iperf_server(self, network): argument
180 SSID = network[WifiEnums.SSID_KEY]
[all …]
DWifiTeleCoexTest.py42 self.network = { WifiEnums.SSID_KEY : self.wifi_network_ssid,
59 def connect_to_wifi(self, ad, network): argument
72 wifi_utils.wifi_connect(ad, network)
74 network[WifiEnums.SSID_KEY], ad.serial))
192 self.connect_to_wifi(self.dut, self.network)
214 self.connect_to_wifi(self.dut, self.network)
238 self.connect_to_wifi(self.dut, self.network)
260 self.connect_to_wifi(self.dut, self.network)
282 self.connect_to_wifi(self.dut, self.network)
307 self.connect_to_wifi(self.dut, self.network)
DWifiPnoTest.py126 network = {}
127 network[WifiEnums.SSID_KEY] = ssid_name_base + str(i)
128 network[WifiEnums.PWD_KEY] = "pno_dummy"
129 self.add_network_and_enable(network)
131 def add_network_and_enable(self, network): argument
138 ret = self.dut.droid.wifiAddNetwork(network)
139 asserts.assert_true(ret != -1, "Add network %r failed" % network)
DWifiRvrTwTest.py86 for network in self.iot_networks:
87 SSID = network['SSID'].replace('-','_')
88 self.ssid_map[SSID] = network
309 def connect_to_wifi_network(self, network): argument
315 SSID = network[WifiEnums.SSID_KEY]
320 wutils.wifi_connect(self.dut, network, num_of_tries=3)
322 def run_iperf_client(self, network): argument
335 SSID = network[WifiEnums.SSID_KEY]
371 def run_iperf_server(self, network): argument
384 SSID = network[WifiEnums.SSID_KEY]
[all …]
DWifiTetheringTest.py50 self.network = {"SSID": "hotspot_%s" % utils.rand_ascii_str(6),
155 self.network[wutils.WifiEnums.SSID_KEY],
156 self.network[wutils.WifiEnums.PWD_KEY],
170 wutils.wifi_forget_network(dut, self.network["SSID"])
172 wutils.wifi_connect(dut, self.network)
186 wutils.wifi_forget_network(ad, self.network["SSID"])
189 wutils.wifi_connect(ad, self.network)
205 dutils.connect_wifi(wd, self.network)
261 wutils.wifi_connect(ad, self.network)
262 dutils.connect_wifi(wd, self.network)
[all …]
DWifiTetheringPowerTest.py45 self.network = { "SSID": self.ssid, "password": self.password }
176 wutils.wifi_connect(self.tethered_devices[0], self.network)
188 wutils.wifi_connect(self.tethered_devices[0], self.network)
201 wutils.wifi_connect(ad, self.network)
214 wutils.wifi_connect(ad, self.network)
226 wutils.wifi_connect(self.tethered_devices[0], self.network)
238 wutils.wifi_connect(self.tethered_devices[0], self.network)
251 wutils.wifi_connect(ad, self.network)
264 wutils.wifi_connect(ad, self.network)
DWifiStaApConcurrencyStressTest.py72 network, ad = params
73 SSID = network[WifiEnums.SSID_KEY]
75 wutils.connect_to_wifi_network(ad, network)
78 wutils.connect_to_wifi_network(self.android_devices[2], network)
80 def verify_wifi_full_on_off(self, network, softap_config): argument
82 self.connect_to_wifi_network_and_verify((network, self.dut))
89 def verify_softap_full_on_off(self, network, softap_band): argument
/tools/test/connectivity/acts/framework/acts/test_utils/wifi/
DWifiBaseTest.py244 def update_bssid(self, ap_instance, ap, network, band): argument
254 bssid = ap.get_bssid_from_ssid(network["SSID"], band)
256 if network["security"] == hostapd_constants.WPA2_STRING:
260 if network["security"] == hostapd_constants.WPA_STRING:
262 if network["security"] == hostapd_constants.WEP_STRING:
264 if network["security"] == hostapd_constants.ENT_STRING:
269 if network["security"] == 'none':
286 for network in networks_5g:
287 if 'channel' in network:
289 self.update_bssid(ap_instance, ap, network,
[all …]
Dota_sniffer.py65 def start_capture(self, network, duration=30): argument
120 def start_capture(self, network, duration=30): argument
281 def _connect_to_network(self, network): argument
288 self.log.info("Connecting to network {}".format(network["SSID"]))
293 if network["SSID"] not in scan_result:
294 self.log.warning("{} not found in scan".format(network["SSID"]))
296 if "password" not in network.keys():
297 network["password"] = ""
299 self._init_network_association(network["SSID"], network["password"])
375 def start_capture(self, network, duration=30): argument
[all …]
Dwifi_test_utils.py481 for network in self.reference_networks:
482 for key in network:
484 if "password" in network[key]:
485 self.secure_networks_2g.append(network[key])
487 self.open_networks_2g.append(network[key])
489 if "password" in network[key]:
490 self.secure_networks_5g.append(network[key])
492 self.open_networks_5g.append(network[key])
1122 network, argument
1155 network,
[all …]
/tools/test/connectivity/acts/framework/acts/controllers/ap_lib/
Ddhcp_config.py51 self.network = subnet
56 self.start = self.network[2]
58 if not self.start in self.network:
66 self.end = self.network[-2]
68 if not self.end in self.network:
79 if not router in self.network:
87 for host in self.network.hosts():
/tools/test/connectivity/acts/framework/acts/test_utils/power/cellular/
Dcellular_hotspot_traffic_power_test.py66 self.network = getattr(self, self.CONFIG_KEY_WIFI)
68 if not (wutils.WifiEnums.SSID_KEY in self.network
69 and wutils.WifiEnums.PWD_KEY in self.network):
85 self.network = {
110 self.network[wutils.WifiEnums.SSID_KEY],
111 self.network[wutils.WifiEnums.PWD_KEY],
115 self.network,
/tools/test/connectivity/acts/framework/acts/controllers/
Dpacket_capture.py157 network = {}
162 network[BSSID] = line.split('(')[0].split()[-1]
166 network[LEVEL] = int(float(value.split()[0]))
168 network[FREQUENCY] = int(value)
170 network[SSID] = value
171 scan_networks.append(network)
172 network = {}
202 for network in found_networks:
203 if network[SSID] == ssid:
/tools/test/connectivity/acts/tests/google/power/wifi/
DPowerWiFiHotspotTest.py55 self.network = None
68 self.network = getattr(self, self.CONFIG_KEY_WIFI)
70 if not (wutils.WifiEnums.SSID_KEY in self.network
71 and wutils.WifiEnums.PWD_KEY in self.network):
87 self.network = {
138 self.dut, self.network[wutils.WifiEnums.SSID_KEY],
139 self.network[wutils.WifiEnums.PWD_KEY], wifi_band_id)
145 self.network,
/tools/test/connectivity/acts/framework/acts/test_utils/net/
Darduino_test_utils.py38 def connect_wifi(wd, network=None): argument
48 write_status = wd.write(ARDUINO, file_path, network)
52 asserts.assert_true(wifi_status, "Failed to connect to %s" % network)
/tools/test/connectivity/acts/framework/acts/test_utils/power/
DPowerWiFiBaseTest.py88 def setup_ap_connection(self, network, bandwidth=80, connect=True, argument
104 self.access_point, network, bandwidth=bandwidth)
106 self.brconfigs = wputils.ap_setup(ap, network, bandwidth=bandwidth)
108 wutils.wifi_connect(self.dut, network, num_of_tries=3)
/tools/test/connectivity/acts/framework/acts/test_utils/wifi/rtt/
Drtt_test_utils.py114 for network in scanned_networks:
116 if (rconsts.SCAN_RESULT_KEY_RTT_RESPONDER in network
117 and network[rconsts.SCAN_RESULT_KEY_RTT_RESPONDER]):
118 matching_networks.append(network)
120 if (rconsts.SCAN_RESULT_KEY_RTT_RESPONDER not in network
121 or not network[rconsts.SCAN_RESULT_KEY_RTT_RESPONDER]):
122 matching_networks.append(network)

1234