Lines Matching refs:hapd

21     hapd = hostapd.add_ap(apdev[0], params)
22 status = hapd.get_status()
24 driver = hapd.get_driver_status()
57 hapd = hostapd.add_ap(apdev[0], params)
60 if "OK" not in hapd.request("DEAUTHENTICATE " + addr + " p2p=2"):
65 if "OK" not in hapd.request("DISASSOCIATE " + addr + " p2p=2"):
82 hapd = hostapd.add_ap(apdev[0], params)
87 ev = hapd.wait_event(["AP-STA-CONNECTED"], timeout=2)
97 if "FAIL" in hapd.request("STA " + addr):
99 if "FAIL" not in hapd.request("STA " + addr + " eapol"):
101 if "FAIL" not in hapd.request("STA " + addr + " foo"):
103 if "FAIL" not in hapd.request("STA 00:11:22:33:44"):
105 if "FAIL" not in hapd.request("STA 00:11:22:33:44:55"):
108 if len(hapd.request("STA-NEXT " + addr).splitlines()) > 0:
110 if "FAIL" not in hapd.request("STA-NEXT 00:11:22:33:44"):
113 sta = hapd.get_sta(addr)
134 hapd = hostapd.add_ap(apdev[0], params)
138 if "FAIL" not in hapd.request("DEAUTHENTICATE 00:11:22:33:44"):
141 if "OK" not in hapd.request("DEAUTHENTICATE ff:ff:ff:ff:ff:ff"):
146 if "FAIL" not in hapd.request("DISASSOCIATE 00:11:22:33:44"):
149 if "OK" not in hapd.request("DISASSOCIATE ff:ff:ff:ff:ff:ff"):
159 hapd = hostapd.add_ap(apdev[0], params)
160 if "FAIL" not in hapd.request("CHAN_SWITCH "):
162 if "FAIL" not in hapd.request("CHAN_SWITCH qwerty 2422"):
164 if "FAIL" not in hapd.request("CHAN_SWITCH 5 qwerty"):
166 …if "FAIL" not in hapd.request("CHAN_SWITCH 0 2432 center_freq1=123 center_freq2=234 bandwidth=1000…
174 hapd = hostapd.add_ap(apdev[0], params)
175 if "FAIL" not in hapd.request("LEVEL 0"):
183 hapd = hostapd.add_ap(apdev[0], params)
184 if "FAIL" not in hapd.request("NEW_STA 00:11:22:33:44"):
186 if "OK" not in hapd.request("NEW_STA 00:11:22:33:44:55"):
188 if "AUTHORIZED" not in hapd.request("STA 00:11:22:33:44:55"):
190 if "OK" not in hapd.request("NEW_STA 00:11:22:33:44:55"):
192 with alloc_fail(hapd, 1, "ap_sta_add;hostapd_ctrl_iface_new_sta"):
193 if "FAIL" not in hapd.request("NEW_STA 00:11:22:33:44:66"):
201 hapd = hostapd.add_ap(apdev[0], params)
202 if "FAIL" not in hapd.request("GET foo"):
204 if "FAIL" in hapd.request("GET version"):
212 hapd = hostapd.add_ap(apdev[0], params)
213 if "UNKNOWN COMMAND" not in hapd.request("FOO"):
221 hapd = hostapd.add_ap(apdev[0], params)
222 if "FAIL" not in hapd.request("HS20_WNM_NOTIF 00:11:22:33:44 http://example.com/"):
224 if "FAIL" not in hapd.request("HS20_WNM_NOTIF 00:11:22:33:44:55http://example.com/"):
232 hapd = hostapd.add_ap(apdev[0], params)
233 if "FAIL" not in hapd.request("HS20_DEAUTH_REQ 00:11:22:33:44 1 120 http://example.com/"):
235 if "FAIL" not in hapd.request("HS20_DEAUTH_REQ 00:11:22:33:44:55"):
237 if "FAIL" not in hapd.request("HS20_DEAUTH_REQ 00:11:22:33:44:55 1"):
245 hapd = hostapd.add_ap(apdev[0], params)
246 if "FAIL" not in hapd.request("DISASSOC_IMMINENT 00:11:22:33:44"):
248 if "FAIL" not in hapd.request("DISASSOC_IMMINENT 00:11:22:33:44:55"):
250 if "FAIL" not in hapd.request("DISASSOC_IMMINENT 00:11:22:33:44:55 2"):
254 if "OK" not in hapd.request("DISASSOC_IMMINENT " + addr + " 2"):
265 hapd = hostapd.add_ap(apdev[0], params)
266 if "FAIL" not in hapd.request("ESS_DISASSOC 00:11:22:33:44"):
268 if "FAIL" not in hapd.request("ESS_DISASSOC 00:11:22:33:44:55"):
272 if "FAIL" not in hapd.request("ESS_DISASSOC " + addr):
274 if "FAIL" not in hapd.request("ESS_DISASSOC " + addr + " -1"):
276 if "FAIL" not in hapd.request("ESS_DISASSOC " + addr + " 1"):
278 if "OK" not in hapd.request("ESS_DISASSOC " + addr + " 20 http://example.com/"):
289 hapd = hostapd.add_ap(apdev[0], params)
292 hapd.send_file(filename, filename)
293 if "OK" not in hapd.request("SET deny_mac_file " + filename):
307 hapd = hostapd.add_ap(apdev[0], params)
310 hapd.send_file(filename, filename)
311 hapd.request("SET macaddr_acl 1")
312 if "OK" not in hapd.request("SET accept_mac_file " + filename):
326 hapd = hostapd.add_ap(apdev[0], params)
329 hapd.send_file(filename, filename)
330 hapd.request("SET macaddr_acl 1")
331 if "OK" not in hapd.request("SET accept_mac_file " + filename):
343 hapd = hostapd.add_ap(apdev[0], params)
511 if "FAIL" not in hapd.request("SET " + e):
514 if "OK" not in hapd.request("SET osu_server_uri https://example.com/"):
516 if "OK" not in hapd.request("SET osu_friendly_name eng:Example"):
522 if "FAIL" not in hapd.request("SET " + e):
534 if "OK" not in hapd.request("SET " + e):
543 hapd = hostapd.add_ap(apdev[0], params)
646 hapd = hostapd.add_ap(apdev[0], {"ssid": "open"})
647 level = hapd.request("LOG_LEVEL")
653 if "OK" not in hapd.request("LOG_LEVEL MSGDUMP 0"):
655 level = hapd.request("LOG_LEVEL")
661 if "OK" not in hapd.request("LOG_LEVEL MSGDUMP 1"):
663 level = hapd.request("LOG_LEVEL")
669 if "FAIL" not in hapd.request("LOG_LEVEL FOO"):
673 if "OK" not in hapd.request("LOG_LEVEL " + lev):
675 level = hapd.request("LOG_LEVEL")
679 if "OK" not in hapd.request("LOG_LEVEL MSGDUMP 1"):
681 level = hapd.request("LOG_LEVEL")
693 hapd = hostapd.add_ap(apdev[0], params)
701 if "OK" not in hapd.request("DEAUTHENTICATE " + addr0 + " tx=0"):
714 if "OK" not in hapd.request("DISASSOCIATE " + addr1 + " tx=0"):
730 hapd = hostapd.add_ap(apdev[0], params)
732 mib = hapd.request("MIB")
736 mib = hapd.request("MIB radius_server")
740 if "FAIL" not in hapd.request("MIB foo"):
745 mib = hapd.request("MIB")
749 mib = hapd.request("MIB radius_server")
753 if "FAIL" not in hapd.request("MIB foo"):
760 hapd = hostapd.add_ap(apdev[0], params, no_enable=True)
762 if not hapd.ping():
764 if "FAIL" in hapd.request("MIB"):
766 if len(hapd.request("MIB radius_server")) != 0:
768 if "state=UNINITIALIZED" not in hapd.request("STATUS"):
770 if "FAIL" not in hapd.request("STATUS-DRIVER"):
772 if len(hapd.request("STA-FIRST")) != 0:
774 if "FAIL" not in hapd.request("STA ff:ff:ff:ff:ff:ff"):
818 hapd.request(cmd)
824 hapd = hostapd.add_ap(apdev[0], params)
830 if "FAIL" not in hapd.request("SET " + t):
837 hapd = hostapd.add_ap(apdev[0], params)
841 if "FAIL" not in hapd.request("RADAR " + t):
849 hapd.request("RADAR " + t)
855 hapd = hostapd.add_ap(apdev[0], params)
864 if "FAIL" not in hapd.request(t):
866 with alloc_fail(hapd, 1, "=hostapd_ctrl_iface_mgmt_tx"):
867 if "FAIL" not in hapd.request("MGMT_TX 12"):
869 with alloc_fail(hapd, 1, "=hostapd_ctrl_iface_eapol_rx"):
870 if "FAIL" not in hapd.request("EAPOL_RX 00:11:22:33:44:55 11"):
873 hapd.set("ext_mgmt_frame_handling", "1")
882 if "FAIL" not in hapd.request(t):
884 with alloc_fail(hapd, 1, "=hostapd_ctrl_iface_mgmt_rx_process"):
885 if "FAIL" not in hapd.request("MGMT_RX_PROCESS freq=2412 frame=11"):
887 hapd.set("ext_mgmt_frame_handling", "0")
889 if "OK" not in hapd.request("DATA_TEST_CONFIG 1"):
891 if "OK" not in hapd.request("DATA_TEST_CONFIG 1"):
898 if "FAIL" not in hapd.request(t):
900 if "OK" not in hapd.request("DATA_TEST_CONFIG 0"):
908 if "FAIL" not in hapd.request(t):
910 with alloc_fail(hapd, 1, "=hostapd_ctrl_iface_data_test_frame"):
911 if "FAIL" not in hapd.request("DATA_TEST_FRAME 112233445566778899aabbccddeeff"):
918 hapd = hostapd.add_ap(apdev[0], params)
926 res = hapd.request(cmd)
933 res = hapd.request(cmd + " nested=1")
940 res = hapd.request(cmd + " nested=0")
948 hapd = hostapd.add_ap(apdev[0], params)
955 if "FAIL" not in hapd.request("VENDOR " + t):
957 with alloc_fail(hapd, 1, "=hostapd_ctrl_iface_vendor"):
958 if "FAIL" not in hapd.request("VENDOR 10 10 10"):
960 with alloc_fail(hapd, 1, "wpabuf_alloc;hostapd_ctrl_iface_vendor"):
961 if "FAIL" not in hapd.request("VENDOR 10 10"):
968 hapd = hostapd.add_ap(apdev[0], params)
972 if "FAIL" not in hapd.request("EAPOL_REAUTH " + t):
979 hapd = hostapd.add_ap(apdev[0], params)
980 if "OK" not in hapd.request("RELOG"):
987 hapd = hostapd.add_ap(apdev[0], params)
991 if "FAIL" not in hapd.request("POLL_STA " + t):
998 hapd = hostapd.add_ap(apdev[0], params)
999 if "OK" not in hapd.request("UPDATE_BEACON"):
1001 with fail_test(hapd, 1, "ieee802_11_set_beacon"):
1002 if "FAIL" not in hapd.request("UPDATE_BEACON"):
1006 if "OK" not in hapd.request("UPDATE_BEACON"):
1008 hapd.disable()
1009 if "FAIL" not in hapd.request("UPDATE_BEACON"):
1016 hapd = hostapd.add_ap(apdev[0], params)
1017 if "OK" not in hapd.request("TEST_ALLOC_FAIL 1:unknownfunc"):
1019 if "OK" not in hapd.request("TEST_ALLOC_FAIL "):
1021 if "OK" not in hapd.request("TEST_FAIL "):
1028 hapd = hostapd.add_ap(apdev[0], params)
1031 if "FAIL" not in hapd.request("SET setband foo"):
1035 if "OK" not in hapd.request("SET setband " + val):
1042 hapd = hostapd.add_ap(apdev[0], params)
1043 if "FAIL" not in hapd.request("GET_CAPABILITY "):
1045 res = hapd.request("GET_CAPABILITY dpp")
1052 hapd = hostapd.add_ap(apdev[0], params)
1064 if "FAIL" not in hapd.request("PMKSA_ADD " + t):
1070 hapd = hostapd.add_ap(apdev[0], params)
1072 with alloc_fail(hapd, 1, "ctrl_iface_attach"):
1073 if "FAIL" not in hapd.request("ATTACH foo"):
1075 with alloc_fail(hapd, 1, "ctrl_iface_attach"):