0048-ar71xx-fix-Archer-C7-5GHz-MAC-address.patch 1.4 KB

123456789101112131415161718192021222324252627282930313233343536
  1. From: David Bauer <mail@david-bauer.net>
  2. Date: Tue, 19 Dec 2017 02:32:47 +0100
  3. Subject: ar71xx: fix Archer C7 5GHz MAC-address
  4. The TP-Link firmware uses (primary_mac-1) as MAC-address
  5. for the 5GHz WiFi. This applies the same behaviour to LEDE.
  6. Currently, the MAC-address is retrieved from eth1, which
  7. does not exist on the Archer C7 v4. As a result from this,
  8. every C7 v4 with LEDE carries the same MAC-Address on the 5GHz WiFi.
  9. Signed-off-by: David Bauer <mail@david-bauer.net>
  10. 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
  11. index 96b8f6b9a4bdd6a1609a819e72ade315bccfb3c0..607bbd2c0ec4b59ba569550e9e0e87b80c7ddddb 100644
  12. --- a/target/linux/ar71xx/base-files/etc/hotplug.d/firmware/11-ath10k-caldata
  13. +++ b/target/linux/ar71xx/base-files/etc/hotplug.d/firmware/11-ath10k-caldata
  14. @@ -47,6 +47,10 @@ board=$(ar71xx_board_name)
  15. case "$FIRMWARE" in
  16. "ath10k/cal-pci-0000:00:00.0.bin")
  17. case $board in
  18. + archer-c7-v4)
  19. + ath10kcal_extract "art" 20480 2116
  20. + ath10kcal_patch_mac $(macaddr_add $(cat /sys/class/net/eth0/address) -1)
  21. + ;;
  22. cf-e380ac-v1|\
  23. cf-e380ac-v2|\
  24. dlan-pro-1200-ac|\
  25. @@ -92,7 +96,6 @@ case "$FIRMWARE" in
  26. ath10kcal_extract "art" 20480 2116
  27. ath10kcal_patch_mac $(macaddr_add $(cat /sys/class/net/eth0/address) -2)
  28. ;;
  29. - archer-c7-v4|\
  30. archer-c25-v1|\
  31. tl-wdr6500-v2)
  32. ath10kcal_extract "art" 20480 2116