In kernel < 3.5 the skb header can not be fragmented, because this feature is not implemented, so assume that head_frag is false. Signed-off-by: Hauke Mehrtens <hauke@xxxxxxxxxx> --- .../network/0071-skb-head_frag/wireless.patch | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 patches/collateral-evolutions/network/0071-skb-head_frag/wireless.patch diff --git a/patches/collateral-evolutions/network/0071-skb-head_frag/wireless.patch b/patches/collateral-evolutions/network/0071-skb-head_frag/wireless.patch new file mode 100644 index 0000000..d05cf53 --- /dev/null +++ b/patches/collateral-evolutions/network/0071-skb-head_frag/wireless.patch @@ -0,0 +1,16 @@ +diff --git a/net/wireless/util.c b/net/wireless/util.c +index 9f440a9..18ff313 100644 +--- a/net/wireless/util.c ++++ b/net/wireless/util.c +@@ -746,7 +746,11 @@ void ieee80211_amsdu_to_8023s(struct sk_ + u8 *payload; + int offset = 0, remaining, err; + struct ethhdr eth; ++#if LINUX_VERSION_CODE < KERNEL_VERSION(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; + -- 2.8.1 -- To unsubscribe from this list: send the line "unsubscribe backports" in