From ad3c2b97364d1fe2cad1e5483dfa7bcd6e40f0ff Mon Sep 17 00:00:00 2001 From: David Bauer Date: Sat, 31 Oct 2020 16:41:04 +0100 Subject: [PATCH] ath79: use correct firmware name for UniFi AP 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 Tested-by: Martin Weinelt Signed-off-by: David Bauer (backported from commit 4c5eb1040f94871626f6a533242c3a9c068d5bb6) Signed-off-by: Adrian Schmutzler --- .../ath79/base-files/etc/hotplug.d/firmware/10-ath9k-eeprom | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/target/linux/ath79/base-files/etc/hotplug.d/firmware/10-ath9k-eeprom b/target/linux/ath79/base-files/etc/hotplug.d/firmware/10-ath9k-eeprom index fd889e36bb..1bdbab79d6 100644 --- a/target/linux/ath79/base-files/etc/hotplug.d/firmware/10-ath9k-eeprom +++ b/target/linux/ath79/base-files/etc/hotplug.d/firmware/10-ath9k-eeprom @@ -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