From: Jouni Malinen Date: Thu, 20 Feb 2014 11:27:16 +0000 (+0200) Subject: tests: Verify that Disconnect-Request prevents PMKSA caching X-Git-Tag: hostap_2_2~834 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e58f59cb5817036dfeef1077ffec125bd3ab281f;p=thirdparty%2Fhostap.git tests: Verify that Disconnect-Request prevents PMKSA caching Signed-off-by: Jouni Malinen --- diff --git a/tests/hwsim/test_radius.py b/tests/hwsim/test_radius.py index e68e43c30..b56cad9af 100644 --- a/tests/hwsim/test_radius.py +++ b/tests/hwsim/test_radius.py @@ -285,9 +285,14 @@ def test_radius_das_disconnect(dev, apdev): ev = dev[0].wait_event(["CTRL-EVENT-DISCONNECTED"]) if ev is None: raise Exception("Timeout while waiting for disconnection") - ev = dev[0].wait_event(["CTRL-EVENT-CONNECTED"]) + ev = dev[0].wait_event(["CTRL-EVENT-EAP-STARTED", "CTRL-EVENT-CONNECTED"]) if ev is None: raise Exception("Timeout while waiting for re-connection") + if "CTRL-EVENT-EAP-STARTED" not in ev: + raise Exception("Unexpected skipping of EAP authentication in reconnection") + ev = dev[0].wait_event(["CTRL-EVENT-CONNECTED"]) + if ev is None: + raise Exception("Timeout while waiting for re-connection to complete") logger.info("Disconnect-Request with matching Calling-Station-Id and non-matching CUI") req = radius_das.DisconnectPacket(dict=dict, secret="secret",