[source] ramips: ArcherC50v1: fix wlan2g MAC address

LEDE Commits lede-commits at lists.infradead.org
Mon Aug 7 01:51:16 PDT 2017


mkresin pushed a commit to source.git, branch lede-17.01:
https://git.lede-project.org/982612dba26f042f8b9a524996b0774d3c8e747a

commit 982612dba26f042f8b9a524996b0774d3c8e747a
Author: Thibaut VARENE <hacks at slashdirt.org>
AuthorDate: Fri Aug 4 17:22:03 2017 +0200

    ramips: ArcherC50v1: fix wlan2g MAC address
    
    By default the wlan eprom contains the generic ralink MAC which is not
    the vendor (TP-Link) one. Based on OFW bootlog, it appears that addresses
    are decremented from the ethernet MAC.
    
    This patch fixes the MAC address for wlan2g in line with OFW.
    
    Signed-off-by: Thibaut VARENE <hacks at slashdirt.org>
---
 target/linux/ramips/dts/ArcherC50.dts | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/target/linux/ramips/dts/ArcherC50.dts b/target/linux/ramips/dts/ArcherC50.dts
index 7846180..465260b 100644
--- a/target/linux/ramips/dts/ArcherC50.dts
+++ b/target/linux/ramips/dts/ArcherC50.dts
@@ -169,6 +169,8 @@
 
 &wmac {
 	ralink,mtd-eeprom = <&radio 0>;
+	mtd-mac-address = <&rom 0xf100>;
+	mtd-mac-address-increment = <(-2)>;
 };
 
 &pcie {



More information about the lede-commits mailing list