tests: Fix p2p_set_discoverability waiting for CTRL-EVENT-CONNECTED

Wait on the group control interface to support configurations that
use a dedicated P2P Device interface.

Signed-off-by: Avraham Stern <avraham.stern@intel.com>
This commit is contained in:
Avraham Stern 2015-06-17 16:24:58 +03:00 committed by Jouni Malinen
parent e1dffa3b2c
commit c340e0e8f4

View file

@ -61,7 +61,9 @@ def test_p2p_set_discoverability(dev):
raise Exception("P2P_SET discoverability 1 failed")
dev[1].dump_monitor()
dev[1].group_request("REASSOCIATE")
dev[1].wait_connected(timeout=20)
ev = dev[1].wait_group_event(["CTRL-EVENT-CONNECTED"], timeout=20)
if ev is None:
raise Exception("Connection timed out")
dev[2].request("P2P_FLUSH")
if not dev[2].discover_peer(addr1, timeout=10):