aboutsummaryrefslogtreecommitdiffstats
path: root/target
diff options
context:
space:
mode:
authorAdrian Schmutzler <freifunk@adrianschmutzler.de>2019-12-16 14:01:41 +0100
committerAdrian Schmutzler <freifunk@adrianschmutzler.de>2019-12-17 13:33:58 +0100
commit2708d58c1d7b9b224d02ee36f531fe24a2112360 (patch)
tree40f59930026b876ec8c7c59adc06d38236a330b9 /target
parentc79df949abd075b39bfcfc8839feb05f16930e78 (diff)
downloadupstream-2708d58c1d7b9b224d02ee36f531fe24a2112360.tar.gz
upstream-2708d58c1d7b9b224d02ee36f531fe24a2112360.tar.bz2
upstream-2708d58c1d7b9b224d02ee36f531fe24a2112360.zip
ramips: add label MAC address for Edimax RG21S
The Edimax RG21S has a label which bears two MAC addresses: 2.4 GHz (n) and 5 GHz (n+1) The complete MAC address setup is as follows: 2.4 GHz *:83 factory 0x4, u-boot-env wlanaddr 5 GHz *:84 factory 0x8004 LAN *:83 u-boot-env ethaddr WAN *:85 u-boot-env wanaddr Since 2.4 GHz is the first address on the label and the same as used for ethernet, take this one for label MAC address. Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
Diffstat (limited to 'target')
-rwxr-xr-xtarget/linux/ramips/mt7621/base-files/etc/board.d/02_network1
1 files changed, 1 insertions, 0 deletions
diff --git a/target/linux/ramips/mt7621/base-files/etc/board.d/02_network b/target/linux/ramips/mt7621/base-files/etc/board.d/02_network
index 5c6b5659cb..aad9a60bfe 100755
--- a/target/linux/ramips/mt7621/base-files/etc/board.d/02_network
+++ b/target/linux/ramips/mt7621/base-files/etc/board.d/02_network
@@ -201,6 +201,7 @@ ramips_setup_macs()
edimax,rg21s)
lan_mac=$(mtd_get_mac_ascii u-boot-env ethaddr)
wan_mac=$(mtd_get_mac_ascii u-boot-env wanaddr)
+ label_mac=$(mtd_get_mac_binary factory 0x4)
;;
hiwifi,hc5962)
lan_mac=$(mtd_get_mac_ascii bdinfo "Vfac_mac ")