mbox series

[OpenWrt-Devel,0/2] Make 02_network independent of WiFi setup (again)

Message ID 20191110233217.2656-1-freifunk@adrianschmutzler.de
Headers show
Series Make 02_network independent of WiFi setup (again) | expand

Message

Adrian Schmutzler Nov. 10, 2019, 11:32 p.m. UTC
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(-)