diff options
author | Jouni Malinen <jouni@qca.qualcomm.com> | 2017-06-22 12:57:53 (GMT) |
---|---|---|
committer | Jouni Malinen <j@w1.fi> | 2017-06-23 09:46:16 (GMT) |
commit | d976bb8b48270ff861520f2c501d636ffdbf280e (patch) | |
tree | 8043f9c59d1b166351a64f8c424d4e6ebb76ed2c /tests | |
parent | 35f064212cdf35671aa87b26f829a984440a4798 (diff) | |
download | hostap-d976bb8b48270ff861520f2c501d636ffdbf280e.zip hostap-d976bb8b48270ff861520f2c501d636ffdbf280e.tar.gz hostap-d976bb8b48270ff861520f2c501d636ffdbf280e.tar.bz2 |
tests: Update DPP legacy config cases to provide the passphrase
This is now needed from the control interface since the hardcoded
default value has been removed from the implementation.
Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/hwsim/test_dpp.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/hwsim/test_dpp.py b/tests/hwsim/test_dpp.py index 962dd50..3815f9a 100644 --- a/tests/hwsim/test_dpp.py +++ b/tests/hwsim/test_dpp.py @@ -475,7 +475,7 @@ def test_dpp_config_fragmentation(dev, apdev): def test_dpp_config_legacy_gen(dev, apdev): """Generate DPP Config Object for legacy network""" run_dpp_qr_code_auth_unicast(dev, apdev, "prime256v1", - init_extra="conf=sta-psk", + init_extra="conf=sta-psk pass=%s" % "passphrase".encode("hex"), require_conf_success=True) def test_dpp_config_dpp_gen_prime256v1(dev, apdev): @@ -1099,7 +1099,7 @@ def run_dpp_auto_connect_legacy(dev, apdev): if "OK" not in dev[0].request(cmd): raise Exception("Failed to start listen operation") - cmd = "DPP_AUTH_INIT peer=%d conf=sta-psk ssid=%s" % (id1, "dpp-legacy".encode("hex")) + cmd = "DPP_AUTH_INIT peer=%d conf=sta-psk ssid=%s pass=%s" % (id1, "dpp-legacy".encode("hex"), "secret passphrase".encode("hex")) if "OK" not in dev[1].request(cmd): raise Exception("Failed to initiate DPP Authentication") ev = dev[1].wait_event(["DPP-CONF-SENT"], timeout=10) |