소스 검색

ipq40xx: fix ipq40xx_setup_macs for Linksys EA6350v3

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 <[email protected]>
Oever González 6 년 전
부모
커밋
c35d7f3f8a
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      target/linux/ipq40xx/base-files/etc/board.d/02_network

+ 1 - 1
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