diff mbox series

hostapd: Save RM enabled capability of station with AP SME

Message ID 20200221013946.26177-1-ouden.lin@realtek.com
State Accepted
Headers show
Series hostapd: Save RM enabled capability of station with AP SME | expand

Commit Message

Ouden Lin Feb. 21, 2020, 1:39 a.m. UTC
From: Ouden <Ouden.Biz@gmail.com>

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 <Ouden.Biz@gmail.com>
---
 src/ap/drv_callbacks.c | 6 ++++++
 1 file changed, 6 insertions(+)

Comments

Jouni Malinen Feb. 22, 2020, 10:55 p.m. UTC | #1
On Fri, Feb 21, 2020 at 09:39:46AM +0800, Ouden Lin wrote:
> Save RM enabled capability element of an associating station
> when hostapd use the device AP SME.

Thanks, applied.
Ouden Lin Feb. 24, 2020, 3:20 a.m. UTC | #2
Thank you, Jouni.

On Sun, Feb 23, 2020 at 6:55 AM Jouni Malinen <j@w1.fi> wrote:
>
> On Fri, Feb 21, 2020 at 09:39:46AM +0800, Ouden Lin wrote:
> > Save RM enabled capability element of an associating station
> > when hostapd use the device AP SME.
>
> Thanks, applied.
>
> --
> Jouni Malinen                                            PGP id EFC895FA
diff mbox series

Patch

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 ||