From c35d7f3f8a81a1e256b238a47d391175da9e34b8 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Oever=20Gonz=C3=A1lez?= Date: Wed, 13 Feb 2019 18:13:07 -0600 Subject: [PATCH] ipq40xx: fix ipq40xx_setup_macs for Linksys EA6350v3 MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit This commit fixes the script that sets the MAC address of the LAN switch. The LAN MAC address should be the WAN MAC address plus one. Without this patch the WAN and the LAN interface will use the same MAC address and an error will be generated. With this patch all interfaces will have a different MAC address, consecutive in the following order: WAN, LAN, radio0 and radio1. Signed-off-by: Oever González --- target/linux/ipq40xx/base-files/etc/board.d/02_network | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target/linux/ipq40xx/base-files/etc/board.d/02_network b/target/linux/ipq40xx/base-files/etc/board.d/02_network index dffccd9fad2..43be592071d 100755 --- a/target/linux/ipq40xx/base-files/etc/board.d/02_network +++ b/target/linux/ipq40xx/base-files/etc/board.d/02_network @@ -65,7 +65,7 @@ ipq40xx_setup_macs() ;; linksys,ea6350v3) wan_mac=$(mtd_get_mac_ascii devinfo hw_mac_addr) - lan_mac=$(macaddr_add $(wan_mac) +1) + lan_mac=$(macaddr_add "$wan_mac" 1) ;; esac -- 2.30.2