aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJouni Malinen <jouni@qca.qualcomm.com>2014-10-30 22:48:12 (GMT)
committerJouni Malinen <j@w1.fi>2014-10-30 22:50:01 (GMT)
commit96a6c4c0980d27840c6225b3a4023416789317d9 (patch)
tree2dcaae3f5c87a1c52a8d38eed57f5632d8d472b4 /tests
parent70892f697f182e9eac2eda2bc6fbb7f223f4ff9b (diff)
downloadhostap-96a6c4c0980d27840c6225b3a4023416789317d9.zip
hostap-96a6c4c0980d27840c6225b3a4023416789317d9.tar.gz
hostap-96a6c4c0980d27840c6225b3a4023416789317d9.tar.bz2
tests: Concurrent station mode scan and p2p_find with P2P Device
This verifies that station mode interface SCAN command gets executed if P2P Device instance is running p2p_find. Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/hwsim/test_p2p_device.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/hwsim/test_p2p_device.py b/tests/hwsim/test_p2p_device.py
index a3428f2..e0cfa61 100644
--- a/tests/hwsim/test_p2p_device.py
+++ b/tests/hwsim/test_p2p_device.py
@@ -52,3 +52,15 @@ def test_p2p_device_group_remove(dev, apdev):
raise Exception("Group removal event not received")
if not wpas.global_ping():
raise Exception("Could not ping global ctrl_iface after group removal")
+
+def test_p2p_device_concurrent_scan(dev, apdev):
+ """Concurrent P2P and station mode scans with driver using cfg80211 P2P Device"""
+ with HWSimRadio(use_p2p_device=True) as (radio, iface):
+ wpas = WpaSupplicant(global_iface='/tmp/wpas-wlan5')
+ wpas.interface_add(iface)
+ wpas.p2p_find()
+ time.sleep(0.1)
+ wpas.request("SCAN")
+ ev = wpas.wait_event(["CTRL-EVENT-SCAN-STARTED"], timeout=15)
+ if ev is None:
+ raise Exception("Station mode scan did not start")