[PATCH 82/97] PASN: Include extra IEs in reject frame

Andrei Otcheretianski andrei.otcheretianski at intel.com
Tue Apr 28 13:06:23 PDT 2026


From: Avraham Stern <avraham.stern at intel.com>

When rejecting a PASN authentication request, add the extra IEs to
the frame. This is needed for NAN pairing in which the second PASN
authentication frame shall include the NAN IE.

Signed-off-by: Avraham Stern <avraham.stern at intel.com>
---
 src/pasn/pasn_responder.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/pasn/pasn_responder.c b/src/pasn/pasn_responder.c
index f9c37070c6..2296cb96b9 100644
--- a/src/pasn/pasn_responder.c
+++ b/src/pasn/pasn_responder.c
@@ -606,8 +606,11 @@ int handle_auth_pasn_resp(struct pasn_data *pasn, const u8 *own_addr,
 
 		wpa_add_supported_groups(buf, groups);
 	}
-	if (status != WLAN_STATUS_SUCCESS)
+	if (status != WLAN_STATUS_SUCCESS) {
+		wpa_pasn_add_extra_ies(buf, pasn->extra_ies,
+				       pasn->extra_ies_len);
 		goto done;
+	}
 
 	if (pmksa && pasn->custom_pmkid_valid)
 		pmkid = pasn->custom_pmkid;
-- 
2.53.0




More information about the Hostap mailing list