aboutsummaryrefslogtreecommitdiffstats
path: root/package/network/services/hostapd
diff options
context:
space:
mode:
authorDavid Bauer <mail@david-bauer.net>2020-11-17 11:47:38 +0100
committerDavid Bauer <mail@david-bauer.net>2020-11-17 17:06:39 +0100
commit21dfdfd78b31a4a330514a5c0126e267be1c7fc3 (patch)
treee425a1358c35ae1939120536e99fbd312a2fcecf /package/network/services/hostapd
parentedb93eda161218af49393e2f2c68b87d5538a658 (diff)
downloadupstream-21dfdfd78b31a4a330514a5c0126e267be1c7fc3.tar.gz
upstream-21dfdfd78b31a4a330514a5c0126e267be1c7fc3.tar.bz2
upstream-21dfdfd78b31a4a330514a5c0126e267be1c7fc3.zip
hostapd: set validity interval for BSS TMRA
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>
Diffstat (limited to 'package/network/services/hostapd')
-rw-r--r--package/network/services/hostapd/src/src/ap/ubus.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/package/network/services/hostapd/src/src/ap/ubus.c b/package/network/services/hostapd/src/src/ap/ubus.c
index aae9f91a20..8546d2ce69 100644
--- a/package/network/services/hostapd/src/src/ap/ubus.c
+++ b/package/network/services/hostapd/src/src/ap/ubus.c
@@ -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;