diff options
Diffstat (limited to 'target/linux/ramips/patches/122-hwnat-build-error.patch')
-rwxr-xr-x | target/linux/ramips/patches/122-hwnat-build-error.patch | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/target/linux/ramips/patches/122-hwnat-build-error.patch b/target/linux/ramips/patches/122-hwnat-build-error.patch new file mode 100755 index 0000000..749d97e --- /dev/null +++ b/target/linux/ramips/patches/122-hwnat-build-error.patch @@ -0,0 +1,18 @@ +Index: linux-3.10.14/net/nat/hw_nat/foe_fdb.c +=================================================================== +--- linux-3.10.14.orig/net/nat/hw_nat/foe_fdb.c ++++ linux-3.10.14/net/nat/hw_nat/foe_fdb.c +@@ -565,8 +565,12 @@ int _FoeDropEntry(unsigned int entry_num + struct FoeEntry *entry; + + entry = &PpeFoeBase[entry_num]; +- ++ ++#if !defined (CONFIG_HNAT_V2) + entry->ipv4_hnapt.iblk2.dp = 7; ++#elif defined(CONFIG_ARCH_MT7623) || defined(CONFIG_RALINK_MT7621) ++ entry->ipv4_hnapt.iblk2.dp = 7; ++#endif + + #if defined (CONFIG_HNAT_V2) + PpeSetCacheEbl(); /*clear HWNAT cache*/ |