Home
last modified time | relevance | path

Searched refs:addr0 (Results 1 – 25 of 28) sorted by relevance

12

/hostap-3.7.0/tests/hwsim/
Dtest_p2p_service.py34 addr0 = dev[0].p2p_dev_addr()
46 if not dev[1].discover_peer(addr0, social=True, force_find=True):
47 raise Exception("Peer " + addr0 + " not found")
65 if addr0 in ev:
75 if addr0 in ev:
95 addr0 = dev[0].p2p_dev_addr()
96 for dst in ["00:00:00:00:00:00", addr0]:
104 addr0,
105 addr0 + " upnp qq urn:schemas-upnp-org:device:InternetGatewayDevice:1",
106 addr0 + " upnp 10",
[all …]
Dtest_p2p_ext.py18 addr0 = dev[0].p2p_dev_addr()
56 if not dev[1].discover_peer(addr0):
61 peer = dev[1].get_peer(addr0)
79 addr0 = dev[0].p2p_dev_addr()
91 if not dev[1].discover_peer(addr0):
93 peer = dev[1].get_peer(addr0)
136 addr0 = dev[0].p2p_dev_addr()
166 addr0 = dev[0].p2p_dev_addr()
171 if not dev[1].discover_peer(addr0):
176 dev[1].global_request("P2P_PROV_DISC " + addr0 + " display")
[all …]
Dtest_p2p_grpform.py157 addr0 = dev[0].p2p_dev_addr()
179 if not dev[2].discover_peer(addr0):
196 addr0 = dev[0].p2p_dev_addr()
207 if not wpas.discover_peer(addr0):
212 wpas.global_request("P2P_CONNECT " + addr0 + " 12345670 enter go_intent=15 freq=2417")
224 if dev[1].peer_known(addr0):
238 if dev[1].peer_known(addr0):
263 addr0 = dev[0].p2p_dev_addr()
271 if not dev[1].discover_peer(addr0):
273 if "OK" not in dev[1].request("P2P_CONNECT " + addr0 + " 12345670 display"):
[all …]
Dtest_p2p_messages.py126 addr0 = dev[0].p2p_dev_addr()
133 peer = dev[1].get_peer(addr0)
145 return addr0, bssid, hapd, int(params['channel'])
774 addr0 = dev[0].p2p_dev_addr()
776 peer = dev[1].get_peer(addr0)
793 msg = p2p_hdr(addr0, addr1, type=P2P_INVITATION_REQ,
803 …mgmt_tx(dev[1], "MGMT_TX {} {} freq={} wait_time=200 no_cck=1 action={}".format(addr0, addr0, peer…
818 msg = p2p_hdr(addr0, addr1, type=P2P_INVITATION_REQ,
829 …mgmt_tx(dev[1], "MGMT_TX {} {} freq={} wait_time=200 no_cck=1 action={}".format(addr0, addr0, peer…
898 addr0 = dev[0].p2p_dev_addr()
[all …]
Dtest_ap_tdls.py78 def wlantest_tdls_packet_counters(bssid, addr0, addr1): argument
80 dl = wt.get_tdls_counter("valid_direct_link", bssid, addr0, addr1)
81 inv_dl = wt.get_tdls_counter("invalid_direct_link", bssid, addr0, addr1)
82 ap = wt.get_tdls_counter("valid_ap_path", bssid, addr0, addr1)
83 inv_ap = wt.get_tdls_counter("invalid_ap_path", bssid, addr0, addr1)
86 def tdls_check_dl(sta0, sta1, bssid, addr0, addr1): argument
88 wt.tdls_clear(bssid, addr0, addr1)
90 [dl, inv_dl, ap, inv_ap] = wlantest_tdls_packet_counters(bssid, addr0, addr1)
100 def tdls_check_ap(sta0, sta1, bssid, addr0, addr1): argument
102 wt.tdls_clear(bssid, addr0, addr1)
[all …]
Dtest_p2p_set.py44 addr0 = dev[0].p2p_dev_addr()
52 dev[1].p2p_connect_group(addr0, pin, timeout=20, social=True, freq="2412")
85 addr0 = dev[0].p2p_dev_addr()
91 if not dev[1].discover_peer(addr0):
93 peer = dev[1].get_peer(addr0)
101 if not dev[2].discover_peer(addr0):
103 peer = dev[2].get_peer(addr0)
112 addr0 = dev[0].p2p_dev_addr()
122 dev[1].p2p_connect_group(addr0, pin, timeout=20, social=True, freq="2412")
Dtest_p2p_invitation.py16 addr0 = dev[0].p2p_dev_addr()
50 dev[1].p2p_connect_group(addr0, pin, timeout=60)
61 addr0 = dev[0].p2p_dev_addr()
79 if not dev[1].discover_peer(addr0, social=True):
80 raise Exception("Peer " + addr0 + " not found")
85 dev[1].global_request("P2P_CONNECT " + addr0 + " " + pin + " join auth")
114 addr0 = dev[0].p2p_dev_addr()
144 addr0 = dev[0].p2p_dev_addr()
151 dev[1].p2p_connect_group(addr0, pin, timeout=60)
164 if "go_dev_addr=" + addr0 not in ev:
[all …]
Dtest_ieee8021x.py174 addr0 = dev[0].own_addr()
188 mib = hapd.get_sta(addr0, info="eapol")
406 addr0 = dev[0].own_addr()
408 "EAPOL_SET %sfoo bar" % addr0,
409 "EAPOL_SET %s foo" % addr0,
410 "EAPOL_SET %s foo bar" % addr0,
411 "EAPOL_SET %s AdminControlledDirections bar" % addr0,
412 "EAPOL_SET %s AdminControlledPortControl bar" % addr0,
413 "EAPOL_SET %s reAuthEnabled bar" % addr0,
414 "EAPOL_SET %s KeyTransmissionEnabled bar" % addr0,
[all …]
Dtest_sta_dynamic.py224 addr0 = wpas.get_driver_status_field("addr")
232 if addr0 == addr1:
235 sta = hapd.get_sta(addr0)
262 addr0 = wpas.get_driver_status_field("addr")
270 if addr0 == addr1:
272 if addr1[3:8] != addr0[3:8]:
275 sta = hapd.get_sta(addr0)
294 if addr2[3:8] != addr0[3:8]:
304 addr0 = wpas.get_driver_status_field("addr")
311 if addr0 != addr1:
[all …]
Dtest_p2p_discovery.py28 addr0 = dev[0].p2p_dev_addr()
32 if not dev[1].discover_peer(addr0):
42 if addr0 not in ev1:
58 if addr0 not in ev1:
75 if addr0 not in ev1:
111 addr0 = dev[0].p2p_dev_addr()
192 addr0 = dev[0].p2p_dev_addr()
199 dev[1].p2p_connect_group(addr0, pin, timeout=60, freq=2422)
367 addr0 = dev[0].p2p_dev_addr()
373 if not dev[1].discover_peer(addr0):
[all …]
Dtest_p2p_persistent.py79 addr0 = dev[0].p2p_dev_addr()
93 c_res = dev[2].p2p_connect_group(addr0, pin, timeout=60, social=social,
132 if not dev[2].discover_peer(addr0, social=True):
133 raise Exception("Peer " + addr0 + " not found")
135 peer = dev[2].get_peer(addr0)
150 if not dev[2].discover_peer(addr0, social=True):
153 peer = dev[2].get_peer(addr0)
167 if not dev[2].discover_peer(addr0, social=True):
170 peer = dev[2].get_peer(addr0)
190 if not dev[1].discover_peer(addr0, social=True):
[all …]
Dtest_ap_track.py49 addr0 = dev[0].own_addr()
54 if addr0 not in track or addr1 not in track:
60 if addr0 not in track or addr2 not in track:
68 if addr0 not in track or addr1 not in track:
71 if addr0 in track or addr2 in track:
320 addr0 = dev[0].own_addr()
340 res = hapd.request("SIGNATURE " + addr0)
425 addr0 = dev[0].own_addr()
428 res = hapd.request("SIGNATURE " + addr0)
Dtest_wpas_mesh.py609 addr0 = dev[0].p2p_interface_addr()
638 if addr0 not in ev:
660 addr0 = dev[0].own_addr()
900 addr0 = dev[0].own_addr()
916 if addr == addr0:
940 addrs = [addr0, addr1, addr2]
1407 addr0 = dev[0].own_addr()
1444 if addr0 in da and addr1 in da:
1449 if addr0 not in da and addr1 not in da:
1456 if addr0 not in da:
[all …]
Dtest_p2p_autogo.py24 addr0 = dev[0].p2p_dev_addr()
32 bss = dev[1].get_bss("p2p_dev_addr=" + addr0, res['ifname'])
68 if not dev[2].discover_peer(addr0):
71 dev[2].global_request("P2P_PROV_DISC " + addr0 + " display join")
649 addr0 = dev[0].p2p_dev_addr()
669 addr0 = dev[0].p2p_dev_addr()
739 addr0 = dev[0].p2p_dev_addr()
791 addr0 = dev[0].p2p_dev_addr()
796 dev[1].discover_peer(addr0)
841 …mgmt_tx(dev[0], "MGMT_TX {} {} freq={} wait_time=10 no_cck=1 action={}".format(addr1, addr0, 2412,…
Dtest_p2ps.py142 addr0 = seeker.p2p_dev_addr()
146 session_mac=addr0, method=method, cpt=seeker_cpt,
175 if addr0 not in ev:
176 raise Exception("Unknown peer " + addr0)
189 if addr0 not in ev:
190 raise Exception("Unknown peer " + addr0)
243 if addr0 not in ev:
244 raise Exception("Unknown peer " + addr0)
650 addr0 = dev[0].p2p_dev_addr()
665 …dev[1].global_request("P2P_SERV_DISC_REQ " + addr0 + " asp 1 org.wi-fi.wfds.display.tx 'Miracast M…
[all …]
Dtest_p2p_device.py290 addr0 = dev[0].p2p_dev_addr()
295 wpas.discover_peer(addr0)
298 wpas.global_request("P2P_CONNECT " + addr0 + " 12345670 display go_intent=0")
333 addr0 = dev[0].p2p_dev_addr()
338 wpas.discover_peer(addr0)
341 wpas.global_request("P2P_CONNECT " + addr0 + " 12345670 display go_intent=15")
Dtest_p2p_channel.py1086 addr0 = wpas.p2p_dev_addr()
1113 if not dev[2].discover_peer(addr0, social=True):
1118 dev[2].global_request("P2P_CONNECT " + addr0 + " " + pin + " join freq=2437")
1123 if not dev[1].discover_peer(addr0, social=True):
1127 dev[1].global_request("P2P_CONNECT " + addr0 + " " + pin + " join auth")
1213 addr0 = dev[0].p2p_dev_addr()
1227 dev[1].global_request("P2P_CONNECT " + addr0 + " " + pin + " join freq=5180")
1249 addr0 = dev[0].p2p_dev_addr()
1263 dev[1].global_request("P2P_CONNECT " + addr0 + " " + pin + " join freq=5180")
1281 addr0 = dev[0].p2p_dev_addr()
Dtest_p2p_wifi_display.py296 addr0 = dev[0].p2p_dev_addr()
308 if not dev[1].discover_peer(addr0, social=True):
309 raise Exception("Peer " + addr0 + " not found")
314 dev[1].global_request("P2P_CONNECT " + addr0 + " " + pin + " join auth")
Dtest_p2p_concurrency.py76 addr0 = dev[0].p2p_dev_addr()
81 if dev[1].peer_known(addr0):
83 dev[1].p2p_connect_group(addr0, pin, timeout=60)
Dtest_rfkill.py128 addr0 = dev0.p2p_dev_addr()
162 if not dev1.discover_peer(addr0, social=True):
Dtest_ap_hs20.py4252 addr0 = dev[0].p2p_interface_addr()
4255 src_ll_opt0 = b"\x01\x01" + binascii.unhexlify(addr0.replace(':', ''))
4258 pkt = build_ns(src_ll=addr0, ip_src="aaaa:bbbb:cccc::2",
4376 addr0 = dev[0].p2p_interface_addr()
4378 src_ll_opt0 = b"\x01\x01" + binascii.unhexlify(addr0.replace(':', ''))
4380 pkt = build_ns(src_ll=addr0, ip_src="aaaa:bbbb:cccc::2",
4398 yiaddr="192.168.1.123", chaddr=addr0)
4402 pkt = build_dhcp_ack(dst_ll=addr0, src_ll=bssid,
4404 yiaddr="192.168.1.123", chaddr=addr0)
4797 addr0 = dev[0].p2p_interface_addr()
[all …]
Dtest_dbus.py3146 addr0 = dev[0].p2p_dev_addr()
3306 if not dev[2].discover_peer(addr0):
3368 addr0 = dev[0].p2p_dev_addr()
3517 addr0 = dev[0].p2p_dev_addr()
3575 addr0 = dev[0].p2p_dev_addr()
3580 dev[1].request("P2P_SERV_DISC_REQ " + addr0 + " 02000001")
3629 if addr0 not in ev:
3643 addr0 = dev[0].p2p_dev_addr()
3707 dev1.global_request("P2P_CONNECT " + addr0 + " 12345670 join")
3901 addr0 = dev[0].p2p_dev_addr()
[all …]
Dtest_ap_pmf.py349 addr0 = dev[0].own_addr()
355 if "OK" not in hapd.request("DEAUTHENTICATE " + addr0 + " tx=0"):
361 dev[0].request("DATA_TEST_TX " + bssid + " " + addr0)
396 addr0 = dev[0].own_addr()
400 cmd += "ff:ff:ff:ff:ff:ff" if broadcast else addr0
404 sta = hapd.get_sta(addr0)
Dtest_hapd_ctrl.py696 addr0 = dev[0].own_addr()
701 if "OK" not in hapd.request("DEAUTHENTICATE " + addr0 + " tx=0"):
705 dev[0].request("DATA_TEST_TX " + bssid + " " + addr0)
Dtest_ap_wps.py2262 addr0 = dev[0].own_addr()
2303 if addr0 not in psks:
2309 if psks[addr0] == psks[addr1]:
2311 if psks[addr0] == psks[addr2]:
2321 if addr0 not in psks2:
2323 if psks[addr0] == psks2[addr0]:
2338 addr0 = dev[0].own_addr()
2353 f.write("wps=1 " + addr0 + " preset-passphrase-0\n")
2383 if addr0 not in psks:
2389 logger.info("PSK[0]: " + psks[addr0])
[all …]

12