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