ipq40xx: fix AVM NAND caldata extraction
authorDavid Bauer <mail@david-bauer.net>
Mon, 12 Aug 2019 23:44:03 +0000 (01:44 +0200)
committerHauke Mehrtens <hauke@hauke-m.de>
Sun, 8 Sep 2019 15:42:39 +0000 (17:42 +0200)
commit271990321abee4c50802f87f32065ced0ce57764
tree0b8fd4630cc25caf3dfbc3e074652cc615498773
parent16985d2aabe3813955bd9dae99cca254198fdd55
ipq40xx: fix AVM NAND caldata extraction

The AVM Fritz!Box 7530 (and probably other AVM IPQ4019 NAND devices)
has it's caldata not stored consistently, but instead at currently
3 known possible offsets.

As we get a non-zero exit code from fritz_cal_extract, simply try all
three possible offsets on both bootloader partitions, until a matching
caldata for each radio is found.

Reported-by: Hauke Mehrtens <hauke@hauke-m.de>
Signed-off-by: David Bauer <mail@david-bauer.net>
(cherry picked from commit a6f85b81b7efd3fa3265d70e5406275b2dc03f5f)
target/linux/ipq40xx/base-files/etc/hotplug.d/firmware/11-ath10k-caldata