From 7c7fa52fe1c18454da4b43b1dbf26154b96ca8a8 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Sat, 27 Feb 2016 19:36:30 +0200 Subject: [PATCH] tests: p2p_device_nfc_invite with no separate group interface Signed-off-by: Jouni Malinen --- tests/hwsim/test_p2p_device.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/tests/hwsim/test_p2p_device.py b/tests/hwsim/test_p2p_device.py index 9ecb8fe16..a28e89020 100644 --- a/tests/hwsim/test_p2p_device.py +++ b/tests/hwsim/test_p2p_device.py @@ -120,10 +120,18 @@ def test_p2p_device_concurrent_scan(dev, apdev): raise Exception("Station mode scan did not start") def test_p2p_device_nfc_invite(dev, apdev): - """P2P NFC invitiation with driver using cfg80211 P2P Device""" + """P2P NFC invitation with driver using cfg80211 P2P Device""" + run_p2p_device_nfc_invite(dev, apdev, 0) + +def test_p2p_device_nfc_invite_no_group_iface(dev, apdev): + """P2P NFC invitation with driver using cfg80211 P2P Device (no separate group interface)""" + run_p2p_device_nfc_invite(dev, apdev, 1) + +def run_p2p_device_nfc_invite(dev, apdev, no_group_iface): with HWSimRadio(use_p2p_device=True) as (radio, iface): wpas = WpaSupplicant(global_iface='/tmp/wpas-wlan5') wpas.interface_add(iface) + wpas.global_request("SET p2p_no_group_iface %d" % no_group_iface) set_ip_addr_info(dev[0]) logger.info("Start autonomous GO")