]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Wi-Fi Display through the global interface
authorJouni Malinen <j@w1.fi>
Tue, 15 Apr 2014 20:43:36 +0000 (23:43 +0300)
committerJouni Malinen <j@w1.fi>
Tue, 15 Apr 2014 20:43:36 +0000 (23:43 +0300)
Signed-off-by: Jouni Malinen <j@w1.fi>
tests/hwsim/test_p2p_wifi_display.py

index 8795c81643c5058c7c591c2e7e1d73f29da4ff9d..a32286d8ce76b3eaacd55cde62e8e1be44d4c7a7 100644 (file)
@@ -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")