mirror of
https://github.com/coolsnowwolf/lede.git
synced 2025-04-15 18:03:30 +00:00

* 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>
31 lines
732 B
Diff
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);
|
|
}
|
|
}
|