[PATCH] tests: Add test that fails the MLD association after hostapd success

Jouni Malinen j at w1.fi
Sun Jan 25 10:46:34 PST 2026


On Thu, Oct 30, 2025 at 08:15:12PM +0100, Benjamin Berg wrote:
> On Thu, 2025-10-30 at 18:56 +0100, Benjamin Berg wrote:
> > This test checks the flow where an error happens on the first
> > association attempt but everything looks fine from the perspective of
> > the AP. In this case, the AP will receive a second authentication even
> > though it thinks the client is already associated.
> > 
> > Currently this test triggers a segfault in hostapd.

> > +        with fail_test(wpas, 1, "denied-unspec:mlme_event_assoc"):
> 
> Ah, I changed that to be more specific in the last minute and didn't
> notice that it broke the test. The function name cannot be matched
> there (I expect it is inlined). That said, the tag is there, so one can
> just specify only "denied-unspec" to trigger the bug.

It's not that function name not being available, but incorrect separator
being used.. Replacing that colon with semicolon fixes that.

I fixed the hostapd issue in not clearing sta->wpa_sm appropriately for
this particular sequence and applied this patch after that.

-- 
Jouni Malinen                                            PGP id EFC895FA



More information about the Hostap mailing list