From: Chaoli Zhou Date: Tue, 30 Aug 2022 07:13:57 +0000 (+0800) Subject: Configure RRM elements to the driver in the driver-AP-SME case X-Git-Tag: hostap_2_11~1719 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7974d805318dfec972106b45c7fad737bc923c96;p=thirdparty%2Fhostap.git Configure RRM elements to the driver in the driver-AP-SME case Support updating the RRM IEs to the driver for Probe Response and (Re)Association response frames in the AP mode when the SME is implemented in the driver. Signed-off-by: Chaoli Zhou --- diff --git a/src/ap/ap_drv_ops.c b/src/ap/ap_drv_ops.c index 2155b8f72..b9fd92024 100644 --- a/src/ap/ap_drv_ops.c +++ b/src/ap/ap_drv_ops.c @@ -75,6 +75,14 @@ int hostapd_build_ap_extra_ies(struct hostapd_data *hapd, *beacon_ret = *proberesp_ret = *assocresp_ret = NULL; +#ifdef NEED_AP_MLME + pos = buf; + pos = hostapd_eid_rm_enabled_capab(hapd, pos, sizeof(buf)); + if (add_buf_data(&assocresp, buf, pos - buf) < 0 || + add_buf_data(&proberesp, buf, pos - buf) < 0) + goto fail; +#endif /* NEED_AP_MLME */ + pos = buf; pos = hostapd_eid_time_adv(hapd, pos); if (add_buf_data(&beacon, buf, pos - buf) < 0)