summaryrefslogtreecommitdiff
path: root/package/mac80211/patches/540-monitor_tx_status.patch
diff options
context:
space:
mode:
Diffstat (limited to 'package/mac80211/patches/540-monitor_tx_status.patch')
-rw-r--r--package/mac80211/patches/540-monitor_tx_status.patch14
1 files changed, 14 insertions, 0 deletions
diff --git a/package/mac80211/patches/540-monitor_tx_status.patch b/package/mac80211/patches/540-monitor_tx_status.patch
new file mode 100644
index 0000000..b2a35de
--- /dev/null
+++ b/package/mac80211/patches/540-monitor_tx_status.patch
@@ -0,0 +1,14 @@
+--- a/net/mac80211/main.c
++++ b/net/mac80211/main.c
+@@ -587,6 +587,11 @@ void ieee80211_tx_status(struct ieee8021
+ if (!netif_running(sdata->dev))
+ continue;
+
++ if ((sdata->u.mntr_flags & MONITOR_FLAG_COOK_FRAMES) &&
++ !(info->flags & IEEE80211_TX_CTL_INJECTED) &&
++ (type == IEEE80211_FTYPE_DATA))
++ continue;
++
+ if (prev_dev) {
+ skb2 = skb_clone(skb, GFP_ATOMIC);
+ if (skb2) {