hostapd: ubus: add BSS transtiton request method
authorDavid Bauer <mail@david-bauer.net>
Sat, 5 Dec 2020 19:17:35 +0000 (20:17 +0100)
committerDavid Bauer <mail@david-bauer.net>
Wed, 13 Oct 2021 20:55:45 +0000 (22:55 +0200)
commit0eed96ca5d86bdc4158c8ef6814893bc2a3dc467
tree203c2004c93cb854f1f4b801df67e736e8c94585
parenta3de42e72ce349c14263737c5d6ec7b00397cf14
hostapd: ubus: add BSS transtiton request method

The existing wnm_disassoc_imminent ubus method only supports issuing a
bss transition request with the disassoc imminent flag set.
For use-cases, where the client is requested to roam to another BSS
without a pending disassoc, this existing method is not suitable.

Add a new bss_transition_request ubus method, which provides a more
universal way to dispatch a transition request. It takes the following
arguments:

Required:
addr: String - MAC-address of the STA to send the request to (colon-seperated)

Optional:
abridged - Bool - Indicates if the abridged flag is set
disassociation_imminent: Bool - Whether or not the disassoc_imminent
                         flag is set
disassociation_timer: I32 - number of TBTTs after which the client will
                      be disassociated
validity_period: I32 - number of TBTTs after which the beacon
                 candidate list (if included) will be invalid
neighbors: blob-array - Array of strings containing neighbor reports as
           hex-string

Signed-off-by: David Bauer <mail@david-bauer.net>
package/network/services/hostapd/src/src/ap/ubus.c