summaryrefslogtreecommitdiff
path: root/patches/collateral-evolutions/network/12-mac80211-disable-tx-status/net_mac80211_tx.patch
blob: 5ddec1678e4e5d5f95f7c775d0df280db5eb85c9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
--- a/net/mac80211/tx.c
+++ b/net/mac80211/tx.c
@@ -2027,6 +2027,7 @@ netdev_tx_t ieee80211_subif_start_xmit(s
 		goto fail_rcu;
 	}
 
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,3,0))
 	if (unlikely(!multicast && skb->sk &&
 		     skb_shinfo(skb)->tx_flags & SKBTX_WIFI_STATUS)) {
 		struct sk_buff *orig_skb = skb;
@@ -2055,6 +2056,7 @@ netdev_tx_t ieee80211_subif_start_xmit(s
 			skb = orig_skb;
 		}
 	}
+#endif
 
 	/*
 	 * If the skb is shared we need to obtain our own copy.