]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Wait after rekeying a bit before running connectivity test
authorJouni Malinen <jouni@codeaurora.org>
Mon, 5 Aug 2019 10:49:15 +0000 (13:49 +0300)
committerJouni Malinen <j@w1.fi>
Mon, 5 Aug 2019 10:49:15 +0000 (13:49 +0300)
The AP side may not have had enough time to configure the new TK into
the driver if the connectivity test is started immediately after the
station side event.

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

index 1488fea666c60b21750890a9dd0bed1c05612a70..531fb39456818dd7cdb0be9ab22b96d4e5f3fd30 100644 (file)
@@ -2382,6 +2382,7 @@ def check_ptk_rekey(dev, hapd0=None, hapd1=None):
         hapd = hapd0
     else:
         hapd = hapd1
+    time.sleep(0.1)
     hwsim_utils.test_connectivity(dev, hapd)
 
 def test_ap_ft_ptk_rekey(dev, apdev):