From: Ilan Peer Date: Wed, 4 Feb 2015 09:30:20 +0000 (-0500) Subject: tests: Use global control interface in discovery_dev_id X-Git-Tag: hostap_2_4~203 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=098a687ffbaea50be0d8ccefa48008d9d6b2e509;p=thirdparty%2Fhostap.git tests: Use global control interface in discovery_dev_id Signed-off-by: Ilan Peer --- diff --git a/tests/hwsim/test_p2p_discovery.py b/tests/hwsim/test_p2p_discovery.py index 29132674b..dacdb91c7 100644 --- a/tests/hwsim/test_p2p_discovery.py +++ b/tests/hwsim/test_p2p_discovery.py @@ -193,11 +193,11 @@ def test_discovery_dev_id(dev): addr1 = dev[1].p2p_dev_addr() dev[1].p2p_listen() dev[0].p2p_find(social=True, dev_id="02:03:04:05:06:07") - ev = dev[0].wait_event(['P2P-DEVICE-FOUND'], timeout=1) + ev = dev[0].wait_global_event(['P2P-DEVICE-FOUND'], timeout=1) if ev: raise Exception("Unexpected P2P device found") dev[0].p2p_find(social=True, dev_id=addr1) - ev = dev[0].wait_event(['P2P-DEVICE-FOUND'], timeout=2) + ev = dev[0].wait_global_event(['P2P-DEVICE-FOUND'], timeout=5) if ev is None: raise Exception("P2P device not found") if addr1 not in ev: