Lines Matching refs:apdev

59 def test_dpp_qr_code_parsing(dev, apdev):  argument
122 def test_dpp_uri_version(dev, apdev): argument
153 def test_dpp_uri_supported_curves(dev, apdev): argument
182 def test_dpp_uri_host(dev, apdev): argument
204 def test_dpp_qr_code_parsing_fail(dev, apdev): argument
230 def test_dpp_qr_code_curves(dev, apdev): argument
244 def test_dpp_qr_code_curves_brainpool(dev, apdev): argument
258 def test_dpp_qr_code_unsupported_curve(dev, apdev): argument
273 def test_dpp_qr_code_keygen_fail(dev, apdev): argument
286 def test_dpp_qr_code_curve_select(dev, apdev): argument
315 def test_dpp_qr_code_auth_broadcast(dev, apdev): argument
327 def test_dpp_qr_code_auth_unicast(dev, apdev): argument
329 run_dpp_qr_code_auth_unicast(dev, apdev, None)
331 def test_dpp_qr_code_auth_unicast_ap_enrollee(dev, apdev): argument
333 run_dpp_qr_code_auth_unicast(dev, apdev, None, netrole="ap")
335 def run_dpp_configurator_enrollee(dev, apdev, conf_curve=None): argument
336 run_dpp_qr_code_auth_unicast(dev, apdev, None, netrole="configurator",
343 def test_dpp_configurator_enrollee(dev, apdev): argument
345 run_dpp_configurator_enrollee(dev, apdev)
347 def test_dpp_configurator_enrollee_prime256v1(dev, apdev): argument
349 run_dpp_configurator_enrollee(dev, apdev, conf_curve="prime256v1")
351 def test_dpp_configurator_enrollee_secp384r1(dev, apdev): argument
353 run_dpp_configurator_enrollee(dev, apdev, conf_curve="secp384r1")
355 def test_dpp_configurator_enrollee_secp521r1(dev, apdev): argument
357 run_dpp_configurator_enrollee(dev, apdev, conf_curve="secp521r1")
359 def test_dpp_configurator_enrollee_brainpoolP256r1(dev, apdev): argument
361 run_dpp_configurator_enrollee(dev, apdev, conf_curve="brainpoolP256r1")
363 def test_dpp_configurator_enrollee_brainpoolP384r1(dev, apdev): argument
365 run_dpp_configurator_enrollee(dev, apdev, conf_curve="brainpoolP384r1")
367 def test_dpp_configurator_enrollee_brainpoolP512r1(dev, apdev): argument
369 run_dpp_configurator_enrollee(dev, apdev, conf_curve="brainpoolP512r1")
371 def test_dpp_configurator_enroll_conf(dev, apdev): argument
376 run_dpp_configurator_enroll_conf(dev, apdev)
380 def run_dpp_configurator_enroll_conf(dev, apdev): argument
381 run_dpp_qr_code_auth_unicast(dev, apdev, None, netrole="configurator",
400 def test_dpp_qr_code_curve_prime256v1(dev, apdev): argument
402 run_dpp_qr_code_auth_unicast(dev, apdev, "prime256v1")
404 def test_dpp_qr_code_curve_secp384r1(dev, apdev): argument
406 run_dpp_qr_code_auth_unicast(dev, apdev, "secp384r1")
408 def test_dpp_qr_code_curve_secp521r1(dev, apdev): argument
410 run_dpp_qr_code_auth_unicast(dev, apdev, "secp521r1")
412 def test_dpp_qr_code_curve_brainpoolP256r1(dev, apdev): argument
414 run_dpp_qr_code_auth_unicast(dev, apdev, "brainpoolP256r1")
416 def test_dpp_qr_code_curve_brainpoolP384r1(dev, apdev): argument
418 run_dpp_qr_code_auth_unicast(dev, apdev, "brainpoolP384r1")
420 def test_dpp_qr_code_curve_brainpoolP512r1(dev, apdev): argument
422 run_dpp_qr_code_auth_unicast(dev, apdev, "brainpoolP512r1")
424 def test_dpp_qr_code_set_key(dev, apdev): argument
426 …run_dpp_qr_code_auth_unicast(dev, apdev, None, key="30770201010420e5143ac74682cc6869a830e8f5301a5f…
428 def run_dpp_qr_code_auth_unicast(dev, apdev, curve, netrole=None, key=None, argument
467 def test_dpp_qr_code_auth_mutual(dev, apdev): argument
494 def test_dpp_qr_code_auth_mutual2(dev, apdev): argument
533 def test_dpp_qr_code_auth_mutual_p_256(dev, apdev): argument
535 run_dpp_qr_code_auth_mutual(dev, apdev, "P-256")
537 def test_dpp_qr_code_auth_mutual_p_384(dev, apdev): argument
539 run_dpp_qr_code_auth_mutual(dev, apdev, "P-384")
541 def test_dpp_qr_code_auth_mutual_p_521(dev, apdev): argument
543 run_dpp_qr_code_auth_mutual(dev, apdev, "P-521")
545 def test_dpp_qr_code_auth_mutual_bp_256(dev, apdev): argument
547 run_dpp_qr_code_auth_mutual(dev, apdev, "BP-256")
549 def test_dpp_qr_code_auth_mutual_bp_384(dev, apdev): argument
551 run_dpp_qr_code_auth_mutual(dev, apdev, "BP-384")
553 def test_dpp_qr_code_auth_mutual_bp_512(dev, apdev): argument
555 run_dpp_qr_code_auth_mutual(dev, apdev, "BP-512")
557 def run_dpp_qr_code_auth_mutual(dev, apdev, curve): argument
592 def test_dpp_auth_resp_retries(dev, apdev): argument
644 def test_dpp_qr_code_auth_mutual_not_used(dev, apdev): argument
667 def test_dpp_qr_code_auth_mutual_curve_mismatch(dev, apdev): argument
682 def test_dpp_qr_code_auth_hostapd_mutual2(dev, apdev): argument
685 hapd = hostapd.add_ap(apdev[0], {"ssid": "unconfigured"})
714 def test_dpp_qr_code_listen_continue(dev, apdev): argument
728 def test_dpp_qr_code_auth_initiator_enrollee(dev, apdev): argument
731 run_dpp_qr_code_auth_initiator_enrollee(dev, apdev)
736 def run_dpp_qr_code_auth_initiator_enrollee(dev, apdev): argument
750 def test_dpp_qr_code_auth_initiator_either_1(dev, apdev): argument
752 run_dpp_qr_code_auth_initiator_either(dev, apdev, None, dev[1], dev[0])
754 def test_dpp_qr_code_auth_initiator_either_2(dev, apdev): argument
756 run_dpp_qr_code_auth_initiator_either(dev, apdev, "enrollee",
759 def test_dpp_qr_code_auth_initiator_either_3(dev, apdev): argument
761 run_dpp_qr_code_auth_initiator_either(dev, apdev, "configurator",
764 def run_dpp_qr_code_auth_initiator_either(dev, apdev, resp_role, argument
792 def test_dpp_qr_code_auth_incompatible_roles(dev, apdev): argument
805 def test_dpp_qr_code_auth_incompatible_roles2(dev, apdev): argument
816 def test_dpp_qr_code_auth_incompatible_roles_failure(dev, apdev): argument
825 def test_dpp_qr_code_auth_incompatible_roles_failure2(dev, apdev): argument
832 def test_dpp_qr_code_auth_incompatible_roles_failure3(dev, apdev): argument
839 def test_dpp_qr_code_auth_neg_chan(dev, apdev): argument
897 def test_dpp_config_legacy(dev, apdev): argument
902 run_dpp_qr_code_auth_unicast(dev, apdev, "prime256v1",
905 def test_dpp_config_legacy_psk_hex(dev, apdev): argument
910 run_dpp_qr_code_auth_unicast(dev, apdev, "prime256v1",
913 def test_dpp_config_fragmentation(dev, apdev): argument
918 run_dpp_qr_code_auth_unicast(dev, apdev, "prime256v1",
921 def test_dpp_config_legacy_gen(dev, apdev): argument
923 run_dpp_qr_code_auth_unicast(dev, apdev, "prime256v1",
927 def test_dpp_config_legacy_gen_psk(dev, apdev): argument
929 run_dpp_qr_code_auth_unicast(dev, apdev, "prime256v1",
933 def test_dpp_config_legacy_gen_two_conf(dev, apdev): argument
947 run_dpp_qr_code_auth_unicast(dev, apdev, "prime256v1",
987 def test_dpp_config_legacy_gen_two_conf_psk(dev, apdev): argument
1000 run_dpp_qr_code_auth_unicast(dev, apdev, "prime256v1",
1040 def test_dpp_config_legacy_gen_sta_ap_conf(dev, apdev): argument
1051 run_dpp_qr_code_auth_unicast(dev, apdev, "prime256v1",
1069 def test_dpp_config_dpp_gen_prime256v1(dev, apdev): argument
1071 run_dpp_qr_code_auth_unicast(dev, apdev, "prime256v1",
1076 def test_dpp_config_dpp_gen_secp384r1(dev, apdev): argument
1078 run_dpp_qr_code_auth_unicast(dev, apdev, "secp384r1",
1083 def test_dpp_config_dpp_gen_secp521r1(dev, apdev): argument
1085 run_dpp_qr_code_auth_unicast(dev, apdev, "secp521r1",
1090 def test_dpp_config_dpp_gen_prime256v1_prime256v1(dev, apdev): argument
1092 run_dpp_qr_code_auth_unicast(dev, apdev, "prime256v1",
1098 def test_dpp_config_dpp_gen_prime256v1_secp384r1(dev, apdev): argument
1100 run_dpp_qr_code_auth_unicast(dev, apdev, "prime256v1",
1106 def test_dpp_config_dpp_gen_prime256v1_secp521r1(dev, apdev): argument
1108 run_dpp_qr_code_auth_unicast(dev, apdev, "prime256v1",
1114 def test_dpp_config_dpp_gen_secp384r1_prime256v1(dev, apdev): argument
1116 run_dpp_qr_code_auth_unicast(dev, apdev, "secp384r1",
1122 def test_dpp_config_dpp_gen_secp384r1_secp384r1(dev, apdev): argument
1124 run_dpp_qr_code_auth_unicast(dev, apdev, "secp384r1",
1130 def test_dpp_config_dpp_gen_secp384r1_secp521r1(dev, apdev): argument
1132 run_dpp_qr_code_auth_unicast(dev, apdev, "secp384r1",
1138 def test_dpp_config_dpp_gen_secp521r1_prime256v1(dev, apdev): argument
1140 run_dpp_qr_code_auth_unicast(dev, apdev, "secp521r1",
1146 def test_dpp_config_dpp_gen_secp521r1_secp384r1(dev, apdev): argument
1148 run_dpp_qr_code_auth_unicast(dev, apdev, "secp521r1",
1154 def test_dpp_config_dpp_gen_secp521r1_secp521r1(dev, apdev): argument
1156 run_dpp_qr_code_auth_unicast(dev, apdev, "secp521r1",
1162 def test_dpp_config_dpp_gen_prime256v1_secp384r1_secp384r1(dev, apdev): argument
1164 run_dpp_qr_code_auth_unicast(dev, apdev, "prime256v1",
1171 def test_dpp_config_dpp_gen_expiry(dev, apdev): argument
1173 run_dpp_qr_code_auth_unicast(dev, apdev, "prime256v1",
1178 def test_dpp_config_dpp_gen_expired_key(dev, apdev): argument
1180 run_dpp_qr_code_auth_unicast(dev, apdev, "prime256v1",
1185 def test_dpp_config_dpp_gen_3rd_party(dev, apdev): argument
1193 run_dpp_config_dpp_gen_3rd_party(dev, apdev)
1198 def run_dpp_config_dpp_gen_3rd_party(dev, apdev): argument
1202 run_dpp_qr_code_auth_unicast(dev, apdev, "prime256v1",
1207 def test_dpp_config_dpp_override_prime256v1(dev, apdev): argument
1214 run_dpp_qr_code_auth_unicast(dev, apdev, "prime256v1",
1217 def test_dpp_config_dpp_override_secp384r1(dev, apdev): argument
1224 run_dpp_qr_code_auth_unicast(dev, apdev, "secp384r1",
1227 def test_dpp_config_dpp_override_secp521r1(dev, apdev): argument
1234 run_dpp_qr_code_auth_unicast(dev, apdev, "secp521r1",
1237 def test_dpp_config_override_objects(dev, apdev): argument
1244 run_dpp_qr_code_auth_unicast(dev, apdev, "prime256v1",
1292 def run_dpp_config_error(dev, apdev, conf, argument
1300 run_dpp_qr_code_auth_unicast(dev, apdev, "prime256v1",
1304 def test_dpp_config_jwk_error_no_kty(dev, apdev): argument
1306 run_dpp_config_error(dev, apdev, build_conf_obj(kty=None))
1308 def test_dpp_config_jwk_error_unexpected_kty(dev, apdev): argument
1310 run_dpp_config_error(dev, apdev, build_conf_obj(kty="unknown"))
1312 def test_dpp_config_jwk_error_no_crv(dev, apdev): argument
1314 run_dpp_config_error(dev, apdev, build_conf_obj(crv=None))
1316 def test_dpp_config_jwk_error_unsupported_crv(dev, apdev): argument
1318 run_dpp_config_error(dev, apdev, build_conf_obj(crv="unsupported"))
1320 def test_dpp_config_jwk_error_no_x(dev, apdev): argument
1322 run_dpp_config_error(dev, apdev, build_conf_obj(x=None))
1324 def test_dpp_config_jwk_error_invalid_x(dev, apdev): argument
1326 run_dpp_config_error(dev, apdev, build_conf_obj(x="MTIz"))
1328 def test_dpp_config_jwk_error_no_y(dev, apdev): argument
1330 run_dpp_config_error(dev, apdev, build_conf_obj(y=None))
1332 def test_dpp_config_jwk_error_invalid_y(dev, apdev): argument
1334 run_dpp_config_error(dev, apdev, build_conf_obj(y="MTIz"))
1336 def test_dpp_config_jwk_error_invalid_xy(dev, apdev): argument
1340 run_dpp_config_error(dev, apdev, conf)
1342 def test_dpp_config_jwk_error_no_kid(dev, apdev): argument
1345 run_dpp_config_error(dev, apdev, build_conf_obj(kid=None),
1348 def test_dpp_config_jws_error_prot_hdr_not_an_object(dev, apdev): argument
1350 run_dpp_config_error(dev, apdev, build_conf_obj(prot_hdr="1"))
1352 def test_dpp_config_jws_error_prot_hdr_no_typ(dev, apdev): argument
1355 run_dpp_config_error(dev, apdev, build_conf_obj(prot_hdr=prot_hdr))
1357 def test_dpp_config_jws_error_prot_hdr_unsupported_typ(dev, apdev): argument
1360 run_dpp_config_error(dev, apdev, build_conf_obj(prot_hdr=prot_hdr))
1362 def test_dpp_config_jws_error_prot_hdr_no_alg(dev, apdev): argument
1365 run_dpp_config_error(dev, apdev, build_conf_obj(prot_hdr=prot_hdr))
1367 def test_dpp_config_jws_error_prot_hdr_unexpected_alg(dev, apdev): argument
1370 run_dpp_config_error(dev, apdev, build_conf_obj(prot_hdr=prot_hdr))
1372 def test_dpp_config_jws_error_prot_hdr_no_kid(dev, apdev): argument
1375 run_dpp_config_error(dev, apdev, build_conf_obj(prot_hdr=prot_hdr))
1377 def test_dpp_config_jws_error_prot_hdr_unexpected_kid(dev, apdev): argument
1380 run_dpp_config_error(dev, apdev, build_conf_obj(prot_hdr=prot_hdr))
1382 def test_dpp_config_signed_connector_error_no_dot_1(dev, apdev): argument
1385 run_dpp_config_error(dev, apdev, build_conf_obj(signed_connector=conn))
1387 def test_dpp_config_signed_connector_error_no_dot_2(dev, apdev): argument
1390 run_dpp_config_error(dev, apdev, build_conf_obj(signed_connector=conn))
1392 def test_dpp_config_signed_connector_error_unexpected_signature_len(dev, apdev): argument
1395 run_dpp_config_error(dev, apdev, build_conf_obj(signed_connector=conn))
1397 def test_dpp_config_signed_connector_error_invalid_signature_der(dev, apdev): argument
1400 run_dpp_config_error(dev, apdev, build_conf_obj(signed_connector=conn))
1402 def test_dpp_config_no_csign(dev, apdev): argument
1404 run_dpp_config_error(dev, apdev, build_conf_obj(csign=False))
1406 def test_dpp_config_no_signed_connector(dev, apdev): argument
1408 run_dpp_config_error(dev, apdev, build_conf_obj(no_signed_connector=True))
1410 def test_dpp_config_unexpected_signed_connector_char(dev, apdev): argument
1412 run_dpp_config_error(dev, apdev, build_conf_obj(signed_connector='a\nb'))
1414 def test_dpp_config_root_not_an_object(dev, apdev): argument
1417 run_dpp_config_error(dev, apdev, conf)
1419 def test_dpp_config_no_wi_fi_tech(dev, apdev): argument
1422 run_dpp_config_error(dev, apdev, conf)
1424 def test_dpp_config_unsupported_wi_fi_tech(dev, apdev): argument
1427 run_dpp_config_error(dev, apdev, conf)
1429 def test_dpp_config_no_discovery(dev, apdev): argument
1432 run_dpp_config_error(dev, apdev, conf)
1434 def test_dpp_config_no_discovery_ssid(dev, apdev): argument
1437 run_dpp_config_error(dev, apdev, conf)
1439 def test_dpp_config_too_long_discovery_ssid(dev, apdev): argument
1442 run_dpp_config_error(dev, apdev, conf)
1444 def test_dpp_config_no_cred(dev, apdev): argument
1447 run_dpp_config_error(dev, apdev, conf)
1449 def test_dpp_config_no_cred_akm(dev, apdev): argument
1452 run_dpp_config_error(dev, apdev, conf)
1454 def test_dpp_config_unsupported_cred_akm(dev, apdev): argument
1457 run_dpp_config_error(dev, apdev, conf)
1459 def test_dpp_config_error_legacy_no_pass(dev, apdev): argument
1462 run_dpp_config_error(dev, apdev, conf)
1464 def test_dpp_config_error_legacy_too_short_pass(dev, apdev): argument
1467 run_dpp_config_error(dev, apdev, conf)
1469 def test_dpp_config_error_legacy_too_long_pass(dev, apdev): argument
1472 run_dpp_config_error(dev, apdev, conf)
1474 def test_dpp_config_error_legacy_psk_with_sae(dev, apdev): argument
1477 run_dpp_config_error(dev, apdev, conf)
1479 def test_dpp_config_error_legacy_no_pass_for_sae(dev, apdev): argument
1482 run_dpp_config_error(dev, apdev, conf)
1484 def test_dpp_config_error_legacy_invalid_psk(dev, apdev): argument
1487 run_dpp_config_error(dev, apdev, conf)
1489 def test_dpp_config_error_legacy_too_short_psk(dev, apdev): argument
1492 run_dpp_config_error(dev, apdev, conf)
1541 def run_dpp_config_connector(dev, apdev, expiry=None, payload=None, argument
1565 run_dpp_config_error(dev, apdev,
1570 def test_dpp_config_connector_error_ext_sign(dev, apdev): argument
1572 run_dpp_config_connector(dev, apdev, conf_failure=False)
1574 def test_dpp_config_connector_error_too_short_timestamp(dev, apdev): argument
1576 run_dpp_config_connector(dev, apdev, expiry="1")
1578 def test_dpp_config_connector_error_invalid_timestamp(dev, apdev): argument
1580 run_dpp_config_connector(dev, apdev, expiry=19*"1")
1582 def test_dpp_config_connector_error_invalid_timestamp_date(dev, apdev): argument
1584 run_dpp_config_connector(dev, apdev, expiry="9999-99-99T99:99:99Z")
1586 def test_dpp_config_connector_error_invalid_time_zone(dev, apdev): argument
1588 run_dpp_config_connector(dev, apdev, expiry="2018-01-01T00:00:00*")
1590 def test_dpp_config_connector_error_invalid_time_zone_2(dev, apdev): argument
1592 run_dpp_config_connector(dev, apdev, expiry="2018-01-01T00:00:00+")
1594 def test_dpp_config_connector_error_expired_1(dev, apdev): argument
1596 run_dpp_config_connector(dev, apdev, expiry="2018-01-01T00:00:00")
1598 def test_dpp_config_connector_error_expired_2(dev, apdev): argument
1600 run_dpp_config_connector(dev, apdev, expiry="2018-01-01T00:00:00Z")
1602 def test_dpp_config_connector_error_expired_3(dev, apdev): argument
1604 run_dpp_config_connector(dev, apdev, expiry="2018-01-01T00:00:00+01")
1606 def test_dpp_config_connector_error_expired_4(dev, apdev): argument
1608 run_dpp_config_connector(dev, apdev, expiry="2018-01-01T00:00:00+01:02")
1610 def test_dpp_config_connector_error_expired_5(dev, apdev): argument
1612 run_dpp_config_connector(dev, apdev, expiry="2018-01-01T00:00:00-01")
1614 def test_dpp_config_connector_error_expired_6(dev, apdev): argument
1616 run_dpp_config_connector(dev, apdev, expiry="2018-01-01T00:00:00-01:02")
1618 def test_dpp_config_connector_error_no_groups(dev, apdev): argument
1621 run_dpp_config_connector(dev, apdev, payload=payload)
1623 def test_dpp_config_connector_error_empty_groups(dev, apdev): argument
1626 run_dpp_config_connector(dev, apdev, payload=payload)
1628 def test_dpp_config_connector_error_missing_group_id(dev, apdev): argument
1631 run_dpp_config_connector(dev, apdev, payload=payload)
1633 def test_dpp_config_connector_error_missing_net_role(dev, apdev): argument
1636 run_dpp_config_connector(dev, apdev, payload=payload)
1638 def test_dpp_config_connector_error_missing_net_access_key(dev, apdev): argument
1641 run_dpp_config_connector(dev, apdev, payload=payload)
1643 def test_dpp_config_connector_error_net_access_key_mismatch(dev, apdev): argument
1646 run_dpp_config_connector(dev, apdev, payload=payload,
1649 def test_dpp_gas_timeout(dev, apdev): argument
1706 def test_dpp_akm_sha256(dev, apdev): argument
1708 run_dpp_akm(dev, apdev, 32)
1710 def test_dpp_akm_sha384(dev, apdev): argument
1712 run_dpp_akm(dev, apdev, 48)
1714 def test_dpp_akm_sha512(dev, apdev): argument
1716 run_dpp_akm(dev, apdev, 64)
1718 def run_dpp_akm(dev, apdev, pmk_len): argument
1727 hapd = hostapd.add_ap(apdev[0], params)
1781 def test_dpp_network_introduction(dev, apdev): argument
1795 hapd = hostapd.add_ap(apdev[0], params)
1818 def test_dpp_network_introduction_expired(dev, apdev): argument
1833 hapd = hostapd.add_ap(apdev[0], params)
1859 def test_dpp_network_introduction_clear_ap(dev, apdev): argument
1873 hapd = hostapd.add_ap(apdev[0], params)
1901 def test_dpp_and_sae_akm(dev, apdev): argument
1917 hapd = hostapd.add_ap(apdev[0], params)
1937 def test_dpp_ap_config(dev, apdev): argument
1939 run_dpp_ap_config(dev, apdev)
1941 def test_dpp_ap_config_p256_p256(dev, apdev): argument
1943 run_dpp_ap_config(dev, apdev, curve="P-256", conf_curve="P-256")
1945 def test_dpp_ap_config_p256_p384(dev, apdev): argument
1947 run_dpp_ap_config(dev, apdev, curve="P-256", conf_curve="P-384")
1949 def test_dpp_ap_config_p256_p521(dev, apdev): argument
1951 run_dpp_ap_config(dev, apdev, curve="P-256", conf_curve="P-521")
1953 def test_dpp_ap_config_p384_p256(dev, apdev): argument
1955 run_dpp_ap_config(dev, apdev, curve="P-384", conf_curve="P-256")
1957 def test_dpp_ap_config_p384_p384(dev, apdev): argument
1959 run_dpp_ap_config(dev, apdev, curve="P-384", conf_curve="P-384")
1961 def test_dpp_ap_config_p384_p521(dev, apdev): argument
1963 run_dpp_ap_config(dev, apdev, curve="P-384", conf_curve="P-521")
1965 def test_dpp_ap_config_p521_p256(dev, apdev): argument
1967 run_dpp_ap_config(dev, apdev, curve="P-521", conf_curve="P-256")
1969 def test_dpp_ap_config_p521_p384(dev, apdev): argument
1971 run_dpp_ap_config(dev, apdev, curve="P-521", conf_curve="P-384")
1973 def test_dpp_ap_config_p521_p521(dev, apdev): argument
1975 run_dpp_ap_config(dev, apdev, curve="P-521", conf_curve="P-521")
1977 def test_dpp_ap_config_bp256_bp256(dev, apdev): argument
1979 run_dpp_ap_config(dev, apdev, curve="BP-256", conf_curve="BP-256")
1981 def test_dpp_ap_config_bp384_bp384(dev, apdev): argument
1983 run_dpp_ap_config(dev, apdev, curve="BP-384", conf_curve="BP-384")
1985 def test_dpp_ap_config_bp512_bp512(dev, apdev): argument
1987 run_dpp_ap_config(dev, apdev, curve="BP-512", conf_curve="BP-512")
1989 def test_dpp_ap_config_p256_bp256(dev, apdev): argument
1991 run_dpp_ap_config(dev, apdev, curve="P-256", conf_curve="BP-256")
1993 def test_dpp_ap_config_bp256_p256(dev, apdev): argument
1995 run_dpp_ap_config(dev, apdev, curve="BP-256", conf_curve="P-256")
1997 def test_dpp_ap_config_p521_bp512(dev, apdev): argument
1999 run_dpp_ap_config(dev, apdev, curve="P-521", conf_curve="BP-512")
2001 def test_dpp_ap_config_bp512_p521(dev, apdev): argument
2003 run_dpp_ap_config(dev, apdev, curve="BP-512", conf_curve="P-521")
2005 def test_dpp_ap_config_reconfig_configurator(dev, apdev): argument
2007 run_dpp_ap_config(dev, apdev, reconf_configurator=True)
2009 def test_dpp_ap_config_sae(dev, apdev): argument
2011 run_dpp_ap_config(dev, apdev, sae=True)
2067 def run_dpp_ap_config(dev, apdev, curve=None, conf_curve=None, argument
2079 hapd = hostapd.add_ap(apdev[0], {"ssid": "unconfigured"})
2188 def test_dpp_auto_connect_1(dev, apdev): argument
2191 run_dpp_auto_connect(dev, apdev, 1)
2195 def test_dpp_auto_connect_2(dev, apdev): argument
2198 run_dpp_auto_connect(dev, apdev, 2)
2202 def test_dpp_auto_connect_2_connect_cmd(dev, apdev): argument
2208 run_dpp_auto_connect(dev_new, apdev, 2)
2212 def test_dpp_auto_connect_2_sta_ver1(dev, apdev): argument
2215 run_dpp_auto_connect(dev, apdev, 2, sta_version=1)
2219 def test_dpp_auto_connect_2_ap_ver1(dev, apdev): argument
2222 run_dpp_auto_connect(dev, apdev, 2, ap_version=1)
2226 def test_dpp_auto_connect_2_ver1(dev, apdev): argument
2229 run_dpp_auto_connect(dev, apdev, 2, ap_version=1, sta_version=1)
2233 def test_dpp_auto_connect_2_conf_ver1(dev, apdev): argument
2236 run_dpp_auto_connect(dev, apdev, 2, sta1_version=1)
2240 def run_dpp_auto_connect(dev, apdev, processing, ap_version=0, sta_version=0, argument
2259 hapd = hostapd.add_ap(apdev[0], params)
2289 def test_dpp_auto_connect_legacy(dev, apdev): argument
2292 run_dpp_auto_connect_legacy(dev, apdev)
2296 def test_dpp_auto_connect_legacy_ssid_charset(dev, apdev): argument
2299 run_dpp_auto_connect_legacy(dev, apdev, ssid_charset=12345)
2303 def test_dpp_auto_connect_legacy_sae_1(dev, apdev): argument
2306 run_dpp_auto_connect_legacy(dev, apdev, conf='sta-sae', psk_sae=True)
2310 def test_dpp_auto_connect_legacy_sae_2(dev, apdev): argument
2313 run_dpp_auto_connect_legacy(dev, apdev, conf='sta-sae', sae_only=True)
2317 def test_dpp_auto_connect_legacy_psk_sae_1(dev, apdev): argument
2320 run_dpp_auto_connect_legacy(dev, apdev, conf='sta-psk-sae',
2325 def test_dpp_auto_connect_legacy_psk_sae_2(dev, apdev): argument
2328 run_dpp_auto_connect_legacy(dev, apdev, conf='sta-psk-sae',
2333 def test_dpp_auto_connect_legacy_psk_sae_3(dev, apdev): argument
2336 run_dpp_auto_connect_legacy(dev, apdev, conf='sta-psk-sae')
2340 def run_dpp_auto_connect_legacy(dev, apdev, conf='sta-psk', argument
2356 hapd = hostapd.add_ap(apdev[0], params)
2382 def test_dpp_auto_connect_legacy_pmf_required(dev, apdev): argument
2385 run_dpp_auto_connect_legacy_pmf_required(dev, apdev)
2389 def run_dpp_auto_connect_legacy_pmf_required(dev, apdev): argument
2397 hapd = hostapd.add_ap(apdev[0], params)
2411 def test_dpp_qr_code_auth_responder_configurator(dev, apdev): argument
2413 run_dpp_qr_code_auth_responder_configurator(dev, apdev, "")
2415 def test_dpp_qr_code_auth_responder_configurator_group_id(dev, apdev): argument
2417 run_dpp_qr_code_auth_responder_configurator(dev, apdev,
2420 def run_dpp_qr_code_auth_responder_configurator(dev, apdev, extra): argument
2433 def test_dpp_qr_code_auth_enrollee_init_netrole(dev, apdev): argument
2457 def test_dpp_qr_code_hostapd_init(dev, apdev): argument
2460 hapd = hostapd.add_ap(apdev[0], {"ssid": "unconfigured",
2473 def test_dpp_qr_code_hostapd_init_offchannel(dev, apdev): argument
2475 run_dpp_qr_code_hostapd_init_offchannel(dev, apdev, None)
2477 def test_dpp_qr_code_hostapd_init_offchannel_neg_freq(dev, apdev): argument
2479 run_dpp_qr_code_hostapd_init_offchannel(dev, apdev, "neg_freq=2437")
2481 def run_dpp_qr_code_hostapd_init_offchannel(dev, apdev, extra): argument
2483 hapd = hostapd.add_ap(apdev[0], {"ssid": "unconfigured",
2496 def test_dpp_qr_code_hostapd_init_offchannel_configurator(dev, apdev): argument
2499 hapd = hostapd.add_ap(apdev[0], {"ssid": "unconfigured",
2509 def test_dpp_qr_code_hostapd_ignore_mismatch(dev, apdev): argument
2512 hapd = hostapd.add_ap(apdev[0], {"ssid": "unconfigured",
2528 def test_dpp_test_vector_p_256(dev, apdev): argument
2562 def test_dpp_test_vector_p_256_b(dev, apdev): argument
2602 def test_dpp_test_vector_p_521(dev, apdev): argument
2637 def test_dpp_pkex(dev, apdev): argument
2639 run_dpp_pkex(dev, apdev)
2641 def test_dpp_pkex_v2(dev, apdev): argument
2643 run_dpp_pkex(dev, apdev, ver=2)
2645 def test_dpp_pkex_p256(dev, apdev): argument
2647 run_dpp_pkex(dev, apdev, "P-256")
2649 def test_dpp_pkex_p384(dev, apdev): argument
2651 run_dpp_pkex(dev, apdev, "P-384")
2653 def test_dpp_pkex_p521(dev, apdev): argument
2655 run_dpp_pkex(dev, apdev, "P-521")
2657 def test_dpp_pkex_bp256(dev, apdev): argument
2659 run_dpp_pkex(dev, apdev, "brainpoolP256r1")
2661 def test_dpp_pkex_bp384(dev, apdev): argument
2663 run_dpp_pkex(dev, apdev, "brainpoolP384r1")
2665 def test_dpp_pkex_bp512(dev, apdev): argument
2667 run_dpp_pkex(dev, apdev, "brainpoolP512r1")
2669 def test_dpp_pkex_config(dev, apdev): argument
2673 run_dpp_pkex(dev, apdev,
2677 def test_dpp_pkex_no_identifier(dev, apdev): argument
2679 run_dpp_pkex(dev, apdev, identifier_i=None, identifier_r=None)
2681 def test_dpp_pkex_identifier_mismatch(dev, apdev): argument
2683 run_dpp_pkex(dev, apdev, identifier_i="foo", identifier_r="bar",
2686 def test_dpp_pkex_identifier_mismatch2(dev, apdev): argument
2688 run_dpp_pkex(dev, apdev, identifier_i="foo", identifier_r=None,
2691 def test_dpp_pkex_identifier_mismatch3(dev, apdev): argument
2693 run_dpp_pkex(dev, apdev, identifier_i=None, identifier_r="bar",
2696 def run_dpp_pkex(dev, apdev, curve=None, init_extra=None, check_config=False, argument
2723 def test_dpp_pkex_5ghz(dev, apdev): argument
2732 run_dpp_pkex_5ghz(dev, apdev)
2739 def run_dpp_pkex_5ghz(dev, apdev): argument
2746 def test_dpp_pkex_test_vector(dev, apdev): argument
2791 def test_dpp_pkex_code_mismatch(dev, apdev): argument
2803 def test_dpp_pkex_code_mismatch_limit(dev, apdev): argument
2821 def test_dpp_pkex_curve_mismatch(dev, apdev): argument
2830 def test_dpp_pkex_curve_mismatch_failure(dev, apdev): argument
2832 run_dpp_pkex_curve_mismatch_failure(dev, apdev, "=dpp_pkex_rx_exchange_req")
2834 def test_dpp_pkex_curve_mismatch_failure2(dev, apdev): argument
2836 run_dpp_pkex_curve_mismatch_failure(dev, apdev,
2839 def run_dpp_pkex_curve_mismatch_failure(dev, apdev, func): argument
2854 def test_dpp_pkex_exchange_resp_processing_failure(dev, apdev): argument
2864 def test_dpp_pkex_commit_reveal_req_processing_failure(dev, apdev): argument
2875 def test_dpp_pkex_config2(dev, apdev): argument
2881 run_dpp_pkex2(dev, apdev)
2883 def run_dpp_pkex2(dev, apdev, curve=None, init_extra=""): argument
2892 def test_dpp_pkex_no_responder(dev, apdev): argument
2907 def test_dpp_pkex_after_retry(dev, apdev): argument
2916 def test_dpp_pkex_hostapd_responder(dev, apdev): argument
2919 hapd = hostapd.add_ap(apdev[0], {"ssid": "unconfigured",
2929 def test_dpp_pkex_v2_hostapd_responder(dev, apdev): argument
2932 hapd = hostapd.add_ap(apdev[0], {"ssid": "unconfigured",
2942 def test_dpp_pkex_hostapd_initiator(dev, apdev): argument
2945 hapd = hostapd.add_ap(apdev[0], {"ssid": "unconfigured",
2957 def test_dpp_pkex_v2_hostapd_initiator(dev, apdev): argument
2960 hapd = hostapd.add_ap(apdev[0], {"ssid": "unconfigured",
2973 def test_dpp_pkex_hostapd_initiator_fallback(dev, apdev): argument
2976 hapd = hostapd.add_ap(apdev[0], {"ssid": "unconfigured",
2999 def test_dpp_pkex_hostapd_initiator_no_response(dev, apdev): argument
3002 hapd = hostapd.add_ap(apdev[0], {"ssid": "unconfigured",
3013 def test_dpp_pkex_hostapd_errors(dev, apdev): argument
3015 hapd = hostapd.add_ap(apdev[0], {"ssid": "unconfigured",
3040 def test_dpp_pkex_nak_curve_change(dev, apdev): argument
3043 run_dpp_pkex_nak_curve_change(dev, apdev)
3047 def test_dpp_pkex_nak_curve_change2(dev, apdev): argument
3050 run_dpp_pkex_nak_curve_change(dev, apdev, failure=True)
3054 def run_dpp_pkex_nak_curve_change(dev, apdev, failure=False): argument
3057 hapd = hostapd.add_ap(apdev[0], {"ssid": "unconfigured",
3092 def test_dpp_hostapd_configurator(dev, apdev): argument
3094 run_dpp_hostapd_configurator(dev, apdev)
3096 def test_dpp_hostapd_configurator_enrollee_v1(dev, apdev): argument
3100 run_dpp_hostapd_configurator(dev, apdev)
3102 def run_dpp_hostapd_configurator(dev, apdev): argument
3104 hapd = hostapd.add_ap(apdev[0], {"ssid": "unconfigured",
3123 def test_dpp_hostapd_configurator_responder(dev, apdev): argument
3126 hapd = hostapd.add_ap(apdev[0], {"ssid": "unconfigured",
3138 def test_dpp_hostapd_configurator_fragmentation(dev, apdev): argument
3141 hapd = hostapd.add_ap(apdev[0], {"ssid": "unconfigured",
3162 def test_dpp_hostapd_enrollee_fragmentation(dev, apdev): argument
3165 hapd = hostapd.add_ap(apdev[0], {"ssid": "unconfigured",
3180 def test_dpp_hostapd_enrollee_gas_timeout(dev, apdev): argument
3183 hapd = hostapd.add_ap(apdev[0], {"ssid": "unconfigured",
3201 def test_dpp_hostapd_enrollee_gas_timeout_comeback(dev, apdev): argument
3204 hapd = hostapd.add_ap(apdev[0], {"ssid": "unconfigured",
3229 def test_dpp_hostapd_enrollee_gas_errors(dev, apdev): argument
3232 hapd = hostapd.add_ap(apdev[0], {"ssid": "unconfigured",
3279 def test_dpp_hostapd_enrollee_gas_proto(dev, apdev): argument
3282 hapd = hostapd.add_ap(apdev[0], {"ssid": "unconfigured",
3457 def test_dpp_hostapd_enrollee_gas_tx_status_errors(dev, apdev): argument
3460 hapd = hostapd.add_ap(apdev[0], {"ssid": "unconfigured",
3496 def test_dpp_hostapd_configurator_override_objects(dev, apdev): argument
3499 hapd = hostapd.add_ap(apdev[0], {"ssid": "unconfigured",
3518 def test_dpp_own_config(dev, apdev): argument
3521 run_dpp_own_config(dev, apdev)
3525 def test_dpp_own_config_group_id(dev, apdev): argument
3528 run_dpp_own_config(dev, apdev, extra=" group_id=test-group")
3532 def test_dpp_own_config_curve_mismatch(dev, apdev): argument
3535 run_dpp_own_config(dev, apdev, own_curve="BP-384", expect_failure=True)
3539 def run_dpp_own_config(dev, apdev, own_curve=None, expect_failure=False, argument
3542 hapd = hostapd.add_ap(apdev[0], {"ssid": "unconfigured"})
3574 def test_dpp_own_config_ap(dev, apdev): argument
3577 run_dpp_own_config_ap(dev, apdev)
3581 def test_dpp_own_config_ap_group_id(dev, apdev): argument
3584 run_dpp_own_config_ap(dev, apdev, extra=" group_id=test-group")
3588 def test_dpp_own_config_ap_reconf(dev, apdev): argument
3591 run_dpp_own_config_ap(dev, apdev)
3595 def run_dpp_own_config_ap(dev, apdev, reconf_configurator=False, extra=None): argument
3597 hapd = hostapd.add_ap(apdev[0], {"ssid": "unconfigured"})
3624 def test_dpp_intro_mismatch(dev, apdev): argument
3631 run_dpp_intro_mismatch(dev, apdev, wpas)
3638 def run_dpp_intro_mismatch(dev, apdev, wpas): argument
3643 hapd = hostapd.add_ap(apdev[0], {"ssid": "unconfigured"})
3756 def test_dpp_proto_after_wrapped_data_auth_req(dev, apdev): argument
3768 def test_dpp_auth_req_stop_after_ack(dev, apdev): argument
3775 def test_dpp_auth_req_retries(dev, apdev): argument
3792 def test_dpp_auth_req_retries_multi_chan(dev, apdev): argument
3810 def test_dpp_proto_after_wrapped_data_auth_resp(dev, apdev): argument
3825 def test_dpp_proto_after_wrapped_data_auth_conf(dev, apdev): argument
3837 def test_dpp_proto_after_wrapped_data_conf_req(dev, apdev): argument
3844 def test_dpp_proto_after_wrapped_data_conf_resp(dev, apdev): argument
3851 def test_dpp_proto_zero_i_capab(dev, apdev): argument
3859 def test_dpp_proto_zero_r_capab(dev, apdev): argument
3877 def test_dpp_proto_auth_req_no_r_bootstrap_key(dev, apdev): argument
3881 def test_dpp_proto_auth_req_invalid_r_bootstrap_key(dev, apdev): argument
3885 def test_dpp_proto_auth_req_no_i_bootstrap_key(dev, apdev): argument
3889 def test_dpp_proto_auth_req_invalid_i_bootstrap_key(dev, apdev): argument
3899 def test_dpp_proto_auth_req_no_i_proto_key(dev, apdev): argument
3903 def test_dpp_proto_auth_req_invalid_i_proto_key(dev, apdev): argument
3907 def test_dpp_proto_auth_req_no_i_nonce(dev, apdev): argument
3911 def test_dpp_proto_auth_req_invalid_i_nonce(dev, apdev): argument
3915 def test_dpp_proto_auth_req_no_i_capab(dev, apdev): argument
3919 def test_dpp_proto_auth_req_no_wrapped_data(dev, apdev): argument
3942 def test_dpp_proto_auth_resp_no_status(dev, apdev): argument
3946 def test_dpp_proto_auth_resp_status_no_status(dev, apdev): argument
3952 def test_dpp_proto_auth_resp_invalid_status(dev, apdev): argument
3956 def test_dpp_proto_auth_resp_no_r_bootstrap_key(dev, apdev): argument
3960 def test_dpp_proto_auth_resp_status_no_r_bootstrap_key(dev, apdev): argument
3966 def test_dpp_proto_auth_resp_invalid_r_bootstrap_key(dev, apdev): argument
3970 def test_dpp_proto_auth_resp_status_invalid_r_bootstrap_key(dev, apdev): argument
3976 def test_dpp_proto_auth_resp_no_i_bootstrap_key(dev, apdev): argument
3980 def test_dpp_proto_auth_resp_status_no_i_bootstrap_key(dev, apdev): argument
3984 def test_dpp_proto_auth_resp_invalid_i_bootstrap_key(dev, apdev): argument
3988 def test_dpp_proto_auth_resp_status_invalid_i_bootstrap_key(dev, apdev): argument
3994 def test_dpp_proto_auth_resp_no_r_proto_key(dev, apdev): argument
3998 def test_dpp_proto_auth_resp_invalid_r_proto_key(dev, apdev): argument
4002 def test_dpp_proto_auth_resp_no_r_nonce(dev, apdev): argument
4006 def test_dpp_proto_auth_resp_no_i_nonce(dev, apdev): argument
4010 def test_dpp_proto_auth_resp_status_no_i_nonce(dev, apdev): argument
4015 def test_dpp_proto_auth_resp_no_r_capab(dev, apdev): argument
4019 def test_dpp_proto_auth_resp_no_r_auth(dev, apdev): argument
4023 def test_dpp_proto_auth_resp_no_wrapped_data(dev, apdev): argument
4027 def test_dpp_proto_auth_resp_i_nonce_mismatch(dev, apdev): argument
4038 def test_dpp_proto_auth_resp_incompatible_r_capab(dev, apdev): argument
4044 def test_dpp_proto_auth_resp_r_auth_mismatch(dev, apdev): argument
4050 def test_dpp_proto_auth_resp_r_auth_mismatch_failure(dev, apdev): argument
4056 def test_dpp_proto_auth_resp_r_auth_mismatch_failure2(dev, apdev): argument
4069 def test_dpp_proto_auth_conf_no_status(dev, apdev): argument
4073 def test_dpp_proto_auth_conf_invalid_status(dev, apdev): argument
4077 def test_dpp_proto_auth_conf_no_r_bootstrap_key(dev, apdev): argument
4081 def test_dpp_proto_auth_conf_invalid_r_bootstrap_key(dev, apdev): argument
4085 def test_dpp_proto_auth_conf_no_i_bootstrap_key(dev, apdev): argument
4089 def test_dpp_proto_auth_conf_invalid_i_bootstrap_key(dev, apdev): argument
4093 def test_dpp_proto_auth_conf_no_i_auth(dev, apdev): argument
4097 def test_dpp_proto_auth_conf_no_wrapped_data(dev, apdev): argument
4101 def test_dpp_proto_auth_conf_i_auth_mismatch(dev, apdev): argument
4106 def test_dpp_proto_auth_conf_replaced_by_resp(dev, apdev): argument
4116 def test_dpp_proto_conf_req_no_e_nonce(dev, apdev): argument
4129 def test_dpp_proto_conf_req_invalid_e_nonce(dev, apdev): argument
4134 def test_dpp_proto_conf_req_no_config_attr_obj(dev, apdev): argument
4139 def test_dpp_proto_conf_req_invalid_config_attr_obj(dev, apdev): argument
4144 def test_dpp_proto_conf_req_no_wrapped_data(dev, apdev): argument
4153 def test_dpp_proto_conf_resp_no_e_nonce(dev, apdev): argument
4158 def test_dpp_proto_conf_resp_no_config_obj(dev, apdev): argument
4163 def test_dpp_proto_conf_resp_no_status(dev, apdev): argument
4168 def test_dpp_proto_conf_resp_no_wrapped_data(dev, apdev): argument
4173 def test_dpp_proto_conf_resp_invalid_status(dev, apdev): argument
4178 def test_dpp_proto_conf_resp_e_nonce_mismatch(dev, apdev): argument
4183 def test_dpp_proto_stop_at_auth_req(dev, apdev): argument
4190 def test_dpp_proto_stop_at_auth_resp(dev, apdev): argument
4218 def test_dpp_proto_stop_at_auth_conf(dev, apdev): argument
4230 def test_dpp_proto_stop_at_auth_conf_tx(dev, apdev): argument
4241 def test_dpp_proto_stop_at_auth_conf_tx2(dev, apdev): argument
4250 def test_dpp_proto_stop_at_conf_req(dev, apdev): argument
4269 def test_dpp_proto_after_wrapped_data_pkex_cr_req(dev, apdev): argument
4281 def test_dpp_proto_after_wrapped_data_pkex_cr_resp(dev, apdev): argument
4301 def test_dpp_proto_pkex_exchange_req_no_finite_cyclic_group(dev, apdev): argument
4306 def test_dpp_proto_pkex_exchange_req_no_encrypted_key(dev, apdev): argument
4311 def test_dpp_proto_pkex_exchange_resp_no_status(dev, apdev): argument
4315 def test_dpp_proto_pkex_exchange_resp_no_encrypted_key(dev, apdev): argument
4319 def test_dpp_proto_pkex_cr_req_no_bootstrap_key(dev, apdev): argument
4324 def test_dpp_proto_pkex_cr_req_no_i_auth_tag(dev, apdev): argument
4328 def test_dpp_proto_pkex_cr_req_no_wrapped_data(dev, apdev): argument
4332 def test_dpp_proto_pkex_cr_resp_no_bootstrap_key(dev, apdev): argument
4337 def test_dpp_proto_pkex_cr_resp_no_r_auth_tag(dev, apdev): argument
4341 def test_dpp_proto_pkex_cr_resp_no_wrapped_data(dev, apdev): argument
4345 def test_dpp_proto_pkex_exchange_req_invalid_encrypted_key(dev, apdev): argument
4350 def test_dpp_proto_pkex_exchange_resp_invalid_encrypted_key(dev, apdev): argument
4355 def test_dpp_proto_pkex_exchange_resp_invalid_status(dev, apdev): argument
4360 def test_dpp_proto_pkex_cr_req_invalid_bootstrap_key(dev, apdev): argument
4365 def test_dpp_proto_pkex_cr_resp_invalid_bootstrap_key(dev, apdev): argument
4370 def test_dpp_proto_pkex_cr_req_i_auth_tag_mismatch(dev, apdev): argument
4374 def test_dpp_proto_pkex_cr_resp_r_auth_tag_mismatch(dev, apdev): argument
4378 def test_dpp_proto_stop_at_pkex_exchange_resp(dev, apdev): argument
4394 def test_dpp_proto_stop_at_pkex_cr_req(dev, apdev): argument
4414 def test_dpp_proto_stop_at_pkex_cr_resp(dev, apdev): argument
4438 def test_dpp_proto_network_introduction(dev, apdev): argument
4452 hapd = hostapd.add_ap(apdev[0], params)
4519 def test_dpp_hostapd_auth_conf_timeout(dev, apdev): argument
4522 hapd = hostapd.add_ap(apdev[0], {"ssid": "unconfigured"})
4535 def test_dpp_hostapd_auth_resp_retries(dev, apdev): argument
4538 hapd = hostapd.add_ap(apdev[0], {"ssid": "unconfigured"})
4585 def test_dpp_qr_code_no_chan_list_unicast(dev, apdev): argument
4587 run_dpp_qr_code_chan_list(dev, apdev, True, 2417, None)
4589 def test_dpp_qr_code_chan_list_unicast(dev, apdev): argument
4591 run_dpp_qr_code_chan_list(dev, apdev, True, 2417,
4594 def test_dpp_qr_code_chan_list_unicast2(dev, apdev): argument
4596 run_dpp_qr_code_chan_list(dev, apdev, True, 2417,
4599 def test_dpp_qr_code_chan_list_no_peer_unicast(dev, apdev): argument
4601 run_dpp_qr_code_chan_list(dev, apdev, True, 2417, "81/1,81/6,81/11",
4607 def test_dpp_qr_code_no_chan_list_broadcast(dev, apdev): argument
4609 run_dpp_qr_code_chan_list(dev, apdev, False, 2412, None, timeout=20)
4611 def test_dpp_qr_code_chan_list_broadcast(dev, apdev): argument
4613 run_dpp_qr_code_chan_list(dev, apdev, False, 2412, "81/1,81/6,81/11",
4616 def run_dpp_qr_code_chan_list(dev, apdev, unicast, listen_freq, chanlist, argument
4636 def test_dpp_qr_code_chan_list_no_match(dev, apdev): argument
4644 def test_dpp_pkex_alloc_fail(dev, apdev): argument
4765 def test_dpp_pkex_test_fail(dev, apdev): argument
4870 def test_dpp_keygen_configurator_error(dev, apdev): argument
4957 def test_dpp_gas_timeout_handling(dev, apdev): argument
4986 def test_dpp_gas_comeback_after_failure(dev, apdev): argument
5022 def test_dpp_gas(dev, apdev): argument
5084 def test_dpp_truncated_attr(dev, apdev): argument
5110 def test_dpp_bootstrap_key_autogen_issues(dev, apdev): argument
5132 def test_dpp_auth_resp_status_failure(dev, apdev): argument
5138 def test_dpp_auth_resp_aes_siv_issue(dev, apdev): argument
5152 def test_dpp_invalid_legacy_params(dev, apdev): argument
5162 def test_dpp_invalid_legacy_params2(dev, apdev): argument
5178 def test_dpp_legacy_params_failure(dev, apdev): argument
5192 def test_dpp_invalid_configurator_key(dev, apdev): argument
5216 def test_dpp_own_config_sign_fail(dev, apdev): argument
5229 def test_dpp_peer_intro_failures(dev, apdev): argument
5232 run_dpp_peer_intro_failures(dev, apdev)
5236 def run_dpp_peer_intro_failures(dev, apdev): argument
5238 hapd = hostapd.add_ap(apdev[0], {"ssid": "unconfigured"})
5285 def test_dpp_peer_intro_local_failures(dev, apdev): argument
5299 hapd = hostapd.add_ap(apdev[0], params)
5389 def test_dpp_configurator_id_unknown(dev, apdev): argument
5392 hapd = hostapd.add_ap(apdev[0], {"ssid": "unconfigured"})
5438 def test_dpp_bootstrap_gen_failures(dev, apdev): argument
5441 hapd = hostapd.add_ap(apdev[0], {"ssid": "unconfigured"})
5444 def test_dpp_listen_continue(dev, apdev): argument
5457 def test_dpp_network_addition_failure(dev, apdev): argument
5460 run_dpp_network_addition_failure(dev, apdev)
5464 def run_dpp_network_addition_failure(dev, apdev): argument
5496 def test_dpp_two_initiators(dev, apdev): argument
5534 def test_dpp_conf_file_update(dev, apdev, params): argument
5543 run_dpp_qr_code_auth_unicast([wpas, dev[1]], apdev, None,
5560 def test_dpp_duplicated_auth_resp(dev, apdev): argument
5603 def test_dpp_duplicated_auth_conf(dev, apdev): argument
5636 def test_dpp_enrollee_reject_config(dev, apdev): argument
5650 def test_dpp_enrollee_ap_reject_config(dev, apdev): argument
5654 hapd = hostapd.add_ap(apdev[0], {"ssid": "unconfigured"})
5665 def test_dpp_legacy_and_dpp_akm(dev, apdev): argument
5668 run_dpp_legacy_and_dpp_akm(dev, apdev)
5672 def run_dpp_legacy_and_dpp_akm(dev, apdev): argument
5694 hapd = hostapd.add_ap(apdev[0], params)
5734 hapd2 = hostapd.add_ap(apdev[1], params)
5745 def test_dpp_controller_relay(dev, apdev, params): argument
5748 run_dpp_controller_relay(dev, apdev, params)
5753 def test_dpp_controller_relay_chirp(dev, apdev, params): argument
5756 run_dpp_controller_relay(dev, apdev, params, chirp=True)
5761 def test_dpp_controller_relay_chirp_duplicate(dev, apdev, params): argument
5764 run_dpp_controller_relay(dev, apdev, params, chirp=True,
5770 def test_dpp_controller_relay_discover(dev, apdev, params): argument
5773 run_dpp_controller_relay(dev, apdev, params, chirp=True, discover=True)
5778 def run_dpp_controller_relay(dev, apdev, params, chirp=False, discover=False, argument
5785 run_dpp_controller_relay2(dev, apdev, params, chirp, discover,
5788 def run_dpp_controller_relay2(dev, apdev, params, chirp=False, discover=False, argument
5818 relay = hostapd.add_ap(apdev[1], params)
5899 def test_dpp_controller_init_through_relay(dev, apdev, params): argument
5902 run_dpp_controller_init_through_relay(dev, apdev, params)
5907 def test_dpp_controller_init_through_relay_dynamic(dev, apdev, params): argument
5910 run_dpp_controller_init_through_relay(dev, apdev, params, dynamic=True)
5915 def test_dpp_controller_init_through_relay_add(dev, apdev, params): argument
5918 run_dpp_controller_init_through_relay(dev, apdev, params, add=True)
5923 def run_dpp_controller_init_through_relay(dev, apdev, params, dynamic=False, argument
5930 run_dpp_controller_init_through_relay2(dev, apdev, params, dynamic,
5933 def run_dpp_controller_init_through_relay2(dev, apdev, params, dynamic=False, argument
5960 relay = hostapd.add_ap(apdev[0], params)
6022 def test_dpp_relay_incomplete_connections(dev, apdev): argument
6042 hapd = hostapd.add_ap(apdev[0], params)
6067 def test_dpp_tcp(dev, apdev, params): argument
6076 def test_dpp_tcp_port(dev, apdev, params): argument
6085 def test_dpp_tcp_mutual(dev, apdev, params): argument
6093 def test_dpp_tcp_mutual_hostapd_conf(dev, apdev, params): argument
6096 hapd = hostapd.add_ap(apdev[0], {"ssid": "unconfigured"})
6161 def test_dpp_tcp_conf_init(dev, apdev, params): argument
6169 def test_dpp_tcp_conf_init_hostapd_enrollee(dev, apdev, params): argument
6172 hapd = hostapd.add_ap(apdev[0], {"ssid": "unconfigured"})
6200 def test_dpp_tcp_controller_management_hostapd(dev, apdev, params): argument
6202 hapd = hostapd.add_ap(apdev[0], {"ssid": "unconfigured"})
6214 def test_dpp_tcp_controller_management_hostapd2(dev, apdev, params): argument
6217 hapd = hostapd.add_ap(apdev[0], {"ssid": "unconfigured"})
6219 hapd2 = hostapd.add_ap(apdev[1], {"ssid": "unconfigured"})
6236 hapd_global = hostapd.HostapdGlobal(apdev)
6237 hapd_global.remove(apdev[0]['ifname'])
6245 def test_dpp_tcp_controller_start_failure(dev, apdev, params): argument
6264 def test_dpp_tcp_init_failure(dev, apdev, params): argument
6280 def test_dpp_controller_rx_failure(dev, apdev, params): argument
6285 run_dpp_controller_rx_failure(dev, apdev)
6289 def run_dpp_controller_rx_failure(dev, apdev): argument
6307 def test_dpp_controller_rx_errors(dev, apdev, params): argument
6312 run_dpp_controller_rx_errors(dev, apdev)
6316 def run_dpp_controller_rx_errors(dev, apdev): argument
6358 def test_dpp_conn_status_success(dev, apdev): argument
6361 run_dpp_conn_status(dev, apdev)
6365 def test_dpp_conn_status_wrong_passphrase(dev, apdev): argument
6368 run_dpp_conn_status(dev, apdev, result=2)
6372 def test_dpp_conn_status_no_ap(dev, apdev): argument
6375 run_dpp_conn_status(dev, apdev, result=10)
6379 def test_dpp_conn_status_connector_mismatch(dev, apdev): argument
6382 run_dpp_conn_status(dev, apdev, result=8)
6386 def test_dpp_conn_status_assoc_reject(dev, apdev): argument
6390 run_dpp_conn_status(dev, apdev, assoc_reject=True)
6394 def run_dpp_conn_status(dev, apdev, result=0, assoc_reject=False): argument
6416 hapd = hostapd.add_ap(apdev[0], params)
6459 def test_dpp_conn_status_success_hostapd_configurator(dev, apdev): argument
6462 run_dpp_conn_status_hostapd_configurator(dev, apdev)
6466 def run_dpp_conn_status_hostapd_configurator(dev, apdev): argument
6468 hapd = hostapd.add_ap(apdev[0], {"ssid": "unconfigured",
6502 def test_dpp_mud_url(dev, apdev): argument
6508 run_dpp_qr_code_auth_unicast(dev, apdev, None)
6513 def test_dpp_mud_url_hostapd(dev, apdev): argument
6520 hapd = hostapd.add_ap(apdev[0], params)
6531 def test_dpp_config_save(dev, apdev, params): argument
6534 run_dpp_config_save(dev, apdev, config, "test", '"test"')
6536 def test_dpp_config_save2(dev, apdev, params): argument
6539 run_dpp_config_save(dev, apdev, config, "\\u0001*", '012a')
6541 def test_dpp_config_save3(dev, apdev, params): argument
6544 …run_dpp_config_save(dev, apdev, config, "\\u0001*\\u00c2\\u00bc\\u00c3\\u009e\\u00c3\\u00bf", '012…
6546 def run_dpp_config_save(dev, apdev, config, conf_ssid, exp_ssid): argument
6557 run_dpp_qr_code_auth_unicast(dpp_dev, apdev, "prime256v1",
6569 def test_dpp_nfc_uri(dev, apdev): argument
6587 def test_dpp_nfc_uri_hostapd(dev, apdev): argument
6591 hapd = hostapd.add_ap(apdev[0], {"ssid": "unconfigured"})
6607 def test_dpp_nfc_uri_hostapd_tag_read(dev, apdev): argument
6611 hapd = hostapd.add_ap(apdev[0], {"ssid": "unconfigured"})
6625 def test_dpp_nfc_negotiated_handover(dev, apdev): argument
6629 def test_dpp_nfc_negotiated_handover_diff_curve(dev, apdev): argument
6634 def test_dpp_nfc_negotiated_handover_hostapd_sel(dev, apdev): argument
6636 hapd = hostapd.add_ap(apdev[0], {"ssid": "unconfigured",
6641 def test_dpp_nfc_negotiated_handover_hostapd_req(dev, apdev): argument
6643 hapd = hostapd.add_ap(apdev[0], {"ssid": "unconfigured",
6688 def test_dpp_nfc_errors_hostapd(dev, apdev): argument
6697 hapd = hostapd.add_ap(apdev[0], {"ssid": "unconfigured",
6722 def test_dpp_with_p2p_device(dev, apdev): argument
6738 def test_dpp_chirp(dev, apdev): argument
6745 hapd = hostapd.add_ap(apdev[0], params)
6787 def test_dpp_chirp_listen(dev, apdev): argument
6805 def test_dpp_chirp_configurator(dev, apdev): argument
6837 def test_dpp_chirp_ap_as_configurator(dev, apdev): argument
6841 hapd = hostapd.add_ap(apdev[0], {"ssid": "unconfigured"})
6857 def test_dpp_chirp_configurator_inits(dev, apdev): argument
6878 def test_dpp_chirp_ap(dev, apdev): argument
6882 hapd = hostapd.add_ap(apdev[0], {"ssid": "unconfigured",
6900 def test_dpp_chirp_ap_5g(dev, apdev): argument
6913 hapd2 = hostapd.add_ap(apdev[1], params)
6921 hapd = hostapd.add_ap(apdev[0], params)
6970 clear_scan_cache(apdev[0])
6972 def test_dpp_chirp_ap_errors(dev, apdev): argument
6974 hapd = hostapd.add_ap(apdev[0], {"ssid": "unconfigured",
6992 def start_dpp_pfs_ap(apdev, pfs, sae=False): argument
7006 hapd = hostapd.add_ap(apdev, params)
7040 def test_dpp_pfs_ap_0(dev, apdev): argument
7043 hapd = start_dpp_pfs_ap(apdev[0], 0)
7048 def test_dpp_pfs_ap_1(dev, apdev): argument
7051 hapd = start_dpp_pfs_ap(apdev[0], 1)
7056 def test_dpp_pfs_ap_2(dev, apdev): argument
7059 hapd = start_dpp_pfs_ap(apdev[0], 2)
7064 def test_dpp_pfs_connect_cmd(dev, apdev): argument
7069 hapd = start_dpp_pfs_ap(apdev[0], 0)
7074 def test_dpp_pfs_connect_cmd_ap_2(dev, apdev): argument
7079 hapd = start_dpp_pfs_ap(apdev[0], 2)
7084 def test_dpp_pfs_connect_cmd_ap_2_sae(dev, apdev): argument
7090 hapd = start_dpp_pfs_ap(apdev[0], 2, sae=True)
7095 def test_dpp_pfs_ap_0_sta_ver1(dev, apdev): argument
7099 hapd = start_dpp_pfs_ap(apdev[0], 0)
7102 def test_dpp_pfs_errors(dev, apdev): argument
7105 hapd = start_dpp_pfs_ap(apdev[0], 1)
7121 def test_dpp_reconfig_connector(dev, apdev): argument
7124 run_dpp_reconfig_connector(dev, apdev)
7128 def test_dpp_reconfig_connector_different_groups(dev, apdev): argument
7131 run_dpp_reconfig_connector(dev, apdev, conf_curve="secp384r1")
7136 def test_dpp_reconfig_retries(dev, apdev): argument
7139 run_dpp_reconfig_connector(dev, apdev, test_retries=True)
7148 def run_dpp_reconfig_connector(dev, apdev, conf_curve=None, argument
7157 hapd = hostapd.add_ap(apdev[0], params)
7300 def test_dpp_reconfig_hostapd_configurator(dev, apdev): argument
7303 run_dpp_reconfig_hostapd_configurator(dev, apdev)
7307 def run_dpp_reconfig_hostapd_configurator(dev, apdev): argument
7310 hapd = hostapd.add_ap(apdev[0], {"ssid": "unconfigured"})
7365 def test_dpp_qr_code_auth_rand_mac_addr(dev, apdev): argument
7373 run_dpp_qr_code_auth_unicast(dev, apdev, None)
7400 def test_dpp_enterprise(dev, apdev, params): argument
7405 run_dpp_enterprise(dev, apdev, params)
7409 def run_dpp_enterprise(dev, apdev, params): argument
7428 hapd = hostapd.add_ap(apdev[0], params)
7523 def test_dpp_enterprise_reject(dev, apdev, params): argument
7557 def test_dpp_enterprise_tcp(dev, apdev, params): argument
7563 run_dpp_enterprise_tcp(dev, apdev, params)
7567 def run_dpp_enterprise_tcp(dev, apdev, params): argument
7574 _run_dpp_enterprise_tcp(dev, apdev, params, wt)
7576 def _run_dpp_enterprise_tcp(dev, apdev, params, wt): argument
7645 def test_dpp_enterprise_tcp2(dev, apdev, params): argument
7651 run_dpp_enterprise_tcp2(dev, apdev, params)
7656 def run_dpp_enterprise_tcp2(dev, apdev, params): argument
7663 _run_dpp_enterprise_tcp2(dev, apdev, params, wt)
7665 def _run_dpp_enterprise_tcp2(dev, apdev, params, wt): argument
7682 def test_dpp_qr_code_config_event_initiator(dev, apdev): argument
7684 run_dpp_qr_code_config_event_initiator(dev, apdev)
7686 def test_dpp_qr_code_config_event_initiator_set_comeback(dev, apdev): argument
7688 run_dpp_qr_code_config_event_initiator(dev, apdev, set_comeback=True)
7690 def test_dpp_qr_code_config_event_initiator_slow(dev, apdev): argument
7692 run_dpp_qr_code_config_event_initiator(dev, apdev, slow=True)
7694 def test_dpp_qr_code_config_event_initiator_failure(dev, apdev): argument
7696 run_dpp_qr_code_config_event_initiator(dev, apdev, failure=True)
7698 def test_dpp_qr_code_config_event_initiator_no_response(dev, apdev): argument
7700 run_dpp_qr_code_config_event_initiator(dev, apdev, failure=True,
7703 def run_dpp_qr_code_config_event_initiator(dev, apdev, set_comeback=False, argument
7751 def test_dpp_qr_code_config_event_initiator_both(dev, apdev): argument
7768 def test_dpp_tcp_qr_code_config_event_initiator(dev, apdev, params): argument
7815 def test_dpp_qr_code_config_event_responder(dev, apdev): argument
7849 def test_dpp_discard_public_action(dev, apdev): argument