aboutsummaryrefslogtreecommitdiffstats
path: root/target
diff options
context:
space:
mode:
authorDavid Bauer <mail@david-bauer.net>2017-12-19 02:32:47 +0100
committerMathias Kresin <dev@kresin.me>2018-01-09 22:05:46 +0100
commitdaae09f1e510eaa22a1e628b12e6c70e3c9c450b (patch)
tree674b539b4274f768c765c955af91b618cd2ba4e7 /target
parenta657978fe7ff4cacc97c753961b75de547e5d5d9 (diff)
downloadupstream-daae09f1e510eaa22a1e628b12e6c70e3c9c450b.tar.gz
upstream-daae09f1e510eaa22a1e628b12e6c70e3c9c450b.tar.bz2
upstream-daae09f1e510eaa22a1e628b12e6c70e3c9c450b.zip
ar71xx: fix Archer C7v4 5GHz MAC-address
The TP-Link firmware uses (primary_mac-1) as MAC-address for the 5GHz WiFi. This applies the same behaviour to LEDE. Currently, the MAC-address is retrieved from eth1, which does not exist on the Archer C7 v4. As a result from this, every C7 v4 with LEDE carries the same MAC-Address on the 5GHz WiFi. Signed-off-by: David Bauer <mail@david-bauer.net>
Diffstat (limited to 'target')
-rw-r--r--target/linux/ar71xx/base-files/etc/hotplug.d/firmware/11-ath10k-caldata5
1 files changed, 4 insertions, 1 deletions
diff --git a/target/linux/ar71xx/base-files/etc/hotplug.d/firmware/11-ath10k-caldata b/target/linux/ar71xx/base-files/etc/hotplug.d/firmware/11-ath10k-caldata
index ec5f7a3e28..bc8972c2cd 100644
--- a/target/linux/ar71xx/base-files/etc/hotplug.d/firmware/11-ath10k-caldata
+++ b/target/linux/ar71xx/base-files/etc/hotplug.d/firmware/11-ath10k-caldata
@@ -54,12 +54,15 @@ case "$FIRMWARE" in
ath10kcal_extract "ART" 20480 2116
ath10kcal_patch_mac $(macaddr_add $(cat /sys/class/net/eth0/address) +16)
;;
- archer-c7-v4|\
archer-c25-v1|\
tl-wdr6500-v2)
ath10kcal_extract "art" 20480 2116
ath10kcal_patch_mac $(macaddr_add $(cat /sys/class/net/eth1/address) -2)
;;
+ archer-c7-v4)
+ ath10kcal_extract "art" 20480 2116
+ ath10kcal_patch_mac $(macaddr_add $(cat /sys/class/net/eth0/address) -1)
+ ;;
cf-e355ac|\
cf-e380ac-v1|\
cf-e380ac-v2|\