hostapd: set validity interval for BSS TMRA
authorDavid Bauer <mail@david-bauer.net>
Tue, 17 Nov 2020 10:47:38 +0000 (11:47 +0100)
committerDavid Bauer <mail@david-bauer.net>
Tue, 17 Nov 2020 16:06:39 +0000 (17:06 +0100)
This sets the validity interval for the BSS transition candidate
list to the same value as the disassociation timer.

Currently the value is always 0, which is the specification states is a
reserved value. Also, wpa_supplicant and from the looks of it some
Android implementations will outright ignore the candidate list in this
case.

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

index aae9f91a20d4456b8a149356f8590a203667452d..8546d2ce6991cb6b9cd0b7cb36b790d2b45f1c41 100644 (file)
@@ -1270,7 +1270,7 @@ hostapd_wnm_disassoc_imminent(struct ubus_context *ctx, struct ubus_object *obj,
        if (tb[WNM_DISASSOC_ABRIDGED] && blobmsg_get_bool(tb[WNM_DISASSOC_ABRIDGED]))
                req_mode |= WNM_BSS_TM_REQ_ABRIDGED;
 
-       if (wnm_send_bss_tm_req(hapd, sta, req_mode, duration, 0, NULL,
+       if (wnm_send_bss_tm_req(hapd, sta, req_mode, duration, duration, NULL,
                                NULL, nr, nr_len, NULL, 0))
                return UBUS_STATUS_UNKNOWN_ERROR;