tests: Check data connectivity after supplicant triggered EAP reauth

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
This commit is contained in:
Jouni Malinen 2016-12-05 21:01:43 +02:00 committed by Jouni Malinen
parent 5ec3d510e1
commit 813ebc51bd

View file

@ -282,7 +282,7 @@ def test_pmksa_cache_opportunistic_connect(dev, apdev):
def test_pmksa_cache_expiration(dev, apdev): def test_pmksa_cache_expiration(dev, apdev):
"""PMKSA cache entry expiration""" """PMKSA cache entry expiration"""
params = hostapd.wpa2_eap_params(ssid="test-pmksa-cache") 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'] bssid = apdev[0]['bssid']
dev[0].request("SET dot11RSNAConfigPMKLifetime 10") dev[0].request("SET dot11RSNAConfigPMKLifetime 10")
dev[0].connect("test-pmksa-cache", proto="RSN", key_mgmt="WPA-EAP", 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) pmksa2 = dev[0].get_pmksa(bssid)
if pmksa['pmkid'] == pmksa2['pmkid']: if pmksa['pmkid'] == pmksa2['pmkid']:
raise Exception("PMKID did not change") raise Exception("PMKID did not change")
hwsim_utils.test_connectivity(dev[0], hapd)
def test_pmksa_cache_expiration_disconnect(dev, apdev): def test_pmksa_cache_expiration_disconnect(dev, apdev):
"""PMKSA cache entry expiration (disconnect)""" """PMKSA cache entry expiration (disconnect)"""