]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
nl80211: Make full (Re)Association Response frame available
authorJouni Malinen <jouni@qca.qualcomm.com>
Wed, 9 Sep 2015 14:32:56 +0000 (17:32 +0300)
committerJouni Malinen <j@w1.fi>
Sat, 22 Oct 2016 15:12:11 +0000 (18:12 +0300)
This is needed for FILS processing since AAD includes data before the
first element.

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
src/drivers/driver.h
src/drivers/driver_nl80211_event.c

index 8abb035d22da05593883d91325d870a4ee2e9c4a..7636acae7a1c7b566a8bed6b4141caa7c852ed61 100644 (file)
@@ -4189,6 +4189,16 @@ union wpa_event_data {
                 */
                size_t resp_ies_len;
 
+               /**
+                * resp_frame - (Re)Association Response frame
+                */
+               const u8 *resp_frame;
+
+               /**
+                * resp_frame_len - (Re)Association Response frame length
+                */
+               size_t resp_frame_len;
+
                /**
                 * beacon_ies - Beacon or Probe Response IEs
                 *
index 762e3acc2807904af8ce9d2d3335ea0ed3c1d089..dc7d5f142bc4d2c566beaa00ff92f4e1ee4c0b9f 100644 (file)
@@ -247,6 +247,8 @@ static void mlme_event_assoc(struct wpa_driver_nl80211_data *drv,
        os_memcpy(drv->prev_bssid, mgmt->sa, ETH_ALEN);
 
        os_memset(&event, 0, sizeof(event));
+       event.assoc_info.resp_frame = frame;
+       event.assoc_info.resp_frame_len = len;
        if (len > 24 + sizeof(mgmt->u.assoc_resp)) {
                event.assoc_info.resp_ies = (u8 *) mgmt->u.assoc_resp.variable;
                event.assoc_info.resp_ies_len =