diff options
author | Adrian Schmutzler <freifunk@adrianschmutzler.de> | 2019-09-18 17:11:06 +0200 |
---|---|---|
committer | Christian Lamparter <chunkeey@gmail.com> | 2019-09-22 00:17:51 +0200 |
commit | 0b9f3c28ef6c37b42abdd02c19c96fe34d81ea33 (patch) | |
tree | 66e417eab80ad3c81389229dfbb35d5636dcdd87 /target/linux/ath79/base-files/etc/hotplug.d/firmware/10-ath9k-eeprom | |
parent | 26c0bec13b718ca5a952a0f43b5017f6750c0be5 (diff) | |
download | upstream-0b9f3c28ef6c37b42abdd02c19c96fe34d81ea33.tar.gz upstream-0b9f3c28ef6c37b42abdd02c19c96fe34d81ea33.tar.bz2 upstream-0b9f3c28ef6c37b42abdd02c19c96fe34d81ea33.zip |
ath79: remove invalid uses of ath9k_patch_fw_mac_crc
Some ar9344-based devices are using ath9k_patch_fw_mac_crc, which
is meant to generate a checksum, for fixing their ath9k MAC
addresses.
However, those do not have a checksum field, and the calculated
checksum offset would be negative.
This patch will use ath9k_patch_fw_mac function for those devices.
Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
(cherry picked from commit f8d8b3f85d70a85d4fabc9b8ed4dbc8020be0523)
Diffstat (limited to 'target/linux/ath79/base-files/etc/hotplug.d/firmware/10-ath9k-eeprom')
-rw-r--r-- | target/linux/ath79/base-files/etc/hotplug.d/firmware/10-ath9k-eeprom | 6 |
1 files changed, 3 insertions, 3 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 5a20b84344..f2b1433448 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 @@ -103,7 +103,7 @@ case "$FIRMWARE" in dlink,dir-825-c1|\ dlink,dir-835-a1) ath9k_eeprom_extract "art" 4096 1088 - ath9k_patch_fw_mac_crc $(mtd_get_mac_text "mac" 4) 2 + ath9k_patch_fw_mac $(mtd_get_mac_text "mac" 4) 2 ;; dlink,dir-859-a1|\ nec,wg1200cr|\ @@ -149,7 +149,7 @@ case "$FIRMWARE" in dlink,dir-825-c1|\ dlink,dir-835-a1) ath9k_eeprom_extract "art" 20480 1088 - ath9k_patch_fw_mac_crc $(macaddr_add $(mtd_get_mac_text "mac" 24) 1) 2 + ath9k_patch_fw_mac $(macaddr_add $(mtd_get_mac_text "mac" 24) 1) 2 ;; ocedo,raccoon|\ tplink,tl-wdr3600-v1|\ @@ -188,7 +188,7 @@ case "$FIRMWARE" in ;; wd,mynet-wifi-rangeextender) ath9k_eeprom_extract "art" 4096 4096 - ath9k_patch_fw_mac_crc $(nvram get wl0_hwaddr) "$mac" 2 + ath9k_patch_fw_mac $(nvram get wl0_hwaddr) "$mac" 2 ;; *) ath9k_eeprom_die "board $board is not supported yet" |