[rdk-b][mt76][flowblocl][Fix disabled flowblock patch/build fail]
[Description]
Fix disabled flowblock patch/build fail
[Release-log]
N/A
diff --git a/recipes-wifi/linux-mac80211/linux-mac80211.bb b/recipes-wifi/linux-mac80211/linux-mac80211.bb
index dc4f026..e1d38d5 100644
--- a/recipes-wifi/linux-mac80211/linux-mac80211.bb
+++ b/recipes-wifi/linux-mac80211/linux-mac80211.bb
@@ -24,8 +24,8 @@
require files/patches/build/build.inc
require files/patches/subsys/subsys.inc
-SRC_URI_remove = "${@bb.utils.contains('DISTRO_FEATURES', 'flow_offload', '', 'file://908-mac80211-mtk-mask-kernel-version-limitation-and-fill-for.patch', d)}"
-SRC_URI_remove = "${@bb.utils.contains('DISTRO_FEATURES', 'flow_offload', '', 'file://909-mac80211-mtk-add-fill-receive-path-ops-to-get-wed-idx.patch', d)}"
+SRC_URI_remove = "${@bb.utils.contains('DISTRO_FEATURES', 'flow_offload', '', 'file://907-mac80211-mtk-mask-kernel-version-limitation-and-fill.patch', d)}"
+SRC_URI_remove = "${@bb.utils.contains('DISTRO_FEATURES', 'flow_offload', '', 'file://908-mac80211-mtk-add-fill-receive-path-ops-to-get-wed-id.patch', d)}"
S = "${WORKDIR}/backports-${PV}-1"
diff --git a/recipes-wifi/linux-mt76/files/0001-mt76-add-internal-wed_tiny-header-file.patch b/recipes-wifi/linux-mt76/files/0001-mt76-add-internal-wed_tiny-header-file.patch
index 0056540..7f0b3c8 100644
--- a/recipes-wifi/linux-mt76/files/0001-mt76-add-internal-wed_tiny-header-file.patch
+++ b/recipes-wifi/linux-mt76/files/0001-mt76-add-internal-wed_tiny-header-file.patch
@@ -33,7 +33,7 @@
index 00000000..91c98e7d
--- /dev/null
+++ b/wed_tiny.h
-@@ -0,0 +1,33 @@
+@@ -0,0 +1,41 @@
+#ifndef __WED_TINY_H
+#define __WED_TINY_H
+
@@ -53,6 +53,13 @@
+{
+ return false;
+}
++
++static inline bool
++mtk_wed_get_rx_capa(struct mtk_wed_device *dev)
++{
++ return false;
++}
++
+#define mtk_wed_device_detach(_dev) do {} while (0)
+#define mtk_wed_device_start(_dev, _mask) do {} while (0)
+#define mtk_wed_device_stop(_dev, _reset) do {} while (0)
@@ -64,9 +71,7 @@
+#define mtk_wed_device_irq_get(_dev, _mask) 0
+#define mtk_wed_device_irq_set_mask(_dev, _mask) do {} while (0)
+#define mtk_wed_device_dma_reset(_dev) do {} while (0)
-+#define mtk_wed_device_ppe_check(_dev, _hash) do {} while (0)
++#define mtk_wed_device_ppe_check(_dev, _skb, _reason, _hash) do {} while (0)
++#define mtk_wed_device_update_msg(_dev, _id, _msg, _len) -ENODEV
+
+#endif
---
-2.25.1
-