From: Ilan Peer Date: Wed, 17 Jun 2015 13:24:53 +0000 (+0300) Subject: tests: Fix autogo_pbc() waiting for WPS-PBC X-Git-Tag: hostap_2_5~594 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5590d2ecd110fb395c29ec9fb5ed52e1175cd6a3;p=thirdparty%2Fhostap.git tests: Fix autogo_pbc() waiting for WPS-PBC Wait on the global control interface to support configurations that use a dedicated P2P Device interface. Note that the group interface cannot be used, as the group interface name is not saved since no group was created. Signed-off-by: Ilan Peer --- diff --git a/tests/hwsim/test_p2p_autogo.py b/tests/hwsim/test_p2p_autogo.py index 50ef071f1..c92119bc4 100644 --- a/tests/hwsim/test_p2p_autogo.py +++ b/tests/hwsim/test_p2p_autogo.py @@ -235,7 +235,7 @@ def test_autogo_pbc(dev): raise Exception("WPS_PBC failed") dev[2].p2p_connect_group(dev[0].p2p_dev_addr(), "pbc", timeout=0, social=True) - ev = dev[2].wait_event(["WPS-M2D"], timeout=15) + ev = dev[2].wait_global_event(["WPS-M2D"], timeout=15) if ev is None: raise Exception("WPS-M2D not reported") if "config_error=12" not in ev: