Browse Source

nl80211: Make full (Re)Association Response frame available

This is needed for FILS processing since AAD includes data before the
first element.

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
Jouni Malinen 9 years ago
parent
commit
5b092fb63f
2 changed files with 12 additions and 0 deletions
  1. 10 0
      src/drivers/driver.h
  2. 2 0
      src/drivers/driver_nl80211_event.c

+ 10 - 0
src/drivers/driver.h

@@ -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
 		 *

+ 2 - 0
src/drivers/driver_nl80211_event.c

@@ -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 =