ath79/mikrotik: load caldata via sysfs loader
authorThibaut VARÈNE <hacks@slashdirt.org>
Sun, 19 Apr 2020 15:17:03 +0000 (17:17 +0200)
committerKoen Vandeputte <koen.vandeputte@ncentric.com>
Fri, 8 May 2020 13:17:17 +0000 (15:17 +0200)
commit9242d691ec847e20b68a2dcfca3ae3a7f6674be2
tree1208a5214d0b945d80ec06a8ab67b3b8ce6f725d
parent02a9d3d6a932cdf707f8bcf4555d095839ce8d24
ath79/mikrotik: load caldata via sysfs loader

This commit takes advantages of base-files 220 which introduces routines
to perform caldata loading directly via the kernel sysfs loader helper.
This has the benefits of not wasting flash space to store caldata.

Memory footprint is reduced to the bare minimum: for devices that don't
need MAC patching, the caldata is loaded directly, for devices that do
need MAC patching, the caldata is extracted to /tmp, patched and then
loaded.

Signed-off-by: Thibaut VARÈNE <hacks@slashdirt.org>
target/linux/ath79/mikrotik/base-files/etc/hotplug.d/firmware/10-ath9k-eeprom
target/linux/ath79/mikrotik/base-files/etc/hotplug.d/firmware/11-ath10k-caldata