ar71xx: Fix offset to WMAC address for 8devices Lima
authorSven Eckelmann <sven@narfation.org>
Thu, 7 Jun 2018 08:57:06 +0000 (10:57 +0200)
committerJohn Crispin <john@phrozen.org>
Fri, 8 Jun 2018 07:39:14 +0000 (09:39 +0200)
commit4f6320704f7e37368a1dae2deba767a73b3bf121
tree626f50255a5bb43546de0fe55991759214a5d1f6
parentdaf19649dbf101ce7ae17abf84eeed7a30b41275
ar71xx: Fix offset to WMAC address for 8devices Lima

The ART partition of the Lima board stores exactly three mac addresses:

* 0x0: eth0
* 0x6: eth1
* 0x1002: wmac

The first two are correctly assigned in the mach file but the latter points
to 0x800. But this position is set to ff:ff:ff:ff:ff:ff. Luckily, the
driver falls back in ath9k_hw_init_macaddr to the EEPROM mac address when
it doesn't find a valid mac address in the platform_data.

Remove this bogus offset to the ART partition to directly load the wmac via
the EEPROM data in the ART partition.

Signed-off-by: Sven Eckelmann <sven@narfation.org>
target/linux/ar71xx/files/arch/mips/ath79/mach-lima.c