tests: ap_wps_init to allow TKIP-disabled hostapd build
Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
This commit is contained in:
parent
7b82d0bd58
commit
d0b382fd11
1 changed files with 14 additions and 8 deletions
|
@ -97,6 +97,12 @@ def test_ap_wps_init(dev, apdev):
|
||||||
conf = hapd.request("GET_CONFIG")
|
conf = hapd.request("GET_CONFIG")
|
||||||
if "wps_state=configured" not in conf:
|
if "wps_state=configured" not in conf:
|
||||||
raise Exception("AP not in WPS configured state")
|
raise Exception("AP not in WPS configured state")
|
||||||
|
if "wpa=2" in conf:
|
||||||
|
if "rsn_pairwise_cipher=CCMP" not in conf:
|
||||||
|
raise Exception("Unexpected rsn_pairwise_cipher")
|
||||||
|
if "group_cipher=CCMP" not in conf:
|
||||||
|
raise Exception("Unexpected group_cipher")
|
||||||
|
else:
|
||||||
if "wpa=3" not in conf:
|
if "wpa=3" not in conf:
|
||||||
raise Exception("AP not in WPA+WPA2 configuration")
|
raise Exception("AP not in WPA+WPA2 configuration")
|
||||||
if "rsn_pairwise_cipher=CCMP TKIP" not in conf:
|
if "rsn_pairwise_cipher=CCMP TKIP" not in conf:
|
||||||
|
|
Loading…
Reference in a new issue