Re: [PATCH wireless-next v4 10/21] wifi: nl80211/cfg80211: add support for querying SMD context for target AP MLD
From: Johannes Berg
Date: Mon Nov 16 2026 - 06:42:35 EST
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.
The address is also already provided by the driver, and cfg80211 doesn't
need to track anything.
johannes