summaryrefslogtreecommitdiff
path: root/target/linux/ramips/patches/109-support-wifi-nat-new-api.patch
diff options
context:
space:
mode:
authorLudovic Pouzenc <ludovic@pouzenc.fr>2018-09-14 23:42:26 +0200
committerLudovic Pouzenc <ludovic@pouzenc.fr>2018-09-14 23:42:26 +0200
commitb395e3b40e026a437b7179b78f1beddf2d02a7bc (patch)
treef3118474a7af11fffb228915dcffd7f2580d26ee /target/linux/ramips/patches/109-support-wifi-nat-new-api.patch
parente266de11dcd0b2d71c445b943bef2f50258fa314 (diff)
downloadmtk-20170518-b395e3b40e026a437b7179b78f1beddf2d02a7bc.zip
mtk-20170518-b395e3b40e026a437b7179b78f1beddf2d02a7bc.tar.gz
mtk-20170518-b395e3b40e026a437b7179b78f1beddf2d02a7bc.tar.bz2
target/linux/ramips: add all patches
Diffstat (limited to 'target/linux/ramips/patches/109-support-wifi-nat-new-api.patch')
-rwxr-xr-xtarget/linux/ramips/patches/109-support-wifi-nat-new-api.patch33
1 files changed, 33 insertions, 0 deletions
diff --git a/target/linux/ramips/patches/109-support-wifi-nat-new-api.patch b/target/linux/ramips/patches/109-support-wifi-nat-new-api.patch
new file mode 100755
index 0000000..010d52e
--- /dev/null
+++ b/target/linux/ramips/patches/109-support-wifi-nat-new-api.patch
@@ -0,0 +1,33 @@
+Index: linux-3.10.14/net/nat/hw_nat/Kconfig
+===================================================================
+--- linux-3.10.14.orig/net/nat/hw_nat/Kconfig
++++ linux-3.10.14/net/nat/hw_nat/Kconfig
+@@ -370,11 +370,10 @@ config PPE_MCAST
+ config RA_HW_NAT_WIFI
+ bool "WiFi Acceleration"
+ depends on RA_HW_NAT
+- select RA_HW_NAT_WIFI_NEW_ARCH if CHIP_MT7615E
+
+ config RA_HW_NAT_WIFI_NEW_ARCH
+ bool "WiFi Acceleration New Architecture"
+- depends on RA_HW_NAT_WIFI && CHIP_MT7615E
++ depends on RA_HW_NAT_WIFI
+
+ config RA_HW_NAT_NIC_USB
+ bool "PCIe Ethernet NIC/USB Acceleration"
+Index: linux-3.10.14/net/nat/hw_nat/ra_nat.c
+===================================================================
+--- linux-3.10.14.orig/net/nat/hw_nat/ra_nat.c
++++ linux-3.10.14/net/nat/hw_nat/ra_nat.c
+@@ -2089,9 +2089,11 @@ static void PpeSetInfoBlk2(struct _info_
+ iblk2->fpidx = fpidx;
+ #endif
+
++#if defined(CONFIG_ARCH_MT7623) || defined(CONFIG_RALINK_MT7621)
+ #if !defined (CONFIG_RAETH_QDMA)
+ iblk2->fqos = 0; /* PDMA MODE should not goes to QoS*/
+ #endif
++#endif
+
+ iblk2->port_mg = port_mg;
+ iblk2->port_ag = port_ag;