Skip to content
Snippets Groups Projects
Commit a2fcaa77 authored by John Crispin's avatar John Crispin
Browse files

ar71xx: add mc-mac1200r to do_load_ath10k_board_bin()


This patch adds the mc-mac1200r target to do_load_ath10k_board_bin() in
target/linux/ar71xx/base-files/lib/preinit/81_load_ath10k_board_bin to load the
ath10k radio MAC address from the EEPROM in MERCURY MAC1200R devices

Signed-off-by: default avatarRoger Pueyo Centelles <roger.pueyo@guifi.net>

SVN-Revision: 44375
parent 69c160d8
No related branches found
No related tags found
No related merge requests found
...@@ -23,6 +23,17 @@ do_load_ath10k_board_bin() { ...@@ -23,6 +23,17 @@ do_load_ath10k_board_bin() {
dd if=/dev/mtdblock4 \ dd if=/dev/mtdblock4 \
bs=1 skip=20492 count=2104 >> /tmp/ath10k-board.bin bs=1 skip=20492 count=2104 >> /tmp/ath10k-board.bin
;; ;;
mc-mac1200r)
local mac
mac=$(macaddr_add $(cat /sys/class/net/eth1/address) -1)
dd if=/dev/mtdblock4 \
bs=1 skip=20480 count=6 \
of=/tmp/ath10k-board.bin
macaddr_2bin $mac >> /tmp/ath10k-board.bin
dd if=/dev/mtdblock4 \
bs=1 skip=20492 count=2104 >> /tmp/ath10k-board.bin
;;
r6100) r6100)
local mac local mac
mac=$(macaddr_add $(cat /sys/class/net/eth1/address) +2) mac=$(macaddr_add $(cat /sys/class/net/eth1/address) +2)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment