[OpenWrt-Devel] [PATCH 0/2] Make 02_network independent of WiFi setup (again)
Adrian Schmutzler
freifunk at adrianschmutzler.de
Sun Nov 10 18:32:15 EST 2019
This removes the calls of $(cat /sys/class/ieee80211/phyX/macaddress)
introduced into 02_network to retrieve the label MAC address. Except
for a single case, the statements can just be replaced by the source
of the MAC address which is already used for setting up Wifi itself.
This will remove a blocker for starting board.json assembly earlier.
Despite, relying on the phyX MAC address here is effectively a
race condition. There are known cases at ipq40xx where the MAC
address couldn't be retrieved already with the current code base.
Adrian Schmutzler (2):
ramips: read label MAC address from flash instead of using phy0/phy1
ath79: read label MAC address from flash instead of using phy0/phy1
.../linux/ath79/generic/base-files/etc/board.d/02_network | 3 +--
.../linux/ramips/mt7620/base-files/etc/board.d/02_network | 6 +++---
.../linux/ramips/mt7621/base-files/etc/board.d/02_network | 8 ++++----
.../linux/ramips/mt76x8/base-files/etc/board.d/02_network | 4 ++--
.../linux/ramips/rt305x/base-files/etc/board.d/02_network | 7 +++++--
5 files changed, 15 insertions(+), 13 deletions(-)
--
2.20.1
_______________________________________________
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