3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-11-22 06:29:23 +01:00

auto-t: set disassociation imminent for bss transitions

Allow the caller to set the disassociation imminent bit when
sending the BSS transition request.
This commit is contained in:
James Prestwood 2022-09-28 09:36:33 -07:00 committed by Denis Kenzior
parent f3b31e48e0
commit 0f6d461779

View File

@ -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]