lede/package/kernel/mac80211/patches/subsys/701-mac80211-build-on-linux_4_14.patch
AmadeusGhost 075090c4d5
mac80211: support kernel 4.14 and update to 5.8 (#5303)
* mac80211: refresh patches

* mac80211: build compat on kernel 4.14

* mac80211: Update to version 5.8

The removed patches were applied upstream.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>

Co-authored-by: Chen Minqiang <ptpt52@gmail.com>
Co-authored-by: Hauke Mehrtens <hauke@hauke-m.de>
2020-08-11 23:37:22 +08:00

31 lines
732 B
Diff

diff --git a/net/mac80211/rx.c b/net/mac80211/rx.c
index bd5988e..df6bd18 100644
--- a/net/mac80211/rx.c
+++ b/net/mac80211/rx.c
@@ -4774,12 +4774,25 @@ void ieee80211_rx_napi(struct ieee80211_hw *hw, struct ieee80211_sta *pubsta,
rcu_read_unlock();
if (!napi) {
+#if LINUX_VERSION_IS_GEQ(4,19,0)
netif_receive_skb_list(&list);
+#else
+ list_for_each_entry_safe(skb, tmp, &list, list) {
+ __list_del_entry(&skb->list);
+ skb->next = NULL;
+ netif_receive_skb(skb);
+ }
+#endif
return;
}
list_for_each_entry_safe(skb, tmp, &list, list) {
+#if LINUX_VERSION_IS_GEQ(4,19,0)
skb_list_del_init(skb);
+#else
+ __list_del_entry(&skb->list);
+ skb->next = NULL;
+#endif
napi_gro_receive(napi, skb);
}
}