aboutsummaryrefslogtreecommitdiffstats
path: root/package/base-files
diff options
context:
space:
mode:
authorAdrian Schmutzler <freifunk@adrianschmutzler.de>2019-10-14 14:02:40 +0200
committerDavid Bauer <mail@david-bauer.net>2019-10-15 18:13:54 +0200
commit48b5d08a483a29c4e654a08580fffe12559e41b7 (patch)
treea68d56e076975d2651cd27da7712693f5f84e9be /package/base-files
parent332b1f46e9e8e35d8feaf5fdb43dd7427dc3f6f7 (diff)
downloadupstream-48b5d08a483a29c4e654a08580fffe12559e41b7.tar.gz
upstream-48b5d08a483a29c4e654a08580fffe12559e41b7.tar.bz2
upstream-48b5d08a483a29c4e654a08580fffe12559e41b7.zip
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>
Diffstat (limited to 'package/base-files')
-rw-r--r--package/base-files/files/lib/functions/caldata.sh8
1 files changed, 1 insertions, 7 deletions
diff --git a/package/base-files/files/lib/functions/caldata.sh b/package/base-files/files/lib/functions/caldata.sh
index 004bcfa990..1ff69ce1ae 100644
--- a/package/base-files/files/lib/functions/caldata.sh
+++ b/package/base-files/files/lib/functions/caldata.sh
@@ -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