From: Jouni Malinen Date: Mon, 5 Dec 2016 19:01:43 +0000 (+0200) Subject: tests: Check data connectivity after supplicant triggered EAP reauth X-Git-Tag: hostap_2_7~2061 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=813ebc51bdcac7f29dd5bffba2086c158dba9852;p=thirdparty%2Fhostap.git tests: Check data connectivity after supplicant triggered EAP reauth Signed-off-by: Jouni Malinen --- diff --git a/tests/hwsim/test_pmksa_cache.py b/tests/hwsim/test_pmksa_cache.py index e66cf17c1..8edf54e6a 100644 --- a/tests/hwsim/test_pmksa_cache.py +++ b/tests/hwsim/test_pmksa_cache.py @@ -282,7 +282,7 @@ def test_pmksa_cache_opportunistic_connect(dev, apdev): def test_pmksa_cache_expiration(dev, apdev): """PMKSA cache entry expiration""" params = hostapd.wpa2_eap_params(ssid="test-pmksa-cache") - hostapd.add_ap(apdev[0], params) + hapd = hostapd.add_ap(apdev[0], params) bssid = apdev[0]['bssid'] dev[0].request("SET dot11RSNAConfigPMKLifetime 10") dev[0].connect("test-pmksa-cache", proto="RSN", key_mgmt="WPA-EAP", @@ -302,6 +302,7 @@ def test_pmksa_cache_expiration(dev, apdev): pmksa2 = dev[0].get_pmksa(bssid) if pmksa['pmkid'] == pmksa2['pmkid']: raise Exception("PMKID did not change") + hwsim_utils.test_connectivity(dev[0], hapd) def test_pmksa_cache_expiration_disconnect(dev, apdev): """PMKSA cache entry expiration (disconnect)"""