[openwrt/openwrt] ipq806x: fix broken WAN on Linksys EAX and Asrock G10

LEDE Commits lede-commits at lists.infradead.org
Sun Feb 2 16:55:15 PST 2025


ansuel pushed a commit to openwrt/openwrt.git, branch openwrt-24.10:
https://git.openwrt.org/cd747cb3aa6c276ce6d41326f3c2d24e45a30389

commit cd747cb3aa6c276ce6d41326f3c2d24e45a30389
Author: Christian Marangi <ansuelsmth at gmail.com>
AuthorDate: Mon Feb 3 01:48:39 2025 +0100

    ipq806x: fix broken WAN on Linksys EAX and Asrock G10
    
    Fix broken WAN on Linksys EAX and Asrock G10 by incrementing the WAN
    interface MAC address + 1. This caused conflicting entry in the FDB
    table and caused the WAN port to malfunction with the DSA conversion.
    
    Fixes: #17157
    Fixes: #15585
    Fixes: #16604
    Link: https://github.com/openwrt/openwrt/pull/17839
    Signed-off-by: Christian Marangi <ansuelsmth at gmail.com>
    (cherry picked from commit eba2fbf63814bbcf8c99c98177818476fca808a7)
---
 target/linux/ipq806x/base-files/etc/board.d/02_network | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/target/linux/ipq806x/base-files/etc/board.d/02_network b/target/linux/ipq806x/base-files/etc/board.d/02_network
index 77d47b8cd0..43ee5ccd14 100644
--- a/target/linux/ipq806x/base-files/etc/board.d/02_network
+++ b/target/linux/ipq806x/base-files/etc/board.d/02_network
@@ -81,12 +81,12 @@ ipq806x_setup_macs()
 		linksys,ea7500-v1)
 			hw_mac_addr=$(mtd_get_mac_ascii devinfo hw_mac_addr)
 			ucidef_set_interface_macaddr "lan" "$hw_mac_addr"
-			ucidef_set_interface_macaddr "wan" "$hw_mac_addr"
+			ucidef_set_interface_macaddr "wan" "$(macaddr_add $hw_mac_addr 1)"
 		;;
 		linksys,ea8500)
 			hw_mac_addr=$(mtd_get_mac_ascii devinfo hw_mac_addr)
 			ucidef_set_interface_macaddr "lan" "$hw_mac_addr"
-			ucidef_set_interface_macaddr "wan" "$hw_mac_addr"
+			ucidef_set_interface_macaddr "wan" "$(macaddr_add $hw_mac_addr 1)"
 		;;
 		linksys,e8350-v1 |\
 		zyxel,nbg6817)
@@ -98,7 +98,7 @@ ipq806x_setup_macs()
 			hw_mac_addr=$(mtd_get_mac_ascii hwconfig HW.LAN.MAC.Address)
 			ucidef_set_interface_macaddr "lan" "$hw_mac_addr"
 			hw_mac_addr=$(mtd_get_mac_ascii hwconfig HW.WAN.MAC.Address)
-			ucidef_set_interface_macaddr "wan" "$hw_mac_addr"
+			ucidef_set_interface_macaddr "wan" "$(macaddr_add $hw_mac_addr 1)"
 		;;
 	esac
 }




More information about the lede-commits mailing list