Re: [RFC PATCH v2 wireless-next 3/3] wifi: mac80211: Check link id at station removal

From: Johannes Berg
Date: Tue Jul 22 2025 - 08:30:00 EST


On Fri, 2025-07-11 at 12:03 +0200, Remi Pommarel wrote:
> hostapd can remove a non-MLD sta connected to one link of one MLD AP
> several times. If the sta roamed to another link of the same MLD AP
> between two of those removals the wrong sta_info could be removed.
>
> To fix that remove sta only if it is currently using the link specified
> in NL80211_CMD_DEL_STATION if they are any.

That also looks fine.

Would be nice if you could later contribute the hwsim test for it, since
it sounded like you had one :)

johannes