station: send debug "roam-scan-triggered" event
James Prestwood
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
@@ -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
James Prestwood
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
@@ -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
@@ -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