ath79: fix chip used for Meraki MR12 caldata_extract
authorMartin Kennedy <hurricos@gmail.com>
Sat, 13 Feb 2021 05:38:52 +0000 (05:38 +0000)
committerAdrian Schmutzler <freifunk@adrianschmutzler.de>
Sat, 13 Feb 2021 20:21:01 +0000 (21:21 +0100)
The original setup fails to trigger ART calibration data
extraction for the AR9287. Instead, it would only have extracted
calibration data for an internal WMAC chip which is not present on
this board.

Fixes: 55d2db0e8ceb ("ath79: add support for Meraki MR12")
Signed-off-by: Martin Kennedy <hurricos@gmail.com>
[commit title/message facelift]
Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
target/linux/ath79/generic/base-files/etc/hotplug.d/firmware/10-ath9k-eeprom

index 2e520ac0678f5dc390d019edc1366ba529ea5b99..08d9e017a734e29c9b3be4c865e32f109847b4f5 100644 (file)
@@ -56,9 +56,6 @@ case "$FIRMWARE" in
                caldata_extract "calibrate" 0x1000 0x440
                ath9k_patch_mac $(mtd_get_mac_ascii u-boot-env0 RADIOADDR1)
                ;;
-       meraki,mr12)
-               caldata_extract "art" 0x11000 0xeb8
-               ;;
        nec,wg800hp)
                caldata_extract "art" 0x1000 0x440
                ath9k_patch_mac $(mtd_get_mac_text board_data 0x680)
@@ -108,6 +105,9 @@ case "$FIRMWARE" in
                caldata_extract "calibrate" 0x5000 0x440
                ath9k_patch_mac $(mtd_get_mac_ascii u-boot-env0 RADIOADDR0)
                ;;
+       meraki,mr12)
+               caldata_extract "art" 0x11000 0xeb8
+               ;;
        netgear,wnr2200-8m|\
        netgear,wnr2200-16m|\
        pcs,cap324|\