[openwrt/openwrt] ath79: use correct firmware name for UniFi AP

LEDE Commits lede-commits at lists.infradead.org
Wed Nov 11 11:34:34 EST 2020


adrian pushed a commit to openwrt/openwrt.git, branch openwrt-19.07:
https://git.openwrt.org/ad3c2b97364d1fe2cad1e5483dfa7bcd6e40f0ff

commit ad3c2b97364d1fe2cad1e5483dfa7bcd6e40f0ff
Author: David Bauer <mail at david-bauer.net>
AuthorDate: Sat Oct 31 16:41:04 2020 +0100

    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 <martin at darmstadt.freifunk.net>
    Tested-by: Martin Weinelt <martin at darmstadt.freifunk.net>
    Signed-off-by: David Bauer <mail at david-bauer.net>
    (backported from commit 4c5eb1040f94871626f6a533242c3a9c068d5bb6)
    Signed-off-by: Adrian Schmutzler <freifunk at adrianschmutzler.de>
---
 .../linux/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



More information about the lede-commits mailing list