0fd68138322eef7a6d9652fadaf0420f34a18ad8
4 echo "ath9k eeprom: " "$*"
8 ath9k_eeprom_extract
() {
16 mtd
=$
(find_mtd_chardev
$part)
18 ath9k_eeprom_die
"no mtd device found for partition $part"
20 dd if=$mtd of
=/lib
/firmware
/$FIRMWARE bs
=1 skip
=$offset count
=$count 2>/dev
/null || \
21 ath9k_eeprom_die
"failed to extract from $mtd"
24 [ -e /lib
/firmware
/$FIRMWARE ] && exit 0
28 board
=$
(ar71xx_board_name
)
34 ath9k_eeprom_extract
"caldata" 4096 2048
37 ath9k_eeprom_die
"board $board is not supported yet"
45 ath9k_eeprom_extract
"caldata" 20480 2048
48 ath9k_eeprom_die
"board $board is not supported yet"