wifi: mac80211: drop injection on disabled-chan monitor
authorJohannes Berg <johannes.berg@intel.com>
Tue, 6 Feb 2024 14:54:09 +0000 (16:54 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 12 Feb 2024 20:22:48 +0000 (21:22 +0100)
commit49c17da387bb069d802b9be538f0f07d08e1c2b8
tree153d2287ff91a201b295b064a96863781e6aabee
parenta110a3b79177ddd7e7295671df97fb5386406835
wifi: mac80211: drop injection on disabled-chan monitor

If the driver uses the new IEEE80211_CHAN_CAN_MONITOR, we
may monitor on channels that are, e.g. via regulatory,
otherwise considered disabled. However, we really shouldn't
transmit on them, so prevent that.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
Link: https://msgid.link/20240206164849.9c03dcf67dbe.Ib86a851c274c440908c663f6dd774b79bfc3965d@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/tx.c