]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Configure RRM elements to the driver in the driver-AP-SME case
authorChaoli Zhou <quic_zchaoli@quicinc.com>
Tue, 30 Aug 2022 07:13:57 +0000 (15:13 +0800)
committerJouni Malinen <j@w1.fi>
Wed, 14 Sep 2022 18:32:23 +0000 (21:32 +0300)
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 <quic_zchaoli@quicinc.com>
src/ap/ap_drv_ops.c

index 2155b8f7287947974318ed9c9f4d22d8bdbcea86..b9fd920243a8b220db969722fd754efb89923584 100644 (file)
@@ -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)