From 5a30fcf573256147c02c5119b55a31ee501b3853 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Sat, 31 Mar 2018 12:02:25 +0300 Subject: [PATCH] tests: EAP-ERROR-CODE Signed-off-by: Jouni Malinen --- tests/hwsim/test_ap_eap.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/hwsim/test_ap_eap.py b/tests/hwsim/test_ap_eap.py index 227825655..c7633fcb9 100644 --- a/tests/hwsim/test_ap_eap.py +++ b/tests/hwsim/test_ap_eap.py @@ -5892,6 +5892,11 @@ def test_ap_wpa2_eap_sim_db(dev, apdev, params): eap="SIM", identity="1232010000000000", password="90dca4eda45b53cf0f12d7c9c3bc6a89:cb9cccc4b9258e6dca4760379fb82581", scan_freq="2412", wait_connect=False) + ev = dev[0].wait_event(["EAP-ERROR-CODE"], timeout=10) + if ev is None: + raise Exception("EAP method specific error code not reported") + if int(ev.split()[1]) != 16384: + raise Exception("Unexpected EAP method specific error code: " + ev) ev = dev[0].wait_event(["CTRL-EVENT-EAP-FAILURE"], timeout=10) if ev is None: raise Exception("EAP-Failure not reported")