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>
Sun, 20 Mar 2022 00:29:09 +0000 (01:29 +0100)
commit88075c87dc31fc75ec5b236290ff5b8997e7538d
treee75047fa6b5e69e65c9981a8e24e95e72fbdd6f6
parentb1c353986895ef757dd69ea9fe30dd22194ee421
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>
(cherry picked from commit 0eed96ca5d86bdc4158c8ef6814893bc2a3dc467)
package/network/services/hostapd/src/src/ap/ubus.c