ath79: use caldata patching for Archer C58/C59
authorDavid Bauer <mail@david-bauer.net>
Sun, 30 Dec 2018 21:28:42 +0000 (22:28 +0100)
committerMathias Kresin <dev@kresin.me>
Mon, 31 Dec 2018 12:28:31 +0000 (13:28 +0100)
With this commit the TP-Link Archer C58 and Archer C59 use caldata
patching in order to set the correct 5GHz MAC-address.

Tested on TP-Link Archer C59 v1.

For more details see commit 330965b.

Signed-off-by: David Bauer <mail@david-bauer.net>
target/linux/ath79/base-files/etc/hotplug.d/firmware/11-ath10k-caldata
target/linux/ath79/base-files/etc/hotplug.d/ieee80211/10_fix_wifi_mac

index 990c40c9343050d8cddde06ecedb134d3366a9b0..7fe19c0604bbdad2cb383e6e4444b74c423a72f5 100644 (file)
@@ -153,6 +153,7 @@ case "$FIRMWARE" in
        tplink,archer-c58-v1|\
        tplink,archer-c59-v1)
                ath10kcal_extract "art" 20480 12064
+               ath10kcal_patch_mac_crc $(macaddr_add $(mtd_get_mac_binary mac 8) -1)
                ln -sf /lib/firmware/ath10k/pre-cal-pci-0000\:00\:00.0.bin \
                        /lib/firmware/ath10k/QCA9888/hw2.0/board.bin
                ;;
index bb55b1c11c8a0343a4df287d6a553fb64ec42565..14d4f6b9d60411ed5fb7d63e34a005f68c18ad08 100644 (file)
@@ -24,10 +24,6 @@ case "$board" in
                [ "$PHYNBR" -eq 1 ] && \
                        echo $(k2t_get_mac "lan_mac") > /sys${DEVPATH}/macaddress
                ;;
-       tplink,archer-c58-v1|\
-       tplink,archer-c59-v1)
-               echo $(macaddr_add $(mtd_get_mac_binary mac 8)  $(($PHYNBR - 1)) ) > /sys${DEVPATH}/macaddress
-               ;;
        *)
                ;;
 esac