Lines Matching refs:hapd
26 hapd = hostapd.add_ap(apdev[0], params)
27 if hapd.get_status_field("ieee80211ax") != "1":
30 sta = hapd.get_sta(dev[0].own_addr())
41 hapd = hostapd.add_ap(apdev[0], params)
43 sta = hapd.get_sta(dev[0].own_addr())
96 hapd = hostapd.add_ap(apdev[0], params)
97 if hapd.get_status_field("ieee80211ax") != "1":
114 hapd = hostapd.add_ap(apdev[0], params)
115 if hapd.get_status_field("ieee80211ax") != "1":
129 hapd = None
143 hapd = hostapd.add_ap(apdev[0], params)
147 hwsim_utils.test_connectivity(dev[0], hapd)
159 status = hapd.get_status()
180 sta = hapd.get_sta(dev[0].own_addr())
196 clear_regdom(hapd, dev)
200 hapd = None
206 hapd = hostapd.add_ap(apdev[0], params)
235 clear_regdom(hapd, dev)
263 hapd = None
276 hapd = hostapd.add_ap(apdev, params)
281 hwsim_utils.test_connectivity(dev[0], hapd)
288 clear_regdom(hapd, dev)
305 hapd = None
327 hapd = hostapd.add_ap(apdev[0], params)
344 hwsim_utils.test_connectivity(dev[0], hapd)
345 sta0 = hapd.get_sta(dev[0].own_addr())
346 sta2 = hapd.get_sta(dev[2].own_addr())
364 clear_regdom(hapd, dev, count=3)
369 hapd = None
386 hapd = hostapd.add_ap(apdev[0], params, wait_enabled=False)
388 ev = hapd.wait_event(["AP-DISABLED"], timeout=5)
397 clear_regdom(hapd, dev)
402 hapd = None
417 hapd = hostapd.add_ap(apdev[0], params, wait_enabled=False)
419 ev = hapd.wait_event(["AP-DISABLED"], timeout=5)
428 clear_regdom(hapd, dev)
435 hapd = None
451 hapd = hostapd.add_ap(ap, params)
453 hwsim_utils.test_connectivity(dev, hapd)
456 clear_regdom(hapd, devs)
463 hapd = None
479 hapd = hostapd.add_ap(ap, params)
481 hwsim_utils.test_connectivity(dev, hapd)
484 clear_regdom(hapd, devs)
490 hapd = None
506 hapd = hostapd.add_ap(apdev[0], params, wait_enabled=False)
509 ev = wait_dfs_event(hapd, "DFS-CAC-START", 5)
513 state = hapd.get_status_field("state")
524 ev = wait_dfs_event(hapd, "DFS-CAC-COMPLETED", 70)
530 ev = hapd.wait_event(["AP-ENABLED"], timeout=5)
534 state = hapd.get_status_field("state")
540 hwsim_utils.test_connectivity(dev[0], hapd)
555 if hapd:
556 hapd.request("DISABLE")
566 hapd = None
583 hapd = hostapd.add_ap(apdev[1], params, wait_enabled=False)
585 ev = wait_dfs_event(hapd, "DFS-CAC-START", 5)
589 state = hapd.get_status_field("state")
600 ev = wait_dfs_event(hapd, "DFS-CAC-COMPLETED", 70)
606 ev = hapd.wait_event(["AP-ENABLED"], timeout=5)
610 state = hapd.get_status_field("state")
614 freq = hapd.get_status_field("freq")
620 hwsim_utils.test_connectivity(dev[0], hapd)
632 if hapd:
633 hapd.request("DISABLE")
673 hapd = None
689 hapd = hostapd.add_ap(apdev[0], params, wait_enabled=False)
690 ev = hapd.wait_event(["AP-ENABLED"], timeout=2)
702 hwsim_utils.test_connectivity(dev[0], hapd)
714 clear_regdom(hapd, dev)
719 hapd = None
734 hapd = hostapd.add_ap(apdev[0], params, wait_enabled=False)
735 ev = hapd.wait_event(["AP-ENABLED", "AP-DISABLED"], timeout=2)
752 clear_regdom(hapd, dev)
757 hapd = None
776 hapd = hostapd.add_ap(apdev[0], params, wait_enabled=False)
778 ev = hapd.wait_event(["AP-DISABLED"], timeout=5)
828 if hapd:
829 hapd.request("DISABLE")
839 hapd = None
856 hapd = hostapd.add_ap(apdev[0], params, wait_enabled=False)
858 ev = hapd.wait_event(["AP-DISABLED"], timeout=5)
867 clear_regdom(hapd, dev)
873 hapd = None
886 hapd = hostapd.add_ap(apdev[0], params)
889 hwsim_utils.test_connectivity(dev[0], hapd)
891 …hapd.request("CHAN_SWITCH 5 5180 ht vht he blocktx center_freq1=5210 sec_channel_offset=1 bandwidt…
892 ev = hapd.wait_event(["CTRL-EVENT-STARTED-CHANNEL-SWITCH"], timeout=10)
897 ev = hapd.wait_event(["CTRL-EVENT-CHANNEL-SWITCH"], timeout=10)
902 ev = hapd.wait_event(["AP-CSA-FINISHED"], timeout=10)
908 hwsim_utils.test_connectivity(dev[0], hapd)
910 hapd.request("CHAN_SWITCH 5 5745")
911 ev = hapd.wait_event(["AP-CSA-FINISHED"], timeout=10)
917 hwsim_utils.test_connectivity(dev[0], hapd)
921 hapd.request("CHAN_SWITCH 5 5745")
922 hapd.wait_event(["AP-CSA-FINISHED"], timeout=1)
930 clear_regdom(hapd, dev)
934 hapd = None
944 hapd = hostapd.add_ap(apdev[0], params)
947 hwsim_utils.test_connectivity(dev[0], hapd)
948 sta = hapd.get_sta(dev[0].own_addr())
951 sta = hapd.get_sta(dev[1].own_addr())
956 if hapd:
957 hapd.request("DISABLE")
964 hapd = None
980 hapd = hostapd.add_ap(apdev[0], params)
990 if hapd:
991 hapd.request("DISABLE")
1000 hapd = None
1014 hapd = hostapd.add_ap(apdev[0], params)
1018 hwsim_utils.test_connectivity(dev[0], hapd)
1025 clear_regdom(hapd, dev)
1031 hapd = None
1048 hapd = hostapd.add_ap(apdev[0], params)
1052 hwsim_utils.test_connectivity(dev[0], hapd)
1058 status = hapd.get_status()
1075 clear_regdom(hapd, dev)
1082 hapd = None
1099 hapd = hostapd.add_ap(ap, params)
1102 hwsim_utils.test_connectivity(dev, hapd)
1104 clear_regdom(hapd, devs)
1109 hapd = None
1123 hapd = hostapd.add_ap(apdev[0], params)
1126 hapd.disable()
1127 hapd.set("ieee80211ac", "0")
1128 hapd.set("hw_mode", "g")
1129 hapd.set("channel", "1")
1130 hapd.set("ht_capab", "")
1131 hapd.set("vht_capab", "")
1132 hapd.set("he_oper_chwidth", "")
1133 hapd.set("he_oper_centr_freq_seg0_idx", "")
1134 hapd.set("vht_oper_chwidth", "")
1135 hapd.set("vht_oper_centr_freq_seg0_idx", "")
1136 hapd.enable()
1146 clear_regdom(hapd, dev)
1154 hapd = hostapd.add_ap(apdev[0], params)
1172 hapd = None
1184 hapd = hostapd.add_ap(apdev[0], params, set_channel=False)
1190 hwsim_utils.test_connectivity(dev[0], hapd)
1203 status = hapd.get_status()
1210 sta = hapd.get_sta(dev[0].own_addr())
1223 clear_regdom(hapd, dev)
1229 hapd = None
1240 hapd = hostapd.add_ap(apdev[0], params, set_channel=False)
1252 hapd.wait_sta()
1253 sta = hapd.get_sta(dev[0].own_addr())
1263 clear_regdom(hapd, dev)
1266 hapd = hostapd.add_ap(apdev[1], params)
1274 hapd.wait_sta()
1275 sta = hapd.get_sta(dev[0].own_addr())
1284 hapd = None
1297 hapd = hostapd.add_ap(apdev[0], params, wait_enabled=False)
1298 wait_acs(hapd)
1301 freq = hapd.get_status_field("freq")
1305 sec = hapd.get_status_field("secondary_channel")
1314 hwsim_utils.test_connectivity(dev[0], hapd)
1328 clear_regdom(hapd, dev)
1352 hapd = hostapd.add_ap(apdev[0], params, no_enable=True)
1355 if "FAIL" not in hapd.request("ENABLE"):
1359 hapd.set("wpa", "2")
1360 hapd.set("wpa_passphrase", "12345678")
1361 hapd.set("wpa_key_mgmt", "SAE")
1362 hapd.set("rsn_pairwise", "CCMP")
1363 hapd.set("ieee80211w", "1")
1364 if "FAIL" not in hapd.request("ENABLE"):
1368 hapd.set("ieee80211w", "2")
1369 hapd.set("wpa_key_mgmt", "SAE WPA-PSK")
1370 if "FAIL" not in hapd.request("ENABLE"):
1374 hapd.set("wpa_key_mgmt", "SAE")
1375 hapd.set("rsn_pairwise", "CCMP TKIP")
1376 if "FAIL" not in hapd.request("ENABLE"):
1380 hapd.set("wpa_key_mgmt", "SAE")
1381 hapd.set("rsn_pairwise", "CCMP")
1382 hapd.set("group_cipher", "TKIP")
1383 if "FAIL" not in hapd.request("ENABLE"):
1392 hapd = hostapd.add_ap(apdev[0], params)
1422 hapd = hostapd.add_ap(apdev[0], params)
1424 hapd.set("ext_mgmt_frame_handling", "1")
1425 bssid = hapd.own_addr().replace(':', '')
1509 …if "OK" not in hapd.request("MGMT_RX_PROCESS freq=2412 datarate=0 ssi_signal=-30 frame=%s" % auth):
1524 …if "OK" not in hapd.request("MGMT_RX_PROCESS freq=2412 datarate=0 ssi_signal=-30 frame=%s" % assoc…
1527 sta = hapd.get_sta(addr_)
1536 …if "OK" not in hapd.request("MGMT_RX_PROCESS freq=2412 datarate=0 ssi_signal=-30 frame=%s" % deaut…
1539 hapd.dump_monitor()
1544 hapd = None
1557 hapd = hostapd.add_ap(apdev[0], params)
1566 sta = hapd.get_sta(dev[0].own_addr())
1575 sta = hapd.get_sta(dev[1].own_addr())
1584 sta = hapd.get_sta(dev[2].own_addr())
1594 if "OK" not in hapd.request("NOTIFY_CW_CHANGE %d" % i):
1598 hwsim_utils.test_connectivity(dev[0], hapd)
1599 hwsim_utils.test_connectivity(dev[1], hapd)
1600 hwsim_utils.test_connectivity(dev[2], hapd)
1610 clear_regdom(hapd, dev)
1612 def he_verify_status(wpas, hapd, freq, bw, is_6ghz=True): argument
1613 status = hapd.get_status()
1623 sta = hapd.get_sta(wpas.own_addr())
1653 hapd = None
1680 hapd = hostapd.add_ap(apdev[0], params, set_channel=False)
1686 hapd.wait_sta()
1688 he_verify_status(dev[0], hapd, freq, bw)
1690 hwsim_utils.test_connectivity(dev[0], hapd)
1694 hapd.set("local_pwr_constraint", "2")
1695 hapd.set("he_6ghz_reg_pwr_type", "2")
1696 hapd.set("reg_def_cli_eirp_psd", "2")
1697 hapd.set("reg_sub_cli_eirp_psd", "1")
1700 hapd.set("vendor_elements", "c303190202")
1702 if "OK" not in hapd.request("UPDATE_BEACON"):
1712 hapd.set("vendor_elements", "")
1713 hapd.set("he_6ghz_reg_pwr_type", "1")
1714 hapd.set("reg_def_cli_eirp", "14")
1716 if "OK" not in hapd.request("UPDATE_BEACON"):
1730 clear_regdom(hapd, dev)
1787 hapd = None
1788 hapd = hostapd.add_ap(apdev[0], params)
1796 hapd.wait_sta_disconnect()
1799 clear_regdom(hapd, dev)
1808 hapd = hostapd.add_ap(apdev[0], params)
1809 if hapd.get_status_field("ieee80211ax") != "1":
1812 color = hapd.get_status_field("he_bss_color")
1820 if "OK" not in hapd.request("COLOR_CHANGE 20"):
1824 color = hapd.get_status_field("he_bss_color")
1829 if "OK" not in hapd.request("COLOR_CHANGE 0"):
1833 color = hapd.get_status_field("he_bss_color")
1838 if "OK" not in hapd.request("COLOR_CHANGE 20"):
1842 color = hapd.get_status_field("he_bss_color")
1846 hapd.dump_monitor()