From 0f6d461779201187810e52f9802e3e8145e268f5 Mon Sep 17 00:00:00 2001 From: James Prestwood Date: Wed, 28 Sep 2022 09:36:33 -0700 Subject: [PATCH] auto-t: set disassociation imminent for bss transitions Allow the caller to set the disassociation imminent bit when sending the BSS transition request. --- autotests/util/hostapd.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/autotests/util/hostapd.py b/autotests/util/hostapd.py index d6c13e2b..bb27686f 100644 --- a/autotests/util/hostapd.py +++ b/autotests/util/hostapd.py @@ -199,7 +199,7 @@ class HostapdCLI(object): cmd = self.cmdline + ['remove_neighbor', addr] ctx.start_process(cmd).wait() - def send_bss_transition(self, device, nr_list): + def send_bss_transition(self, device, nr_list, disassoc_imminent=True): # Send a BSS transition to a station (device). nr_list should be an # array of tuples containing the BSS address and neighbor report. # Parsing the neighbor report is a bit ugly but it makes it more @@ -207,6 +207,10 @@ class HostapdCLI(object): # string could be used in both API's. pref = 1 cmd = self.cmdline + ['bss_tm_req', device] + + if disassoc_imminent: + cmd.append('disassoc_imminent=1') + for i in nr_list: addr = i[0] nr = i[1]