]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
AP: Handle (Re)Association Response frame if rsn_override_omit_rsnxe is set
authorSai Pratyusha Magam <quic_smagam@quicinc.com>
Fri, 15 Nov 2024 11:04:08 +0000 (16:34 +0530)
committerJouni Malinen <j@w1.fi>
Fri, 29 Nov 2024 20:19:56 +0000 (22:19 +0200)
When rsn_override_omit_rsnxe is set, exclude the RSNXE from the IE
template that is configured to the drivers that generate (Re)Association
Response frame internally. This was previously done only for the case of
hostapd generated (Re)Association Response frames.

Signed-off-by: Sai Pratyusha Magam <quic_smagam@quicinc.com>
src/ap/ap_drv_ops.c

index c41acd46358dce59feb2e6720af5908a91983989..65e83f468baa8bcf6b8245c10a1e4a01ea6bde22 100644 (file)
@@ -116,9 +116,11 @@ int hostapd_build_ap_extra_ies(struct hostapd_data *hapd,
                goto fail;
 #endif /* CONFIG_FILS */
 
-       pos = hostapd_eid_rsnxe(hapd, buf, sizeof(buf));
-       if (add_buf_data(&assocresp, buf, pos - buf) < 0)
-               goto fail;
+       if (!hapd->conf->rsn_override_omit_rsnxe) {
+               pos = hostapd_eid_rsnxe(hapd, buf, sizeof(buf));
+               if (add_buf_data(&assocresp, buf, pos - buf) < 0)
+                       goto fail;
+       }
 
        if (add_buf(&beacon, hapd->wps_beacon_ie) < 0 ||
            add_buf(&proberesp, hapd->wps_probe_resp_ie) < 0)