treewide: use a single ath10k MAC patching function with checksum
authorAdrian Schmutzler <freifunk@adrianschmutzler.de>
Mon, 14 Oct 2019 12:02:40 +0000 (14:02 +0200)
committerDavid Bauer <mail@david-bauer.net>
Tue, 15 Oct 2019 16:13:54 +0000 (18:13 +0200)
commit48b5d08a483a29c4e654a08580fffe12559e41b7
treea68d56e076975d2651cd27da7712693f5f84e9be
parent332b1f46e9e8e35d8feaf5fdb43dd7427dc3f6f7
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>
package/base-files/files/lib/functions/caldata.sh
target/linux/ath79/base-files/etc/hotplug.d/firmware/11-ath10k-caldata
target/linux/ipq40xx/base-files/etc/hotplug.d/firmware/11-ath10k-caldata
target/linux/ipq806x/base-files/etc/hotplug.d/firmware/11-ath10k-caldata
target/linux/lantiq/base-files/etc/hotplug.d/firmware/11-ath10k-caldata