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)
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|\
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|\
;;
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"