Skip to content

Commit abf078c

Browse files
committed
wifi: mac80211: restore monitor for outgoing frames
This code was accidentally dropped during the cooked monitor removal, but really should've been simplified instead. Add the simple version back. Fixes: 286e696 ("wifi: mac80211: Drop cooked monitor support") Link: https://patch.msgid.link/20250422213251.b3d65fd0f323.Id2a6901583f7af86bbe94deb355968b238f350c6@changeid Signed-off-by: Johannes Berg <[email protected]>
1 parent 491ef11 commit abf078c

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

net/mac80211/status.c

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1085,7 +1085,13 @@ static void __ieee80211_tx_status(struct ieee80211_hw *hw,
10851085

10861086
ieee80211_report_used_skb(local, skb, false, status->ack_hwtstamp);
10871087

1088-
if (status->free_list)
1088+
/*
1089+
* This is a bit racy but we can avoid a lot of work
1090+
* with this test...
1091+
*/
1092+
if (local->tx_mntrs)
1093+
ieee80211_tx_monitor(local, skb, retry_count, status);
1094+
else if (status->free_list)
10891095
list_add_tail(&skb->list, status->free_list);
10901096
else
10911097
dev_kfree_skb(skb);

0 commit comments

Comments
 (0)