From 18b8c35b417b7b0060e97c8524938dda723dd4d7 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Sun, 19 Nov 2017 16:02:07 +0200 Subject: [PATCH] tests: Fix ap_cipher_tkip_countermeasures_sta2 hostapd implementation was changed to use a valid Status Code when rejecting the connection. This test case was forgotten at the time, but it needs a matching change to allow the new value (1 instead of 14). Signed-off-by: Jouni Malinen --- tests/hwsim/test_ap_ciphers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/hwsim/test_ap_ciphers.py b/tests/hwsim/test_ap_ciphers.py index ad33d132c..e7921d32a 100644 --- a/tests/hwsim/test_ap_ciphers.py +++ b/tests/hwsim/test_ap_ciphers.py @@ -252,7 +252,7 @@ def test_ap_cipher_tkip_countermeasures_sta2(dev, apdev, params): if "CTRL-EVENT-CONNECTED" in ev: connected = True break - if "status_code=14" not in ev: + if "status_code=1" not in ev: raise Exception("Unexpected connection failure reason during TKIP countermeasures: " + ev) dev[0].request("REMOVE_NETWORK all") time.sleep(1)