[PATCH 10/16] tests: Fix test_wifi_display to use the global control interface
Ilan Peer
ilan.peer
Wed Jun 17 06:24:56 PDT 2015
This is needed if the configuration is using a dedicated P2P Device
interface.
Signed-off-by: Ilan Peer <ilan.peer at intel.com>
---
tests/hwsim/test_p2p_wifi_display.py | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/tests/hwsim/test_p2p_wifi_display.py b/tests/hwsim/test_p2p_wifi_display.py
index 678504a..3ea28d9 100644
--- a/tests/hwsim/test_p2p_wifi_display.py
+++ b/tests/hwsim/test_p2p_wifi_display.py
@@ -55,7 +55,7 @@ def test_wifi_display(dev):
raise Exception("Could not fetch back configured subelement")
dev[0].p2p_listen()
- if "FAIL" in dev[1].request("P2P_SERV_DISC_REQ " + dev[0].p2p_dev_addr() + " wifi-display [source][pri-sink] 2,3,4,5"):
+ if "FAIL" in dev[1].global_request("P2P_SERV_DISC_REQ " + dev[0].p2p_dev_addr() + " wifi-display [source][pri-sink] 2,3,4,5"):
raise Exception("Setting SD request failed")
dev[1].p2p_find(social=True)
ev = dev[0].wait_global_event(["P2P-SERV-DISC-REQ"], timeout=10)
@@ -120,11 +120,11 @@ def test_wifi_display(dev):
dev[2].request("SET wifi_display 1")
dev[2].request("WFD_SUBELEM_SET 0 0006" + wfd_devinfo3)
dev[2].p2p_find(social=True)
- ev = dev[2].wait_event(["P2P-DEVICE-FOUND"], timeout=5)
+ ev = dev[2].wait_global_event(["P2P-DEVICE-FOUND"], timeout=5)
if ev is None:
raise Exception("Device discovery timed out")
if dev[1].p2p_dev_addr() not in ev:
- ev = dev[2].wait_event(["P2P-DEVICE-FOUND"], timeout=5)
+ ev = dev[2].wait_global_event(["P2P-DEVICE-FOUND"], timeout=5)
if ev is None:
raise Exception("Device discovery timed out")
if dev[1].p2p_dev_addr() not in ev:
--
1.9.1
More information about the Hostap
mailing list