ath79: use correct firmware name for UniFi AP
authorDavid Bauer <mail@david-bauer.net>
Sat, 31 Oct 2020 15:41:04 +0000 (16:41 +0100)
committerAdrian Schmutzler <freifunk@adrianschmutzler.de>
Wed, 11 Nov 2020 16:32:25 +0000 (17:32 +0100)
The Ubiquiti UniFi AP does not have a AHB connected radio but a PCI one.
Also the EEPROM ist only 0x440 bytes of length.

Reported-by: Martin Weinelt <martin@darmstadt.freifunk.net>
Tested-by: Martin Weinelt <martin@darmstadt.freifunk.net>
Signed-off-by: David Bauer <mail@david-bauer.net>
(backported from commit 4c5eb1040f94871626f6a533242c3a9c068d5bb6)
Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
target/linux/ath79/base-files/etc/hotplug.d/firmware/10-ath9k-eeprom

index fd889e36bb158dfc293217a04e5e04aaf49a5d64..1bdbab79d6a69b850535568d9c82e33f018e4aa4 100644 (file)
@@ -148,7 +148,8 @@ case "$FIRMWARE" in
        tplink,tl-wr941-v4)
                ath9k_eeprom_extract "art" 4096 3768
                ;;
-       buffalo,wzr-hp-g450h)
+       buffalo,wzr-hp-g450h|\
+       ubnt,unifi)
                ath9k_eeprom_extract "art" 4096 1088
                ;;
        dlink,dir-825-c1|\
@@ -189,9 +190,6 @@ case "$FIRMWARE" in
        pqi,air-pen)
                ath9k_eeprom_extract "art" 4096 2002
                ;;
-       ubnt,unifi)
-               ath9k_eeprom_extract "art" 4096 2048
-               ;;
        wd,mynet-n750)
                ath9k_eeprom_extract "art" 20480 1088
                ath9k_patch_fw_mac $(mtd_get_mac_ascii devdata "wlan5mac") 2