aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThibaut VARENE <hacks@slashdirt.org>2017-08-04 17:22:03 +0200
committerMathias Kresin <dev@kresin.me>2017-08-06 09:31:05 +0200
commit982612dba26f042f8b9a524996b0774d3c8e747a (patch)
tree003476895e7836f4e1ca0bf58c96b9ce0aeb0c4d
parent48798af6d224ae5c2e567be5b4ff88283ab9c208 (diff)
downloadupstream-982612dba26f042f8b9a524996b0774d3c8e747a.tar.gz
upstream-982612dba26f042f8b9a524996b0774d3c8e747a.tar.bz2
upstream-982612dba26f042f8b9a524996b0774d3c8e747a.zip
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@slashdirt.org>
-rw-r--r--target/linux/ramips/dts/ArcherC50.dts2
1 files changed, 2 insertions, 0 deletions
diff --git a/target/linux/ramips/dts/ArcherC50.dts b/target/linux/ramips/dts/ArcherC50.dts
index 7846180b4b..465260b561 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 {