[OpenWrt-Devel] [PATCH] bcm53xx: add support for Luxul FullMAC WiFi devices

Rafał Miłecki zajec5 at gmail.com
Tue Apr 7 09:30:26 EDT 2020


On 07.04.2020 01:14, Dan Haab wrote:
> @@ -87,20 +96,28 @@ bcm53xx_setup_macs()
>   	case "$board" in
>   	asus,rt-ac87u)
>   		etXmacaddr=$(nvram get et1macaddr)
> +		offset=1
>   		;;
>   	dlink,dir-885l | \
>   	netgear,r7900 | \
>   	netgear,r8000 | \
>   	netgear,r8500)
>   		etXmacaddr=$(nvram get et2macaddr)
> +		offset=1
> +		;;
> +	luxul,xwr-3100v1 | \
> +	luxul,xwr-3150-v1)
> +		etXmacaddr=$(nvram get et0macaddr)
> +		offset=5
>   		;;
>   	*)
>   		etXmacaddr=$(nvram get et0macaddr)
> +		offset=1
>   		;;
>   	esac

This seems like a bit of code duplication but nothing too scary at this
point I believe. We can refactor if if it gets worse. Thanks!

_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel



More information about the openwrt-devel mailing list