From: Avraham Stern Date: Thu, 7 Apr 2016 10:31:58 +0000 (+0300) Subject: tests: Modify p2p_msg_long_ssid to support P2P Device interface X-Git-Tag: hostap_2_6~537 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d43fc7c6b0232693e84f4b7ccd3665f90afb87c1;p=thirdparty%2Fhostap.git tests: Modify p2p_msg_long_ssid to support P2P Device interface Waiting for the P2P-DEVICE-FOUND event should be done on the global control interface to support configurations that use a dedicated P2P Device interface. Signed-off-by: Avraham Stern --- diff --git a/tests/hwsim/test_p2p_messages.py b/tests/hwsim/test_p2p_messages.py index b10814e1c..1c42654c4 100644 --- a/tests/hwsim/test_p2p_messages.py +++ b/tests/hwsim/test_p2p_messages.py @@ -240,7 +240,7 @@ def test_p2p_msg_long_ssid(dev, apdev): msg['payload'] += ie_p2p(attrs) msg['payload'] += ie_ssid(255 * 'A') hapd.mgmt_tx(msg) - ev = dev[0].wait_event(["P2P-DEVICE-FOUND"], timeout=5) + ev = dev[0].wait_global_event(["P2P-DEVICE-FOUND"], timeout=5) if ev is None: raise Exception("Timeout on device found event")