[PATCH] hostapd: Save RM enabled capability of station with AP SME

Ouden Lin <[email protected]>
Newsgroups gmane.linux.drivers.hostap
Message-ID <[email protected]>
From: Ouden <[email protected]>

Save RM enabled capability element of an associating station
when hostapd use the device AP SME.

To avoid hostapd_cli cannot send the REQ_BEACON.

Signed-off-by: Ouden <[email protected]>
---
 src/ap/drv_callbacks.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/src/ap/drv_callbacks.c b/src/ap/drv_callbacks.c
index 38506a097..493969793 100644
--- a/src/ap/drv_callbacks.c
+++ b/src/ap/drv_callbacks.c
@@ -493,6 +493,12 @@ skip_wpa_check:
 	}
 #endif /* CONFIG_IEEE80211R_AP */
 
+	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));
+	}
+
 #ifdef CONFIG_FILS
 	if (sta->auth_alg == WLAN_AUTH_FILS_SK ||
 	    sta->auth_alg == WLAN_AUTH_FILS_SK_PFS ||
-- 
2.21.1 (Apple Git-122.3)
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.