[][mac80211][wifi6][mt76][Update MT76 smp.sh and Makefile for Cheetah]
[Description]
Change MT76 smp.sh and Makefile for Cheetah.
[Release-log]
N/A
Change-Id: I5fa7fabec1d467439dd6294d897eaf673f1f649e
Reviewed-on: https://gerrit.mediatek.inc/c/openwrt/feeds/mtk_openwrt_feeds/+/8118209
diff --git a/autobuild_mac80211_release/0003-master-mt76-makefile-for-new-chip.patch b/autobuild_mac80211_release/0003-master-mt76-makefile-for-new-chip.patch
index 2cfa8fa..cd0a787 100644
--- a/autobuild_mac80211_release/0003-master-mt76-makefile-for-new-chip.patch
+++ b/autobuild_mac80211_release/0003-master-mt76-makefile-for-new-chip.patch
@@ -11,6 +11,15 @@
DEPENDS+=@PCI_SUPPORT +kmod-mt76-connac +kmod-hwmon-core +kmod-thermal +@DRIVER_11AX_SUPPORT +@KERNEL_RELAY
FILES:= $(PKG_BUILD_DIR)/mt7915/mt7915e.ko
AUTOLOAD:=$(call AutoProbe,mt7915e)
+@@ -247,7 +247,7 @@ endef
+
+ define KernelPackage/mt7981-firmware
+ $(KernelPackage/mt76-default)
+- DEPENDS:=@TARGET_mediatek_filogic
++ DEPENDS:=+@TARGET_mediatek_mt7981
+ TITLE:=MediaTek MT7981 firmware
+ endef
+
@@ -253,7 +253,7 @@ endef
define KernelPackage/mt7986-firmware
@@ -52,6 +61,17 @@
PKG_MAKE_FLAGS += CONFIG_MT798X_WMAC=y
NOSTDINC_FLAGS += -DCONFIG_MT798X_WMAC
endif
+@@ -436,6 +436,10 @@ ifdef CONFIG_PACKAGE_kmod-mt7915e
+ PKG_MAKE_FLAGS += CONFIG_MT798X_WMAC=y
+ NOSTDINC_FLAGS += -DCONFIG_MT798X_WMAC
+ endif
++ ifdef CONFIG_TARGET_mediatek_mt7981
++ PKG_MAKE_FLAGS += CONFIG_MT798X_WMAC=y
++ NOSTDINC_FLAGS += -DCONFIG_MT798X_WMAC
++ endif
+ endif
+ ifdef CONFIG_PACKAGE_kmod-mt792x-common
+ PKG_MAKE_FLAGS += CONFIG_MT792x_LIB=m
@@ -464,7 +469,8 @@ ifdef CONFIG_PACKAGE_kmod-mt7925e
endif
@@ -83,7 +103,7 @@
$(PKG_BUILD_DIR)/firmware/mt7981_wa.bin \
$(PKG_BUILD_DIR)/firmware/mt7981_wm.bin \
$(PKG_BUILD_DIR)/firmware/mt7981_rom_patch.bin \
-+ $(PKG_BUILD_DIR)/firmware/mt7981_eeprom.bin \
++ $(PKG_BUILD_DIR)/firmware/mt7981_eeprom_mt7976_dbdc.bin \
$(1)/lib/firmware/mediatek
+ifdef CONFIG_NET_MEDIATEK_SOC_WED
+ cp \
diff --git a/autobuild_mac80211_release/package/kernel/mt76/src/firmware/mt7981_eeprom.bin b/autobuild_mac80211_release/package/kernel/mt76/src/firmware/mt7981_eeprom_mt7976_dbdc.bin
similarity index 100%
rename from autobuild_mac80211_release/package/kernel/mt76/src/firmware/mt7981_eeprom.bin
rename to autobuild_mac80211_release/package/kernel/mt76/src/firmware/mt7981_eeprom_mt7976_dbdc.bin
Binary files differ
diff --git a/target/linux/mediatek/base-files/sbin/smp-mt76.sh b/target/linux/mediatek/base-files/sbin/smp-mt76.sh
index f383cf6..5b8710a 100755
--- a/target/linux/mediatek/base-files/sbin/smp-mt76.sh
+++ b/target/linux/mediatek/base-files/sbin/smp-mt76.sh
@@ -268,10 +268,34 @@
wifi1_irq=
wifi2_irq=
wifi3_irq=
+
#AX3000
- if [[ "$WIFI_RADIO1" -eq "1" ]]; then
- wifi1_irq=245
+ if [[ "$WED_ENABLE" -eq "1" ]]; then
+ dbg2 "WED_ENABLE ON irq/iptable setting"
+ #TCP Binding
+ iptables -D FORWARD -p tcp -m conntrack --ctstate \
+ RELATED,ESTABLISHED -j FLOWOFFLOAD --hw
+ iptables -I FORWARD -p tcp -m conntrack --ctstate \
+ RELATED,ESTABLISHED -j FLOWOFFLOAD --hw
+ ip6tables -D FORWARD -p tcp -m conntrack --ctstate \
+ RELATED,ESTABLISHED -j FLOWOFFLOAD --hw
+ ip6tables -I FORWARD -p tcp -m conntrack --ctstate \
+ RELATED,ESTABLISHED -j FLOWOFFLOAD --hw
+ #UDP Binding
+ iptables -D FORWARD -p udp -j FLOWOFFLOAD --hw
+ iptables -I FORWARD -p udp -j FLOWOFFLOAD --hw
+ ip6tables -D FORWARD -p udp -j FLOWOFFLOAD --hw
+ ip6tables -I FORWARD -p udp -j FLOWOFFLOAD --hw
+
+ if [[ "$WIFI_RADIO1" -eq "1" ]]; then
+ wifi1_irq=237
+ fi
+ else
+ if [[ "$WIFI_RADIO1" -eq "1" ]]; then
+ wifi1_irq=245
+ fi
fi
+
# Please update the CPU binding in each cases.
# CPU#_AFFINITY="add binding irq number here"
# CPU#_RPS="add binding interface name here"