[source] lantiq: fix patching the wifi mac address on BTHOMEHUBV3A
LEDE Commits
lede-commits at lists.infradead.org
Sun Feb 12 22:59:30 PST 2017
mkresin pushed a commit to source.git, branch master:
https://git.lede-project.org/70395ae8cbe0bc7d0d0b27b5088b9ac4b2f67f86
commit 70395ae8cbe0bc7d0d0b27b5088b9ac4b2f67f86
Author: Martin Blumenstingl <martin.blumenstingl at googlemail.com>
AuthorDate: Sun Feb 12 22:29:16 2017 +0000
lantiq: fix patching the wifi mac address on BTHOMEHUBV3A
The firmware hotplug script tries to read the mac address from a
partition with the name "uboot-env" which does not exist (instead it's
name is uboot_env). This broke calculation of the new checksum (after
patching the mac address) which resulted in ath9k refusing to use the
EEPROM data.
The original error reported by ath9k was:
PCI: Enabling device 0000:00:0e.0 (0000 -> 0002)
ath: phy0: Bad EEPROM checksum 0x2523
ath: phy0: Unable to initialize hardware; initialization status: -22
ath9k 0000:00:0e.0: Failed to initialize device
Fixes: a20616863d32d9 ("lantiq: use ath9k device tree bindings
binding/owl-loader")
Signed-off-by: Martin Blumenstingl <martin.blumenstingl at googlemail.com>
---
target/linux/lantiq/base-files/etc/hotplug.d/firmware/12-ath9k-eeprom | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/target/linux/lantiq/base-files/etc/hotplug.d/firmware/12-ath9k-eeprom b/target/linux/lantiq/base-files/etc/hotplug.d/firmware/12-ath9k-eeprom
index fa52dd5..1c6b066 100644
--- a/target/linux/lantiq/base-files/etc/hotplug.d/firmware/12-ath9k-eeprom
+++ b/target/linux/lantiq/base-files/etc/hotplug.d/firmware/12-ath9k-eeprom
@@ -129,7 +129,7 @@ case "$FIRMWARE" in
;;
BTHOMEHUBV3A)
ath9k_eeprom_extract "art-copy" 0 1
- ath9k_patch_fw_mac_crc $(macaddr_add $(mtd_get_mac_ascii uboot-env ethaddr) +2) 268
+ ath9k_patch_fw_mac_crc $(macaddr_add $(mtd_get_mac_ascii uboot_env ethaddr) +2) 268
;;
BTHOMEHUBV5A)
ath9k_ubi_eeprom_extract "caldata" 4096 0
More information about the lede-commits
mailing list