aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2017-01-08 14:52:56 (GMT)
committerJouni Malinen <j@w1.fi>2017-01-08 14:52:56 (GMT)
commitd85b1aa6de5bab20b741d14b12ab9dac083a7aa0 (patch)
tree5879463547ef4bf010e58a3a1798a12da54bc150 /tests
parent74582acc14aca491ed759108fe9ee0ee73d555be (diff)
downloadhostap-d85b1aa6de5bab20b741d14b12ab9dac083a7aa0.zip
hostap-d85b1aa6de5bab20b741d14b12ab9dac083a7aa0.tar.gz
hostap-d85b1aa6de5bab20b741d14b12ab9dac083a7aa0.tar.bz2
tests: More GET wifi_display coverage
Signed-off-by: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'tests')
-rw-r--r--tests/hwsim/test_wpas_ctrl.py16
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/hwsim/test_wpas_ctrl.py b/tests/hwsim/test_wpas_ctrl.py
index 761e901..952dd52 100644
--- a/tests/hwsim/test_wpas_ctrl.py
+++ b/tests/hwsim/test_wpas_ctrl.py
@@ -619,6 +619,22 @@ def test_wpas_ctrl_get(dev):
if "FAIL" not in dev[0].request("GET foo"):
raise Exception("Unexpected success on get command")
+ dev[0].set("wifi_display", "0")
+ if dev[0].request("GET wifi_display") != '0':
+ raise Exception("Unexpected wifi_display value")
+ dev[0].set("wifi_display", "1")
+ if dev[0].request("GET wifi_display") != '1':
+ raise Exception("Unexpected wifi_display value")
+ dev[0].request("P2P_SET disabled 1")
+ if dev[0].request("GET wifi_display") != '0':
+ raise Exception("Unexpected wifi_display value (P2P disabled)")
+ dev[0].request("P2P_SET disabled 0")
+ if dev[0].request("GET wifi_display") != '1':
+ raise Exception("Unexpected wifi_display value (P2P re-enabled)")
+ dev[0].set("wifi_display", "0")
+ if dev[0].request("GET wifi_display") != '0':
+ raise Exception("Unexpected wifi_display value")
+
@remote_compatible
def test_wpas_ctrl_preauth(dev):
"""wpa_supplicant ctrl_iface preauth"""