Skip to contentSkip to conversation

station: send debug "roam-scan-triggered" event

PATCH Superseded James Prestwood 1 participant 2 messages Jan 19, 2022

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore

James Prestwood

author
#0 lore raw

PATCH v2 1/2 station: send debug "roam-scan-triggered" event

---
 src/station.c | 2 ++
 1 file changed, 2 insertions(+)
src/station.c +2 -0
index 38d0757c..d9eb8d09 100644
@@ -2246,6 +2246,8 @@ static void station_roam_scan_triggered(int err, void *user_data)
 		return;
 	}
 
+	station_debug_event(station, "roam-scan-triggered");
+
 	/*
 	 * Do not update the Scanning property as we won't be updating the
 	 * list of networks.
Signature · 1 line
2.31.1
author
#1 lore raw

PATCH v2 2/2 auto-t: roam test to simulate reported crash

The crash itself is caused by new roam scans overwriting the previous scan ID. To simulate this both BSS's are set to very low signal strength which will cause IWD to attempt a roam but find no better BSS candidates. IWD will then attempt a roam scan again. During this we kill hostapd which sends a disconnect and should trigger a crash without the fix.

---
 autotests/testPSK-roam/connection_test.py     |  2 +
 autotests/testPSK-roam/main.conf              |  3 +
 .../testPSK-roam/roam_ap_disconnect_test.py   | 80 +++++++++++++++++++
 3 files changed, 85 insertions(+)
 create mode 100644 autotests/testPSK-roam/roam_ap_disconnect_test.py
autotests/testPSK-roam/connection_test.py +2 -0
index 8d9b22ad..92fdeb04 100644
@@ -203,6 +203,8 @@ class Test(unittest.TestCase):
     def tearDownClass(cls):
         IWD.clear_storage()
         cls.bss_hostapd = None
+        cls.rule0.enabled = False
+        cls.rule0.remove()
 
 if __name__ == '__main__':
     unittest.main(exit=True)
autotests/testPSK-roam/main.conf +3 -0
index 9452fb6b..3d93ff57 100644
@@ -1,2 +1,5 @@
 [Scan]
 DisableMacAddressRandomization=true
+
+[General]
+RoamRetryInterval=1
autotests/testPSK-roam/roam_ap_disconnect_test.py new file +80 -0

80 lines not on this page · raw message

Signature · 1 line
2.31.1