[LEDE-DEV] [PATCH v2] ramips: fix GL-inet GL-MT300N-V2 LAN MAC address

Koen Vandeputte koen.vandeputte at ncentric.com
Tue Mar 20 02:22:41 PDT 2018



On 2018-03-20 09:54, Kyson Lok wrote:
> Override the LAN MAC to use the same address as WAN.
> The stock firmware uses the same MAC address for all
> interfaces.
Besides blindly following the stock firmware behavior,
is there *any* advantage in doing this?
>
> Signed-off-by: Kyson Lok <kysonlok at gmail.com>
> ---
>   target/linux/ramips/base-files/etc/board.d/02_network | 1 +
>   1 file changed, 1 insertion(+)
>
> diff --git a/target/linux/ramips/base-files/etc/board.d/02_network b/target/linux/ramips/base-files/etc/board.d/02_network
> index 03f718e..c26d77f 100755
> --- a/target/linux/ramips/base-files/etc/board.d/02_network
> +++ b/target/linux/ramips/base-files/etc/board.d/02_network
> @@ -441,6 +441,7 @@ ramips_setup_macs()
>   		wan_mac=$(mtd_get_mac_ascii config WAN_MAC_ADDR)
>   		;;
>   	gl-mt300n-v2)
> +		lan_mac=$(mtd_get_mac_binary factory 4)
>   		wan_mac=$(mtd_get_mac_binary factory 4)
>   		;;
>   	hc5*61|\




More information about the Lede-dev mailing list