diff options
author | John Crispin <blogic@openwrt.org> | 2015-02-10 05:52:53 +0000 |
---|---|---|
committer | John Crispin <blogic@openwrt.org> | 2015-02-10 05:52:53 +0000 |
commit | 7ab21cefc337a91a736ac4d670e8b641ff061ef7 (patch) | |
tree | 9c520a34caa44c6a60ad709f6d5c4a9d1b55ca72 /target/linux/ar71xx | |
parent | 9b7ced4b3c5b98d8d7ec56fc7e6944853933bd8e (diff) | |
download | upstream-7ab21cefc337a91a736ac4d670e8b641ff061ef7.tar.gz upstream-7ab21cefc337a91a736ac4d670e8b641ff061ef7.tar.bz2 upstream-7ab21cefc337a91a736ac4d670e8b641ff061ef7.zip |
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: Roger Pueyo Centelles <roger.pueyo@guifi.net>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44375 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/ar71xx')
-rw-r--r-- | target/linux/ar71xx/base-files/lib/preinit/81_load_ath10k_board_bin | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/target/linux/ar71xx/base-files/lib/preinit/81_load_ath10k_board_bin b/target/linux/ar71xx/base-files/lib/preinit/81_load_ath10k_board_bin index 719082084b..9a32dfcd77 100644 --- a/target/linux/ar71xx/base-files/lib/preinit/81_load_ath10k_board_bin +++ b/target/linux/ar71xx/base-files/lib/preinit/81_load_ath10k_board_bin @@ -23,6 +23,17 @@ do_load_ath10k_board_bin() { dd if=/dev/mtdblock4 \ 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) local mac mac=$(macaddr_add $(cat /sys/class/net/eth1/address) +2) |