aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMathias Kresin <dev@kresin.me>2018-07-25 09:03:54 +0200
committerMathias Kresin <dev@kresin.me>2018-08-04 08:39:35 +0200
commit1d18a14a90c79ad56239a9fafe590427f1ae6aa5 (patch)
tree53edc46e9a34f8c59a0e9ebe6450ba5c83136dd9
parent68e2ebe64a0f27eb25c0e56ef1125ce1318e2279 (diff)
downloadupstream-1d18a14a90c79ad56239a9fafe590427f1ae6aa5.tar.gz
upstream-1d18a14a90c79ad56239a9fafe590427f1ae6aa5.tar.bz2
upstream-1d18a14a90c79ad56239a9fafe590427f1ae6aa5.zip
ath79: really fix TP-Link Archer C7 v2 MAC address
Revert 290c54473ead ("ath79: fix TP-Link Archer C7 v2 wlan1 MAC address") which obviously aims to have a distinct MAC address per interface. Unfortunally it doesn't match what is used by the stock firmware and we shouldn'z use MAC Adresses not reserverd for/assigned to a particular board. The correct MAC adress increments for this board are: wlan0 (5GHz) : -1 wlan1 (2.4GHz) : 0 eth1 (LAN) : 0 eth0 (WAN) : 1 Fixes: FS#408 Signed-off-by: Mathias Kresin <dev@kresin.me>
-rw-r--r--target/linux/ath79/base-files/etc/hotplug.d/firmware/11-ath10k-caldata2
-rw-r--r--target/linux/ath79/dts/qca9558_tl-archer-c7.dtsi1
2 files changed, 1 insertions, 2 deletions
diff --git a/target/linux/ath79/base-files/etc/hotplug.d/firmware/11-ath10k-caldata b/target/linux/ath79/base-files/etc/hotplug.d/firmware/11-ath10k-caldata
index 240a1bf1dd..562237f191 100644
--- a/target/linux/ath79/base-files/etc/hotplug.d/firmware/11-ath10k-caldata
+++ b/target/linux/ath79/base-files/etc/hotplug.d/firmware/11-ath10k-caldata
@@ -97,7 +97,7 @@ case "$FIRMWARE" in
;;
"tplink,tl-archer-c7-v2")
ath10kcal_extract "art" 20480 2116
- ath10kcal_patch_mac $(macaddr_add $(cat /sys/class/net/eth1/address) -2)
+ ath10kcal_patch_mac $(macaddr_add $(cat /sys/class/net/eth1/address) -1)
;;
"ubnt,unifiac-lite"|\
"ubnt,unifiac-mesh"|\
diff --git a/target/linux/ath79/dts/qca9558_tl-archer-c7.dtsi b/target/linux/ath79/dts/qca9558_tl-archer-c7.dtsi
index 546a5e33c3..6fb25a9d2e 100644
--- a/target/linux/ath79/dts/qca9558_tl-archer-c7.dtsi
+++ b/target/linux/ath79/dts/qca9558_tl-archer-c7.dtsi
@@ -190,5 +190,4 @@
status = "okay";
mtd-cal-data = <&art 0x1000>;
mtd-mac-address = <&uboot 0x1fc00>;
- mtd-mac-address-increment = <(-1)>;
};