]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Disable power saving explicitly for pmksa_cache_ap_expiration
authorJouni Malinen <jouni@codeaurora.org>
Fri, 1 May 2020 20:02:33 +0000 (23:02 +0300)
committerJouni Malinen <j@w1.fi>
Sun, 3 May 2020 21:37:45 +0000 (00:37 +0300)
This test case seems to be failing every now and then due to the AP not
getting out the Deauthentication frame after PMKSA expiration if the STA
is in power save mode.

Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
tests/hwsim/test_pmksa_cache.py

index c334b48dd29a6cd20130d538283c794e4a971db3..22db7e8d489ab0e98877e170dd4ddbe7c35fa23b 100644 (file)
@@ -663,6 +663,8 @@ def test_pmksa_cache_ap_expiration(dev, apdev):
     hapd = hostapd.add_ap(apdev[0], params)
     bssid = apdev[0]['bssid']
 
+    dev[0].cmd_execute(['iw', 'dev', dev[0].ifname,
+                        'set', 'power_save', 'off'])
     dev[0].connect("test-pmksa-cache", proto="RSN", key_mgmt="WPA-EAP",
                    eap="GPSK", identity="gpsk-user-session-timeout",
                    password="abcdefghijklmnop0123456789abcdef",