From: Jouni Malinen Date: Fri, 23 Jan 2026 14:28:13 +0000 (+0200) Subject: tests: Avoid race condition in ap_open_tdls_external_control X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f9e8c09d5466aaa00580ece6adb97338bd7e560b;p=thirdparty%2Fhostap.git tests: Avoid race condition in ap_open_tdls_external_control Make this test case wait for the kernel STA entries to be ready for Data frames before initiating TDLS setup similarly to the other TDLS test cases. This avoids issues where "dropped frame to 02:00:00:00:01:00 (unauthorized port)" is seen in kernel log and the TDLS setup does not complete in time. Signed-off-by: Jouni Malinen --- diff --git a/tests/hwsim/test_ap_tdls.py b/tests/hwsim/test_ap_tdls.py index b4ab09fd6..82e603375 100644 --- a/tests/hwsim/test_ap_tdls.py +++ b/tests/hwsim/test_ap_tdls.py @@ -603,6 +603,9 @@ def _test_ap_open_tdls_external_control(dev, apdev): dev[1].connect("test-open", key_mgmt="NONE", scan_freq="2412") addr0 = dev[0].own_addr() addr1 = dev[1].own_addr() + hapd.wait_sta() + hapd.wait_sta() + connectivity(dev, hapd) dev[0].set("tdls_external_control", "1") if "FAIL" in dev[0].request("TDLS_SETUP " + addr1):