From: Ilan Peer Date: Wed, 1 May 2024 07:19:53 +0000 (+0300) Subject: tests: Fix run_eht_mld_sae_two_links() X-Git-Tag: hostap_2_11~21 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b946a800f02aa5a0aaafd4e82acd66bc3e5e4872;p=thirdparty%2Fhostap.git tests: Fix run_eht_mld_sae_two_links() In the case that the AP MLD is disabled and enabled again, flush the wpa_supplicant BSS table before reconnecting as otherwise the previous AP MLD BSSs would be in the BSS table and the wpa_supplicant would try to connect to them. Signed-off-by: Ilan Peer --- diff --git a/tests/hwsim/test_eht.py b/tests/hwsim/test_eht.py index cc679682c..00d6adff7 100644 --- a/tests/hwsim/test_eht.py +++ b/tests/hwsim/test_eht.py @@ -526,6 +526,10 @@ def run_eht_mld_sae_two_links(dev, apdev, beacon_prot="1", # fall back to full SAE from failed PMKSA caching attempt # automatically. wpas.request("PMKSA_FLUSH") + + # flush the BSS table before reconnect as otherwise the old + # AP MLD BSSs would be in the BSS list + wpas.request("BSS_FLUSH 0") wpas.request("RECONNECT") wpas.wait_connected() hapd0.wait_sta()