[PATCH 7/7] AP: Include Supported Groups when rejecting the 802.1X group

Andrei Otcheretianski andrei.otcheretianski at intel.com
Tue Nov 24 06:30:28 PST 2026


From: Ilan Peer <ilan.peer at intel.com>

IEEE Std 802.11bi-2026, 12.16.8.3 requires the responder to include the
Supported Groups element when rejecting the group indicated by the
originator in IEEE 802.1X authentication utilizing Authentication
frames. This lets the STA retry with a supported group without
guessing, and the list is later confirmed by the MIC protected one in
the last Authentication frame.

Add the element to the rejection.

Signed-off-by: Ilan Peer <ilan.peer at intel.com>
Signed-off-by: Andrei Otcheretianski <andrei.otcheretianski at intel.com>
---
 src/ap/ieee802_11.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/src/ap/ieee802_11.c b/src/ap/ieee802_11.c
index 2f0323a7eb..ac5879fadf 100644
--- a/src/ap/ieee802_11.c
+++ b/src/ap/ieee802_11.c
@@ -3033,8 +3033,12 @@ prepare_802_1x_auth_resp(struct hostapd_data *hapd, struct sta_info *sta,
 	wpabuf_put_data(data, eap_req, eap_req_len);
 
 	if (status != WLAN_STATUS_SUCCESS &&
-	    status != WLAN_STATUS_802_1_X_AUTH_SUCCESS)
+	    status != WLAN_STATUS_802_1_X_AUTH_SUCCESS) {
+		/* Let the STA pick another group without guessing */
+		if (status == WLAN_STATUS_FINITE_CYCLIC_GROUP_NOT_SUPPORTED)
+			wpa_add_supported_groups(data, dot1x_auth_groups(hapd));
 		goto reply;
+	}
 
 	/* Authentication frames with transaction sequence greater than or
 	 * equal to 3 contain Authentication fields only.
-- 
2.56.1




More information about the Hostap mailing list