Re: [PATCH wireless-next v4 10/21] wifi: nl80211/cfg80211: add support for querying SMD context for target AP MLD
From: Pooventhiran G
Date: Wed Nov 18 2026 - 09:19:09 EST
On 11/16/2026 04:50 pm, Johannes Berg wrote:
> On Sat, 2026-11-14 at 00:03 +0530, Pooventhiran G wrote:
>>
>> The netdev reference is held to prevent invalid accesses to wdev/dev while
>> reporting the context back to userspace as there are no locks in this path and
>> another core may be servicing a DEL_INTERFACE unsynchronized with this context
>> report. Since the collated context report comes from atomic contexts, we
>> wouldn't be able to take wiphy_lock.
>
> No, that's just not right. The driver provides a netdev (wdev)
> reference, so it's its job to not call nl80211_notify_get_smd_ctx_done()
> with a stale netdev/wdev, however it achieves that.
>
Understood. I will clean this up.
> The address is also already provided by the driver, and cfg80211 doesn't
> need to track anything.
>
The address was used to allow one request per STA at a time. But, as
suggested, I will let the drivers handle this to avoid the tracking.
> johannes