]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: p2p_device_nfc_invite with no separate group interface
authorJouni Malinen <j@w1.fi>
Sat, 27 Feb 2016 17:36:30 +0000 (19:36 +0200)
committerJouni Malinen <j@w1.fi>
Sat, 27 Feb 2016 17:37:19 +0000 (19:37 +0200)
Signed-off-by: Jouni Malinen <j@w1.fi>
tests/hwsim/test_p2p_device.py

index 9ecb8fe16260614a2c78dc86dc9641d07dd43583..a28e8902020e8558b6f329ed53716c76fc320a10 100644 (file)
@@ -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")