]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: ap_vht_40: wait a bit before connectivity check
authorJohannes Berg <johannes.berg@intel.com>
Mon, 25 Dec 2023 10:21:07 +0000 (12:21 +0200)
committerJouni Malinen <j@w1.fi>
Sat, 13 Jan 2024 18:09:16 +0000 (20:09 +0200)
We need the station to be fully set up on the AP before
running the connectivity check, not just the station to
be set up itself. Just waiting for the events seems to
still be racy so just sleep a little bit.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
tests/hwsim/test_ap_vht.py

index 2a7da8f68c09e62681419c284ff5fae18030fde3..5f0efecb4cadf2b255e8f17803e2abb18fe11af7 100644 (file)
@@ -347,6 +347,7 @@ def test_ap_vht_40(devs, apdevs):
                   "vht_oper_centr_freq_seg0_idx": "0"}
         hapd = hostapd.add_ap(ap, params)
         dev.connect("test-vht40", scan_freq="5180", key_mgmt="NONE")
+        time.sleep(0.1)
         hwsim_utils.test_connectivity(dev, hapd)
 
         sta = hapd.get_sta(dev.own_addr())