aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJouni Malinen <jouni@qca.qualcomm.com>2017-06-22 12:12:43 (GMT)
committerJouni Malinen <j@w1.fi>2017-06-23 09:45:27 (GMT)
commitede1f791e1e7609ad4740967f272f55070235f3a (patch)
tree32ae3e8a9af02c0799d5d3806853e7987f894e92 /tests
parent68cb6dcec1855522f251ca58a31a877506108146 (diff)
downloadhostap-ede1f791e1e7609ad4740967f272f55070235f3a.zip
hostap-ede1f791e1e7609ad4740967f272f55070235f3a.tar.gz
hostap-ede1f791e1e7609ad4740967f272f55070235f3a.tar.bz2
tests: DPP Configurator getting SSID from control interface
Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/hwsim/test_dpp.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/hwsim/test_dpp.py b/tests/hwsim/test_dpp.py
index 7dd21f5..962dd50 100644
--- a/tests/hwsim/test_dpp.py
+++ b/tests/hwsim/test_dpp.py
@@ -1077,7 +1077,8 @@ def run_dpp_auto_connect_legacy(dev, apdev):
check_dpp_capab(dev[0])
check_dpp_capab(dev[1])
- params = hostapd.wpa2_params(ssid="test", passphrase="secret passphrase")
+ params = hostapd.wpa2_params(ssid="dpp-legacy",
+ passphrase="secret passphrase")
hapd = hostapd.add_ap(apdev[0], params)
dev[0].set("dpp_config_processing", "2")
@@ -1098,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" % id1
+ cmd = "DPP_AUTH_INIT peer=%d conf=sta-psk ssid=%s" % (id1, "dpp-legacy".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)