From: Ilan Peer Date: Fri, 6 Feb 2015 01:30:58 +0000 (-0500) Subject: tests: Use the group control interface in p2p_channel_avoid X-Git-Tag: hostap_2_4~176 X-Git-Url: http://www.project-moonshot.org/gitweb/?p=mech_eap.git;a=commitdiff_plain;h=da749dc579bf5e72082b98d734a23dc082db59c1 tests: Use the group control interface in p2p_channel_avoid Use the group control interface to wait for P2P-REMOVE-AND-REFORM-GROUP as the event is a group event. Signed-off-by: Ilan Peer --- diff --git a/tests/hwsim/test_p2p_channel.py b/tests/hwsim/test_p2p_channel.py index 853e796..bc4cd58 100644 --- a/tests/hwsim/test_p2p_channel.py +++ b/tests/hwsim/test_p2p_channel.py @@ -173,7 +173,7 @@ def test_p2p_channel_avoid(dev): ev = dev[0].wait_event(["CTRL-EVENT-AVOID-FREQ"], timeout=10) if ev is None: raise Exception("No CTRL-EVENT-AVOID-FREQ event") - ev = dev[0].wait_event(["P2P-REMOVE-AND-REFORM-GROUP"], timeout=1) + ev = dev[0].wait_group_event(["P2P-REMOVE-AND-REFORM-GROUP"], timeout=1) if ev is not None: raise Exception("Unexpected P2P-REMOVE-AND-REFORM-GROUP event") @@ -182,7 +182,8 @@ def test_p2p_channel_avoid(dev): ev = dev[0].wait_event(["CTRL-EVENT-AVOID-FREQ"], timeout=10) if ev is None: raise Exception("No CTRL-EVENT-AVOID-FREQ event") - ev = dev[0].wait_event(["P2P-REMOVE-AND-REFORM-GROUP"], timeout=10) + ev = dev[0].wait_group_event(["P2P-REMOVE-AND-REFORM-GROUP"], + timeout=10) if ev is None: raise Exception("No P2P-REMOVE-AND-REFORM-GROUP event") finally: