Home
last modified time | relevance | path

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

1234

/tools/test/connectivity/acts_tests/tests/google/wifi/
DWifiSoftApAcsTest.py111 network, ad = params
112 SSID = network[WifiEnums.SSID_KEY]
184 def start_traffic_and_softap(self, network, softap_band): argument
192 if not network:
198 wutils.connect_to_wifi_network(self.dut_client, network)
202 .format(network["SSID"], ap_chan))
205 t = Thread(target=self.run_iperf_client,args=((network,self.dut_client),))
235 network = None
236 chan = self.start_traffic_and_softap(network, WIFI_CONFIG_APBAND_2G)
244 network = None
[all …]
DWifiNetworkSelectorTest.py102 for network in networks:
103 ret = ad.droid.wifiAddNetwork(network)
105 "Failed to add network %s" % network)
111 def connect_and_verify_connected_bssid(self, network): argument
121 expected_ssid = network['SSID']
122 expected_bssid = network['bssid']
154 network = self.reference_networks[AP_1]['5g'].copy()
156 network['bssid'] = self.bssid_map[AP_1]['5g'][network["SSID"]]
157 self.connect_and_verify_connected_bssid(network)
177 network = self.reference_networks[AP_1]['5g'].copy()
[all …]
DWifiAutoUpdateTest.py173 for network in networks:
174 ssid = network[SSID]
177 wutils.wifi_connect(self.dut, network, num_of_tries=6)
178 self.wifi_config_list.append(network)
179 self.pre_default_mac[network[SSID]] = self.get_sta_mac_address()
180 self.pre_random_mac[network[SSID]] = \
181 self.dut.droid.wifigetRandomizedMacAddress(network)
231 def add_network_and_enable(self, network): argument
238 ret = self.dut.droid.wifiAddNetwork(network)
239 asserts.assert_true(ret != -1, "Add network %r failed" % network)
[all …]
DWifiCrashTest.py71 self.network = self.reference_networks[0]["2g"]
103 wutils.wifi_connect(self.dut, self.network, num_of_tries=3)
111 if wifi_info[WifiEnums.SSID_KEY] != self.network[WifiEnums.SSID_KEY]:
127 wutils.wifi_connect(self.dut, self.network, num_of_tries=3)
134 if wifi_info[WifiEnums.SSID_KEY] != self.network[WifiEnums.SSID_KEY]:
150 wutils.wifi_connect(self.dut, self.network, num_of_tries=3)
164 if wifi_info[WifiEnums.SSID_KEY] != self.network[WifiEnums.SSID_KEY]:
180 wutils.wifi_connect(self.dut, self.network, num_of_tries=3)
187 if wifi_info[WifiEnums.SSID_KEY] != self.network[WifiEnums.SSID_KEY]:
DWifiChaosTest.py185 def scan_and_connect_by_id(self, network, net_id): argument
192 ssid = network[WifiEnums.SSID_KEY]
215 def send_link_probes(self, network): argument
231 expected = network[WifiEnums.SSID_KEY]
253 def run_connect_disconnect(self, network, hostname, rpm_port, rpm_ip, argument
270 ssid = network[WifiEnums.SSID_KEY]
271 net_id = self.dut.droid.wifiAddNetwork(network)
272 asserts.assert_true(net_id != -1, "Add network %s failed" % network)
274 self.scan_and_connect_by_id(network, net_id)
321 network = {}
[all …]
DWifiIOTtpeTest.py65 for network in self.iot_networks:
66 SSID = network['SSID'].replace('-','_')
67 self.ssid_map[SSID] = network
86 def connect_to_wifi_network(self, network): argument
92 SSID = network[WifiEnums.SSID_KEY]
97 wutils.wifi_connect(self.dut, network, num_of_tries=3)
99 def run_iperf_client(self, network): argument
107 SSID = network[WifiEnums.SSID_KEY]
116 def connect_to_wifi_network_and_run_iperf(self, network): argument
126 self.connect_to_wifi_network(network)
[all …]
DWifiMacRandomizationTest.py142 def get_randomized_mac(self, network): argument
152 return self.dut.droid.wifigetRandomizedMacAddress(network)
154 def connect_to_network_and_verify_mac_randomization(self, network, argument
166 wutils.connect_to_wifi_network(self.dut, network)
167 return self.verify_mac_randomization(network, status=status)
169 def verify_mac_randomization_and_add_to_list(self, network, mac_list): argument
179 network)
182 ' for this network %s.' % network)
185 def verify_mac_randomization(self, network, status=RANDOMIZATION_PERSISTENT): argument
196 randomized_mac = self.get_randomized_mac(network)
[all …]
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 …]
DWifiTeleCoexTest.py51 self.network = { WifiEnums.SSID_KEY : self.wifi_network_ssid,
77 def connect_to_wifi(self, ad, network): argument
90 wifi_utils.wifi_connect(ad, network)
92 network[WifiEnums.SSID_KEY], ad.serial))
252 self.connect_to_wifi(self.dut, self.network)
274 self.connect_to_wifi(self.dut, self.network)
298 self.connect_to_wifi(self.dut, self.network)
320 self.connect_to_wifi(self.dut, self.network)
342 self.connect_to_wifi(self.dut, self.network)
367 self.connect_to_wifi(self.dut, self.network)
[all …]
DWifiTetheringTest.py50 self.network = {"SSID": "hotspot_%s" % utils.rand_ascii_str(6),
145 self.network[wutils.WifiEnums.SSID_KEY],
146 self.network[wutils.WifiEnums.PWD_KEY],
160 wutils.wifi_forget_network(dut, self.network["SSID"])
162 wutils.wifi_connect(dut, self.network)
176 wutils.wifi_forget_network(ad, self.network["SSID"])
179 wutils.wifi_connect(ad, self.network)
195 dutils.connect_wifi(wd, self.network)
251 wutils.wifi_connect(ad, self.network)
252 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)
DWifiPnoTest.py133 network = {}
134 network[WifiEnums.SSID_KEY] = ssid_name_base + str(i)
135 network[WifiEnums.PWD_KEY] = "pno_test"
136 self.add_network_and_enable(network)
138 def add_network_and_enable(self, network): argument
145 ret = self.dut.droid.wifiAddNetwork(network)
146 asserts.assert_true(ret != -1, "Add network %r failed" % network)
DWifiIOTTest.py65 for network in self.iot_networks:
66 SSID = network['SSID'].replace('-','_')
67 self.ssid_map[SSID] = network
86 def connect_to_wifi_network(self, network): argument
92 SSID = network[WifiEnums.SSID_KEY]
97 wutils.wifi_connect(self.dut, network, num_of_tries=3)
99 def run_iperf_client(self, network): argument
107 SSID = network[WifiEnums.SSID_KEY]
116 def connect_to_wifi_network_and_run_iperf(self, network): argument
126 self.connect_to_wifi_network(network)
[all …]
DWifiIOTConnectionTest.py168 def scan_wifi_list(self, network, test_item): argument
200 def connect_to_network_and_ping(self, network, scan_results): argument
201 ssid = network[WifiEnums.SSID_KEY]
207 wutils.wifi_connect(self.dut, network, num_of_tries=1,
275 network = {'SSID': test_item["ssid"], 'password': password}
286 wifi_scan_list = self.scan_wifi_list(network, test_item)
289 self.connect_to_network_and_ping(network, wifi_scan_list)
/tools/test/connectivity/acts_tests/tests/google/wifi/wifi6e/
DWifiNetworkSelector6eTest.py80 network = self.ap1.copy()
81 network["bssid"] = self.bssid_map[0]["6g"]
82 self.connect_and_verify_connected_bssid(network)
105 network = ap2.copy()
106 network["bssid"] = self.bssid_map[1]["6g"]
107 self.connect_and_verify_connected_bssid(network)
130 network = ap2.copy()
131 network["bssid"] = self.bssid_map[1]["6g"]
132 self.connect_and_verify_connected_bssid(network)
153 network = self.ap1.copy()
[all …]
/tools/test/connectivity/acts/framework/acts/controllers/fuchsia_lib/lib_controllers/
Dwlan_policy_controller.py364 for network in update['result']['networks']:
365 if network['id']['ssid'] == ssid or network['id'][
367 if 'state' not in network:
370 elif network['state'].lower() == STATE_CONNECTED.lower():
432 for network in update['result']['networks']:
433 if network['id']['ssid'] == ssid or network['id'][
435 if 'state' not in network or 'status' not in network:
440 elif network['state'].lower() == STATE_CONNECTED.lower():
442 elif network['state'].lower() == STATE_CONNECTING.lower():
449 elif network['state'].lower() != state.lower(
[all …]
/tools/test/connectivity/acts_tests/acts_contrib/test_utils/wifi/wifi_retail_ap/
D__init__.py323 def set_radio_on_off(self, network, status): argument
330 setting_to_update = {network: {'status': int(status)}}
333 def set_ssid(self, network, ssid): argument
340 setting_to_update = {network: {'ssid': str(ssid)}}
343 def set_channel(self, network, channel): argument
350 if channel not in self.capabilities['channels'][network]:
352 channel, network))
353 setting_to_update = {network: {'channel': str(channel)}}
356 def set_bandwidth(self, network, bandwidth): argument
366 if bandwidth not in self.capabilities['modes'][network]:
[all …]
/tools/test/connectivity/acts_tests/acts_contrib/test_utils/wifi/
DWifiBaseTest.py334 def update_bssid(self, ap_instance, ap, network, band): argument
344 bssid = ap.get_bssid_from_ssid(network["SSID"], band)
346 if network["security"] == hostapd_constants.WPA2_STRING:
350 if network["security"] == hostapd_constants.WPA_STRING:
352 if network["security"] == hostapd_constants.WEP_STRING:
354 if network["security"] == hostapd_constants.ENT_STRING:
359 if network["security"] == 'none':
376 for network in networks_5g:
377 if 'channel' in network:
379 self.update_bssid(ap_instance, ap, network,
[all …]
Dota_sniffer.py72 def start_capture(self, network, duration=30): argument
132 def start_capture(self, network, duration=30): argument
314 def _configure_sniffer(self, network, chan, bw): argument
402 def start_capture(self, network, chan, bw, duration=60): argument
415 self._configure_sniffer(network, chan, bw)
463 def _configure_sniffer(self, network, chan, bw): argument
470 self.log.debug('Connecting to network {}'.format(network['SSID']))
472 if 'password' not in network:
473 network['password'] = ''
476 network['SSID'], network['password'])
[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_tests/acts_contrib/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_tests/tests/google/wifi/p2p/performance/
DWifiP2pRvrTest.py154 for network in event['data']:
155 ad.droid.wifiP2pDeletePersistentGroup(network['NetworkId'])
208 for network in testcase_params['ap_networks']:
210 network['ap_id'], network['interface_id'], network['channel']))
211 self.access_points[network['ap_id']].set_channel(
212 network['interface_id'], network['channel'])
228 for network in testcase_params['ap_networks']:
229 for connected_dut in network['connected_dut']:
231 connected_dut, self.ap_networks[network['ap_id']][
232 network['interface_id']]))
[all …]
/tools/test/connectivity/acts_tests/tests/google/fuchsia/wlan_policy/
DSavedNetworksTest.py143 for network in actual_networks:
144 if network not in expected_networks:
150 def lower_case_network(self, network): argument
151 if "security_type" not in network:
152 self.log.error("Missing security type in network %s" % network)
154 if "credential_type" not in network:
155 self.log.error("Missing credential type in network %s" % network)
157 {"ssid": network["ssid"], "security_type": network["security_type"]}
/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/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,

1234