| 1 |
diff --git a/net/mac80211/tx.c b/net/mac80211/tx.c |
| 2 |
index 2b912cf..aaa086f 100644 |
| 3 |
--- a/net/mac80211/tx.c |
| 4 |
+++ b/net/mac80211/tx.c |
| 5 |
@@ -636,6 +636,11 @@ ieee80211_tx_h_sequence(struct ieee80211_tx_data *tx) |
| 6 |
if (ieee80211_hdrlen(hdr->frame_control) < 24) |
| 7 |
return TX_CONTINUE; |
| 8 |
|
| 9 |
+ if (unlikely((info->flags & IEEE80211_TX_CTL_INJECTED) && |
| 10 |
+ (tx->sdata->vif.type == IEEE80211_IF_TYPE_MNTR) && |
| 11 |
+ !(tx->sdata->u.mntr_flags & MONITOR_FLAG_COOK_FRAMES))) |
| 12 |
+ return TX_CONTINUE; |
| 13 |
+ |
| 14 |
if (!ieee80211_is_data_qos(hdr->frame_control)) { |
| 15 |
info->flags |= IEEE80211_TX_CTL_ASSIGN_SEQ; |
| 16 |
return TX_CONTINUE; |