station: send debug "roam-scan-triggered" event
James Prestwood
PATCH v3 1/3 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 v3 2/3 auto-t: hostapd.py: add remove_neighbor()
--- autotests/util/hostapd.py | 4 ++++ 1 file changed, 4 insertions(+)
autotests/util/hostapd.py +4 -0
@@ -168,6 +168,10 @@ class HostapdCLI(object): cmd = self.cmdline + ['set_neighbor', addr, 'ssid="%s"' % ssid, 'nr=%s' % nr] ctx.start_process(cmd).wait() + def remove_neighbor(self, addr): + cmd = self.cmdline + ['remove_neighbor', addr] + ctx.start_process(cmd).wait() + def send_bss_transition(self, device, nr_list): # Send a BSS transition to a station (device). nr_list should be an # array of tuples containing the BSS address and neighbor report.
Signature · 1 line
2.31.1
James Prestwood
PATCH v3 3/3 auto-t: roam test to simulate reported crash
In reply to James PrestwoodDuring investigation another separate crash was found. The original is caused by a disconnect event coming in after a neighbor report scan was completed (roam failed) during the full roam scan.
The second crash is caused by a disconnect coming in during a full roam scan when no neighbor report scan was ever issued.
--- autotests/testPSK-roam/connection_test.py | 2 + autotests/testPSK-roam/main.conf | 3 + .../testPSK-roam/roam_ap_disconnect_test.py | 101 ++++++++++++++++++ 3 files changed, 106 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 +101 -0
101 lines not on this page · raw message
Signature · 1 line
2.31.1
Denis Kenzior
Hi James,
Quoted 3 lines · James Prestwood
--- src/station.c | 2 ++ 1 file changed, 2 insertions(+)
All applied, thanks.
Regards,
-Denis