]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
wifi: mac80211: Add counter for all monitor interfaces
authorAlexander Wetzel <Alexander@wetzel-home.de>
Thu, 20 Feb 2025 09:41:39 +0000 (10:41 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 29 May 2025 09:13:49 +0000 (11:13 +0200)
commitd9ffacf89a1cbe68a6dabaa80b61dd939fe426ab
treedbe1e4e841253ede9fe50d87138854d3f99c8525
parent49984bc932990158c10a0187645180761b1e8c66
wifi: mac80211: Add counter for all monitor interfaces

[ Upstream commit 129860044c611008be37f49d04cf41874e3659e6 ]

Count open monitor interfaces regardless of the monitor interface type.
The new counter virt_monitors takes over counting interfaces depending
on the virtual monitor interface while monitors is used for all active
monitor interfaces.

This fixes monitor packet mirroring when using MONITOR_FLAG_ACTIVE or
NO_VIRTUAL_MONITOR interfaces.

Fixes: 286e69677065 ("wifi: mac80211: Drop cooked monitor support")
Reported-by: Karthikeyan Periyasamy <quic_periyasa@quicinc.com>
Closes: https://lore.kernel.org/r/cc715114-4e3b-619a-49dc-a4878075e1dc@quicinc.com
Signed-off-by: Alexander Wetzel <Alexander@wetzel-home.de>
Tested-by: Karthikeyan Periyasamy <quic_periyasa@quicinc.com>
Link: https://patch.msgid.link/20250220094139.61459-1-Alexander@wetzel-home.de
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/mac80211/cfg.c
net/mac80211/ethtool.c
net/mac80211/ieee80211_i.h
net/mac80211/iface.c
net/mac80211/util.c