nexmon – Blame information for rev 1

Subversion Repositories:
Rev:
Rev Author Line No. Line
1 office 1 diff --git a/net/mac80211/tx.c b/net/mac80211/tx.c
2 index 345d6ff..20c604d 100644
3 --- a/net/mac80211/tx.c
4 +++ b/net/mac80211/tx.c
5 @@ -278,6 +278,15 @@ static ieee80211_tx_result
6 ieee80211_tx_h_sequence(struct ieee80211_tx_data *tx)
7 {
8 struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)tx->skb->data;
9 + struct ieee80211_tx_info *info = IEEE80211_SKB_CB(tx->skb);
10 +
11 + /*
12 + * don't touch sequence numbers on raw monitor interfaces
13 + */
14 + if (unlikely((info->flags & IEEE80211_TX_CTL_INJECTED) &&
15 + (tx->sdata->vif.type == IEEE80211_IF_TYPE_MNTR) &&
16 + !(tx->sdata->u.mntr_flags & MONITOR_FLAG_COOK_FRAMES)))
17 + return TX_CONTINUE;
18  
19 if (ieee80211_hdrlen(hdr->frame_control) >= 24)
20 ieee80211_include_sequence(tx->sdata, hdr);
21