]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Fix run_eht_mld_sae_two_links()
authorIlan Peer <ilan.peer@intel.com>
Wed, 1 May 2024 07:19:53 +0000 (10:19 +0300)
committerJouni Malinen <j@w1.fi>
Fri, 12 Jul 2024 10:00:46 +0000 (13:00 +0300)
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 <ilan.peer@intel.com>
tests/hwsim/test_eht.py

index cc679682cc7009392d1a56d728c42e3de53081d6..00d6adff719030ae6241bb6eb546b386e1c3858c 100644 (file)
@@ -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()