From: Ouden Date: Fri, 21 Feb 2020 01:39:46 +0000 (+0800) Subject: Save RM enabled capability of station with AP SME X-Git-Tag: hostap_2_10~1779 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=fae7e64aa3ecf317d15beb799fcc6865a55b1bd3;p=thirdparty%2Fhostap.git Save RM enabled capability of station with AP SME 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 --- diff --git a/src/ap/drv_callbacks.c b/src/ap/drv_callbacks.c index a3a4f3ec3..9ed131cfd 100644 --- a/src/ap/drv_callbacks.c +++ b/src/ap/drv_callbacks.c @@ -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);