From 80abf06244e5e0a99d122477b3e21070d8c4e1ba Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Sat, 12 Apr 2014 20:16:22 +0300 Subject: [PATCH] tests: P2P group interface removed due to GO Negotiation failure Signed-off-by: Jouni Malinen --- tests/hwsim/test_p2p_grpform.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/tests/hwsim/test_p2p_grpform.py b/tests/hwsim/test_p2p_grpform.py index 98c827cb2..2895cb33f 100644 --- a/tests/hwsim/test_p2p_grpform.py +++ b/tests/hwsim/test_p2p_grpform.py @@ -673,3 +673,18 @@ def test_grpform_pbc_overlap_group_iface(dev, apdev): logger.info("PBC overlap not reported") clear_pbc_overlap(dev, apdev[0]['ifname']) + +def test_grpform_goneg_fail_with_group_iface(dev): + """P2P group formation fails while using group interface""" + dev[0].request("SET p2p_no_group_iface 0") + dev[1].p2p_listen() + peer = dev[1].p2p_dev_addr() + if not dev[0].discover_peer(peer): + raise Exception("Peer " + peer + " not found") + if "OK" not in dev[1].request("P2P_REJECT " + dev[0].p2p_dev_addr()): + raise Exception("P2P_REJECT failed") + if "OK" not in dev[0].request("P2P_CONNECT " + peer + " pbc"): + raise Exception("P2P_CONNECT failed") + ev = dev[0].wait_global_event(["P2P-GO-NEG-FAILURE"], timeout=10) + if ev is None: + raise Exception("GO Negotiation failure timed out")