ath79: read label MAC address from flash instead of using phy0/phy1
authorAdrian Schmutzler <freifunk@adrianschmutzler.de>
Sun, 10 Nov 2019 23:22:33 +0000 (00:22 +0100)
committerAdrian Schmutzler <freifunk@adrianschmutzler.de>
Wed, 13 Nov 2019 11:55:25 +0000 (12:55 +0100)
commitd421a8b9448968de0e3265f5beb469c210a909ab
treeefe7e2112da590cf0883271d830567ec4375aaa8
parentf4c3cfc620db16484fd85570c8215abc3b36dc82
ath79: read label MAC address from flash instead of using phy0/phy1

This replaces all uses of $(cat /sys/class/ieee80211/phyX/macaddress)
by retrieval from the proper flash locations. This will make
02_network independent of WiFi setup again.

For future reference:

The MAC addresses of the FRITZ!WLAN Repeater 300E can be extracted
from the urlader key value store:

maca        *:6B
macb        *:6C
macwlan     *:6D
macdsl      *:6E

and be set by e.g.
addr=$(fritz_tffs -n maca -i $(find_mtd_part "tffs (1)"))

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
target/linux/ath79/generic/base-files/etc/board.d/02_network