projects
/
openwrt
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
treewide: move MAC address patch functions to common library
[openwrt/openwrt.git]
/
target
/
linux
/
mpc85xx
/
base-files
/
etc
/
hotplug.d
/
firmware
/
10-ath9k-eeprom
diff --git
a/target/linux/mpc85xx/base-files/etc/hotplug.d/firmware/10-ath9k-eeprom
b/target/linux/mpc85xx/base-files/etc/hotplug.d/firmware/10-ath9k-eeprom
index bcde02593a14830a944339363f5777538bc91477..be6ee40389b0d9f4a34cf5b4b548c34c58996b9b 100644
(file)
--- a/
target/linux/mpc85xx/base-files/etc/hotplug.d/firmware/10-ath9k-eeprom
+++ b/
target/linux/mpc85xx/base-files/etc/hotplug.d/firmware/10-ath9k-eeprom
@@
-4,17
+4,6
@@
. /lib/functions/caldata.sh
. /lib/functions/caldata.sh
-tpl_set_wireless_mac()
-{
- local offset=$1
- local mac
-
- mac=$(mtd_get_mac_binary u-boot 0x4fc00)
- mac=$(macaddr_add $mac $offset)
-
- macaddr_2bin $mac | dd bs=1 count=6 seek=2 conv=notrunc of=/lib/firmware/$FIRMWARE 2>/dev/null
-}
-
board=$(board_name)
case "$FIRMWARE" in
board=$(board_name)
case "$FIRMWARE" in
@@
-22,7
+11,7
@@
case "$FIRMWARE" in
case $board in
tplink,tl-wdr4900-v1)
caldata_extract "caldata" 0x1000 0x800
case $board in
tplink,tl-wdr4900-v1)
caldata_extract "caldata" 0x1000 0x800
- tpl_set_wireless_mac 0
+ ath9k_patch_mac $(mtd_get_mac_binary u-boot 0x4fc00)
;;
*)
caldata_die "board $board is not supported yet"
;;
*)
caldata_die "board $board is not supported yet"
@@
-34,7
+23,7
@@
case "$FIRMWARE" in
case $board in
tplink,tl-wdr4900-v1)
caldata_extract "caldata" 0x5000 0x800
case $board in
tplink,tl-wdr4900-v1)
caldata_extract "caldata" 0x5000 0x800
- tpl_set_wireless_mac -1
+ ath9k_patch_mac $(macaddr_add $(mtd_get_mac_binary u-boot 0x4fc00) -1)
;;
*)
caldata_die "board $board is not supported yet"
;;
*)
caldata_die "board $board is not supported yet"