ar71xx: fix swapped LAN/WAN MAC address for Archer C60 v1/v2
authorAdrian Schmutzler <freifunk@adrianschmutzler.de>
Wed, 11 Mar 2020 14:46:00 +0000 (15:46 +0100)
committerAdrian Schmutzler <freifunk@adrianschmutzler.de>
Wed, 11 Mar 2020 15:09:16 +0000 (16:09 +0100)
commit14eb54938b525d4c2d2847a6fad7670ed944650c
treef17e6fd5c8260d0b8fad7c2bfdc44201488e3d91
parent88aead0a665dd349af4fb8afcfe1a16cf90515ae
ar71xx: fix swapped LAN/WAN MAC address for Archer C60 v1/v2

The MAC addresses for lan/wan are swapped compared to the vendor
firmware. This adjusts to vendor configuration, which is:

lan   *:7b   label
wan   *:7c   label+1
2.4g  *:7b   label
5g    *:7a   label-1

Only one address is stored in <&mac 0x8>, corresponding to the label.

This has been checked on revisions v1, v2 and v3.

Since ar71xx calculates the ath10k MAC address based on the ethernet
addresses, the number there is adjusted, too.

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
target/linux/ar71xx/base-files/etc/hotplug.d/firmware/11-ath10k-caldata
target/linux/ar71xx/files/arch/mips/ath79/mach-archer-c60-v1.c