summaryrefslogtreecommitdiff
path: root/patches/0071-skb-head_frag/wireless.patch
blob: 91a345fd0b5677587a1246a47c5abf76d93de864 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
--- a/net/wireless/util.c
+++ b/net/wireless/util.c
@@ -632,7 +632,11 @@ void ieee80211_amsdu_to_8023s(struct sk_
 	u8 *payload;
 	int offset = 0, remaining;
 	struct ethhdr eth;
+#if LINUX_VERSION_IS_LESS(3,5,0)
+	bool reuse_frag = 0;
+#else
 	bool reuse_frag = skb->head_frag && !skb_has_frag_list(skb);
+#endif
 	bool reuse_skb = false;
 	bool last = false;