aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ar71xx/base-files/etc/hotplug.d/firmware/11-ath10k-caldata
diff options
context:
space:
mode:
authorAdrian Schmutzler <freifunk@adrianschmutzler.de>2019-11-13 15:05:29 +0100
committerAdrian Schmutzler <freifunk@adrianschmutzler.de>2019-11-13 15:12:32 +0100
commita021268032fb64afdce7bafa91c7c7bf44fa6ff2 (patch)
tree9726aa9d231eaa75ba21c78c0208ed455fa5d5d8 /target/linux/ar71xx/base-files/etc/hotplug.d/firmware/11-ath10k-caldata
parentd421a8b9448968de0e3265f5beb469c210a909ab (diff)
downloadupstream-a021268032fb64afdce7bafa91c7c7bf44fa6ff2.tar.gz
upstream-a021268032fb64afdce7bafa91c7c7bf44fa6ff2.tar.bz2
upstream-a021268032fb64afdce7bafa91c7c7bf44fa6ff2.zip
ar71xx: fix MAC addresses for Archer C5 v1, C7 v1/v2, WDR4900 v2
As discussed in 1d18a14a90c7 ("ath79: really fix TP-Link Archer C7 v2 MAC address"), stock firmware MAC address assignment is actually as follows: wlan0 (5GHz) : -1 wlan1 (2.4GHz) : 0 eth1 (LAN) : 0 eth0 (WAN) : 1 This has never been fixed for ar71xx, so let's do it now. Note that with WDR4900 v2 even both wlan0 and wlan1 where assigned to basemac-1 before ... Fixes: FS#408 Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
Diffstat (limited to 'target/linux/ar71xx/base-files/etc/hotplug.d/firmware/11-ath10k-caldata')
-rw-r--r--target/linux/ar71xx/base-files/etc/hotplug.d/firmware/11-ath10k-caldata2
1 files changed, 1 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 2ba8de4783..5170fa518f 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
@@ -143,7 +143,7 @@ case "$FIRMWARE" in
archer-c5|\
archer-c7)
ath10kcal_extract "art" 0x5000 0x844
- ath10kcal_patch_mac $(macaddr_add $(cat /sys/class/net/eth1/address) -2)
+ ath10kcal_patch_mac $(macaddr_add $(cat /sys/class/net/eth1/address) -1)
;;
nbg6616|\
nbg6716)