From ee8ef9cacff920de2dfbc42b55d1b6c2b50b9cd3 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Thu, 24 Aug 2017 23:31:46 +0300 Subject: [PATCH] tests: DPP association with nl80211 connect command Signed-off-by: Jouni Malinen --- tests/hwsim/test_dpp.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/tests/hwsim/test_dpp.py b/tests/hwsim/test_dpp.py index ede21464c..61c5f64c9 100644 --- a/tests/hwsim/test_dpp.py +++ b/tests/hwsim/test_dpp.py @@ -10,6 +10,7 @@ import time import hostapd from utils import HwsimSkip +from wpasupplicant import WpaSupplicant def check_dpp_capab(dev): if "UNKNOWN COMMAND" in dev.request("DPP_BOOTSTRAP_GET_URI 0"): @@ -1017,6 +1018,16 @@ def test_dpp_auto_connect_2(dev, apdev): finally: dev[0].set("dpp_config_processing", "0") +def test_dpp_auto_connect_2_connect_cmd(dev, apdev): + """DPP and auto connect (2) using connect_cmd""" + wpas = WpaSupplicant(global_iface='/tmp/wpas-wlan5') + wpas.interface_add("wlan5", drv_params="force_connect_cmd=1") + dev_new = [ wpas, dev[1] ] + try: + run_dpp_auto_connect(dev_new, apdev, 2) + finally: + wpas.set("dpp_config_processing", "0") + def run_dpp_auto_connect(dev, apdev, processing): check_dpp_capab(dev[0]) check_dpp_capab(dev[1])