local count=$3
local mtd
- . /lib/functions.sh
- . /lib/functions/system.sh
-
mtd=$(find_mtd_chardev $part)
[ -n "$mtd" ] || \
ath9k_eeprom_die "no mtd device found for partition $part"
local offset=$1
local mac
- . /lib/functions.sh
- . /lib/functions/system.sh
-
mac=$(mtd_get_mac_binary u-boot 326656)
mac=$(macaddr_add $mac $offset)
[ -e $FW_FILE ] && exit 0
-. /lib/mpc85xx.sh
+. /lib/functions.sh
+. /lib/functions/system.sh
-board=$(mpc85xx_board_name)
+board=$(board_name)
case "$FIRMWARE" in
"pci_wmac0.eeprom")
case $board in
- tl-wdr4900-v1)
+ tplink,tl-wdr4900-v1)
ath9k_eeprom_extract "caldata" 4096 2048
tpl_set_wireless_mac 0
;;
"pci_wmac1.eeprom")
case $board in
- tl-wdr4900-v1)
+ tplink,tl-wdr4900-v1)
ath9k_eeprom_extract "caldata" 20480 2048
tpl_set_wireless_mac -1
;;