]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Save RM enabled capability of station with AP SME
authorOuden <Ouden.Biz@gmail.com>
Fri, 21 Feb 2020 01:39:46 +0000 (09:39 +0800)
committerJouni Malinen <j@w1.fi>
Sat, 22 Feb 2020 17:20:44 +0000 (19:20 +0200)
Save RM enabled capability element of an associating station when
hostapd use the device AP SME similarly to how this information is saved
with SME-on-hostapd cases. This allows radio measurement operations
(e.g., REQ_BEACON) to be used.

Signed-off-by: Ouden <Ouden.Biz@gmail.com>
src/ap/drv_callbacks.c

index a3a4f3ec37529a63db20d4119ae5c024494d92ef..9ed131cfd88e78b4c6c5e35de3ba20c4a1e9755e 100644 (file)
@@ -623,6 +623,11 @@ skip_wpa_check:
        pfs_fail:
 #endif /* CONFIG_DPP2 */
 
+       if (elems.rrm_enabled &&
+           elems.rrm_enabled_len >= sizeof(sta->rrm_enabled_capa))
+           os_memcpy(sta->rrm_enabled_capa, elems.rrm_enabled,
+                     sizeof(sta->rrm_enabled_capa));
+
 #if defined(CONFIG_IEEE80211R_AP) || defined(CONFIG_FILS) || defined(CONFIG_OWE)
        hostapd_sta_assoc(hapd, addr, reassoc, status, buf, p - buf);