From: Sai Pratyusha Magam Date: Fri, 15 Nov 2024 11:04:08 +0000 (+0530) Subject: AP: Handle (Re)Association Response frame if rsn_override_omit_rsnxe is set X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5e6119234cb21a2884de3752c7e0f8510a58d2e9;p=thirdparty%2Fhostap.git AP: Handle (Re)Association Response frame if rsn_override_omit_rsnxe is set 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 --- diff --git a/src/ap/ap_drv_ops.c b/src/ap/ap_drv_ops.c index c41acd463..65e83f468 100644 --- a/src/ap/ap_drv_ops.c +++ b/src/ap/ap_drv_ops.c @@ -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)