[PATCH v2] AP MLD: never keep a per-link wpa_sm
Jouni Malinen
j at w1.fi
Mon Sep 29 10:20:47 PDT 2025
On Mon, Jun 23, 2025 at 01:28:11PM +0200, Benjamin Berg wrote:
> The __checK_assoc_ies function needs to create a per-link wpa_sm
> temporarily. However, later on sta->wpa_sm should just be a reference to
> the main wpa_sm.
>
> Change the code so that the temporary state is self-contained to
> __check_assoc_ies. This fixes a memory leak should __check_assoc_ies
> return an error.
>
> Also change the function to pass the wpa_sm for the assoc_link instead
> of just a link boolean. The internal lookup appears to not have worked
> and this also simplifies the code.
Thanks, applied.
--
Jouni Malinen PGP id EFC895FA
More information about the Hostap
mailing list