File: mac80211_2.6.26-wl_frag.patch

package info (click to toggle)
aircrack-ng 1%3A1.6%2Bgit20210130.91820bc-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 19,056 kB
  • sloc: ansic: 67,045; cs: 5,392; sh: 3,773; python: 2,565; pascal: 1,074; asm: 570; makefile: 253; cpp: 46
file content (16 lines) | stat: -rw-r--r-- 602 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
diff --git a/net/mac80211/tx.c b/net/mac80211/tx.c
index 2b912cf..aaa086f 100644
--- a/net/mac80211/tx.c
+++ b/net/mac80211/tx.c
@@ -636,6 +636,11 @@ ieee80211_tx_h_sequence(struct ieee80211_tx_data *tx)
 	if (ieee80211_hdrlen(hdr->frame_control) < 24)
 		return TX_CONTINUE;
 
+	if (unlikely((info->flags & IEEE80211_TX_CTL_INJECTED) &&
+	   (tx->sdata->vif.type == IEEE80211_IF_TYPE_MNTR) &&
+	   !(tx->sdata->u.mntr_flags & MONITOR_FLAG_COOK_FRAMES)))
+		return TX_CONTINUE;
+
 	if (!ieee80211_is_data_qos(hdr->frame_control)) {
 		info->flags |= IEEE80211_TX_CTL_ASSIGN_SEQ;
 		return TX_CONTINUE;