[][mac80211][mt76][wed][sync wifi2wifi upstream patch]
[Description]
Fix patch error by sync wifi2wifi upstream patch
[Release-log]
N/A
Change-Id: Ibf80840e3a32c7367d2f49ff68a9710a0373f550
Reviewed-on: https://gerrit.mediatek.inc/c/openwrt/feeds/mtk_openwrt_feeds/+/7303832
diff --git a/autobuild_mac80211_release/package/kernel/mt76/patches/3007-mt76-mt7915-add-mt7915_net_setup_tc-to-support-wifi2.patch b/autobuild_mac80211_release/package/kernel/mt76/patches/3007-mt76-mt7915-wed-add-mt7915_net_setup_tc-to-support-w.patch
similarity index 62%
rename from autobuild_mac80211_release/package/kernel/mt76/patches/3007-mt76-mt7915-add-mt7915_net_setup_tc-to-support-wifi2.patch
rename to autobuild_mac80211_release/package/kernel/mt76/patches/3007-mt76-mt7915-wed-add-mt7915_net_setup_tc-to-support-w.patch
index bce65e6..f5f46f4 100644
--- a/autobuild_mac80211_release/package/kernel/mt76/patches/3007-mt76-mt7915-add-mt7915_net_setup_tc-to-support-wifi2.patch
+++ b/autobuild_mac80211_release/package/kernel/mt76/patches/3007-mt76-mt7915-wed-add-mt7915_net_setup_tc-to-support-w.patch
@@ -1,25 +1,27 @@
-From 38e99f5b8641c3b1c054244d3c74229a9c0a470e Mon Sep 17 00:00:00 2001
+From 1b23af3704c18c7c111992940fc94d2cdef3b830 Mon Sep 17 00:00:00 2001
From: Sujuan Chen <sujuan.chen@mediatek.com>
Date: Tue, 27 Dec 2022 09:45:14 +0800
-Subject: [PATCH 3007/3013] mt76: mt7915: add mt7915_net_setup_tc to support
+Subject: [PATCH] mt76: mt7915: wed: add mt7915_net_setup_tc to support
wifi2wifi offload
Signed-off-by: Sujuan Chen <sujuan.chen@mediatek.com>
---
- mt7915/main.c | 16 ++++++++++++++++
- 1 file changed, 16 insertions(+)
+ mt7915/main.c | 18 ++++++++++++++++++
+ 1 file changed, 18 insertions(+)
diff --git a/mt7915/main.c b/mt7915/main.c
-index c549a183..22d293e9 100644
+index 7e7f6073..146e3643 100644
--- a/mt7915/main.c
+++ b/mt7915/main.c
-@@ -1602,6 +1602,21 @@ mt7915_net_fill_receive_path(struct ieee80211_hw *hw,
+@@ -1604,6 +1604,23 @@ mt7915_net_fill_receive_path(struct ieee80211_hw *hw,
return 0;
}
+static int mt7915_net_setup_tc(struct ieee80211_hw *hw,
-+ struct net_device *ndev,
-+ int type, void *type_data)
++ struct ieee80211_vif *vif,
++ struct net_device *ndev,
++ enum tc_setup_type type,
++ void *type_data)
+{
+ struct mt7915_dev *dev = mt7915_hw_dev(hw);
+ struct mtk_wed_device *wed = &dev->mt76.mmio.wed;
@@ -35,7 +37,7 @@
#endif
const struct ieee80211_ops mt7915_ops = {
-@@ -1655,5 +1670,6 @@ const struct ieee80211_ops mt7915_ops = {
+@@ -1657,5 +1674,6 @@ const struct ieee80211_ops mt7915_ops = {
#ifdef CONFIG_NET_MEDIATEK_SOC_WED
.net_fill_forward_path = mt7915_net_fill_forward_path,
.net_fill_receive_path = mt7915_net_fill_receive_path,