forked from Ivasoft/openwrt
treewide: use a single ath10k MAC patching function with checksum
While all ath10k eeproms have a checksum field, so far two functions for patching ath10k MAC address have been present (and been used). This merges code to provide a single function ath10k_patch_mac in caldata.sh, having its name in accordance with ath9k functions. By doing so, correct MAC patching for current and future ath10k devices should be ensured. This patch adds checksum adjustments for several targets on ath79 and lantiq. Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
This commit is contained in:
committed by
David Bauer
parent
332b1f46e9
commit
48b5d08a48
@@ -11,7 +11,7 @@ case "$FIRMWARE" in
|
||||
case $board in
|
||||
bt,homehub-v5a)
|
||||
caldata_extract_ubi "caldata" 0x5000 0x844
|
||||
ath10kcal_patch_mac $(macaddr_add $(mtd_get_mac_binary_ubi caldata 0x110c) +3)
|
||||
ath10k_patch_mac $(macaddr_add $(mtd_get_mac_binary_ubi caldata 0x110c) +3)
|
||||
;;
|
||||
*)
|
||||
caldata_die "board $board is not supported yet"
|
||||
|
||||
Reference in New Issue
Block a user