]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
wifi: mac80211: restore non-chanctx injection behaviour
authorJohannes Berg <johannes.berg@intel.com>
Tue, 16 Dec 2025 10:52:42 +0000 (11:52 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 17 Jan 2026 15:35:15 +0000 (16:35 +0100)
commitb97be67dc06ef480ba48c8194fa11697760f7f4a
treee1372d857e31ad9baecddbd2303b3672a4cbe437
parente3c35177103ead4658b8a62f41e3080d45885464
wifi: mac80211: restore non-chanctx injection behaviour

commit d594cc6f2c588810888df70c83a9654b6bc7942d upstream.

During the transition to use channel contexts throughout, the
ability to do injection while in monitor mode concurrent with
another interface was lost, since the (virtual) monitor won't
have a chanctx assigned in this scenario.

It's harder to fix drivers that actually transitioned to using
channel contexts themselves, such as mt76, but it's easy to do
those that are (still) just using the emulation. Do that.

Cc: stable@vger.kernel.org
Link: https://bugzilla.kernel.org/show_bug.cgi?id=218763
Reported-and-tested-by: Oscar Alfonso Diaz <oscar.alfonso.diaz@gmail.com>
Fixes: 0a44dfc07074 ("wifi: mac80211: simplify non-chanctx drivers")
Link: https://patch.msgid.link/20251216105242.18366-2-johannes@sipsolutions.net
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/mac80211/tx.c