From 20066e3fe7222e5cc8fb13114e0d6da6722da1d1 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Tue, 15 Apr 2014 23:43:36 +0300 Subject: [PATCH] tests: Wi-Fi Display through the global interface Signed-off-by: Jouni Malinen --- tests/hwsim/test_p2p_wifi_display.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/hwsim/test_p2p_wifi_display.py b/tests/hwsim/test_p2p_wifi_display.py index 8795c8164..a32286d8c 100644 --- a/tests/hwsim/test_p2p_wifi_display.py +++ b/tests/hwsim/test_p2p_wifi_display.py @@ -137,6 +137,13 @@ def test_wifi_display(dev): if dev[0].request("WFD_SUBELEM_GET 8") != "": raise Exception("Unexpected WFD_SUBELEM_GET 8 response") + if dev[0].global_request("WFD_SUBELEM_GET 2") != audio: + raise Exception("Unexpected WFD_SUBELEM_GET 2 value from global interface") + if "OK" not in dev[0].global_request("WFD_SUBELEM_SET 1 0006020304050608"): + raise Exception("WFD_SUBELEM_SET failed on global interface") + if dev[0].request("WFD_SUBELEM_GET 1") != "0006020304050608": + raise Exception("Unexpected WFD_SUBELEM_GET 1 value (per-interface)") + dev[0].request("SET wifi_display 0") dev[1].request("SET wifi_display 0") dev[2].request("SET wifi_display 0")