[PATCH] EAPOL auth: Populate eap_type_authsrv when eap_server=1

Jouni Malinen j at w1.fi
Sun Nov 15 05:07:04 PST 2026


On Sat, Oct 03, 2026 at 11:12:06PM +1300, Karsten Sperling wrote:
> This field was previously only populated in the RADIUS passthrough code
> path in ieee802_1x_decapsulate_radius(). Moving the logic into
> eapol_auth_tx_req() means it covers both the RADIUS and internal EAP
> server paths.
> 
> This fixes the EAP type captured in the PMKSA cache and displayed in log
> messages (e.g. "IEEE 802.1X: authenticated - EAP type: 13" instead of
> 0), and avoids bogus "Supplicant used different EAP type" logs on EAP
> failure.
> 
> The call to eap_get_type() is now also guarded by a check for
> EAP_CODE_REQUEST, which avoids mis-counting an EAP_ERP_TYPE_REAUTH_START
> as an Identity Request in dot1xAuthEapolReqIdFramesTx.

Thanks, applied.
 
-- 
Jouni Malinen                                            PGP id EFC895FA



More information about the Hostap mailing list