aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2014-01-01 20:15:36 (GMT)
committerJouni Malinen <j@w1.fi>2014-01-01 20:15:36 (GMT)
commit75b25ece937c15d9fb07c3886b8c755c28295924 (patch)
tree9ee4e79841a3e360fb96eaf35801e0e84a6b5b2d
parent9488858f2993d199b409ed2bf558664bf4d1f28b (diff)
downloadhostap-75b25ece937c15d9fb07c3886b8c755c28295924.zip
hostap-75b25ece937c15d9fb07c3886b8c755c28295924.tar.gz
hostap-75b25ece937c15d9fb07c3886b8c755c28295924.tar.bz2
tests: Verify GET_CONFIG ctrl_iface command on hostapd
Signed-hostap: Jouni Malinen <j@w1.fi>
-rw-r--r--tests/hwsim/test_ap_wps.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/hwsim/test_ap_wps.py b/tests/hwsim/test_ap_wps.py
index d7e0b43..e45ff40 100644
--- a/tests/hwsim/test_ap_wps.py
+++ b/tests/hwsim/test_ap_wps.py
@@ -47,6 +47,15 @@ def test_ap_wps_init(dev, apdev):
raise Exception("Last WPS result not shown correctly")
if "Peer Address: " + dev[0].p2p_interface_addr() not in status:
raise Exception("Peer address not shown correctly")
+ conf = hapd.request("GET_CONFIG")
+ if "wps_state=configured" not in conf:
+ raise Exception("AP not in WPS configured state")
+ if "rsn_pairwise_cipher=CCMP TKIP" not in conf:
+ raise Exception("Unexpected rsn_pairwise_cipher")
+ if "wpa_pairwise_cipher=CCMP TKIP" not in conf:
+ raise Exception("Unexpected wpa_pairwise_cipher")
+ if "group_cipher=TKIP" not in conf:
+ raise Exception("Unexpected group_cipher")
def test_ap_wps_init_2ap_pbc(dev, apdev):
"""Initial two-radio AP configuration with first WPS PBC Enrollee"""