wifi: mac80211: fix monitor filter refcount leak

When bringing a monitor interface up and down again, the
refcount is leaked for active monitor interfaces, so the
hardware filter is never reset.

Move the decrement out so it mirrors the increment.

Signed-off-by: Devin Wittmayer <lucid_duck@justthetip.ca>
Link: https://patch.msgid.link/20260904202817.12564-1-lucid_duck@justthetip.ca
[rewrite commit message better]
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
This commit is contained in:
Devin Wittmayer 2026-09-04 13:28:17 -07:00 • committed by Johannes Berg
commit feb3a036d1