wifi: cfg80211/mac80211: report link ID for unexpected frames
authorMichael-CY Lee <michael-cy.lee@mediatek.com>
Mon, 21 Jul 2025 06:51:59 +0000 (14:51 +0800)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 21 Jul 2025 17:40:59 +0000 (19:40 +0200)
commit84b62b72b4c759b51568e44b0e8dc80f4cb8a2b9
tree9cd09a30c75acf48de343c28eb5eb9079dbfc2b2
parent4970e393eb5d1aed10119532abe36e07f27eec7f
wifi: cfg80211/mac80211: report link ID for unexpected frames

The upper layer may require the link ID to properly handle
unexpected frames. For instance, if hostapd, operating as an
AP MLD, receives a data frame from a non-associated STA,
it must send deauthentication to the link on which the STA is
operating.

Signed-off-by: Michael-CY Lee <michael-cy.lee@mediatek.com>
Reviewed-by: Money Wang <money.wang@mediatek.com>
Link: https://patch.msgid.link/20250721065159.1740992-1-michael-cy.lee@mediatek.com
[edit commit message]
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
include/net/cfg80211.h
net/mac80211/rx.c
net/wireless/nl80211.c
net/wireless/trace.h