aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJouni Malinen <jouni@qca.qualcomm.com>2017-08-24 20:31:46 (GMT)
committerJouni Malinen <j@w1.fi>2017-08-24 20:31:46 (GMT)
commitee8ef9cacff920de2dfbc42b55d1b6c2b50b9cd3 (patch)
tree68862e6051a271c3406a3e567aa728893f1453a1 /tests
parent64a0a75b5b6331fb70032258cbece6c82c9698dc (diff)
downloadhostap-ee8ef9cacff920de2dfbc42b55d1b6c2b50b9cd3.zip
hostap-ee8ef9cacff920de2dfbc42b55d1b6c2b50b9cd3.tar.gz
hostap-ee8ef9cacff920de2dfbc42b55d1b6c2b50b9cd3.tar.bz2
tests: DPP association with nl80211 connect command
Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/hwsim/test_dpp.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/hwsim/test_dpp.py b/tests/hwsim/test_dpp.py
index ede2146..61c5f64 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])