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:
Adrian Schmutzler
2019-10-14 14:02:40 +02:00
committed by David Bauer
parent 332b1f46e9
commit 48b5d08a48
5 changed files with 50 additions and 56 deletions

View File

@@ -121,13 +121,7 @@ ath9k_patch_mac_crc() {
caldata_patch_mac "$mac" "$mac_offset" "$chksum_offset"
}
ath10kcal_patch_mac() {
local mac=$1
caldata_patch_mac "$mac" 0x6
}
ath10kcal_patch_mac_crc() {
ath10k_patch_mac() {
local mac=$1
caldata_patch_mac "$mac" 0x6 0x2