ipq40xx: fix AVM NAND caldata extraction
authorDavid Bauer <mail@david-bauer.net>
Mon, 12 Aug 2019 23:44:03 +0000 (01:44 +0200)
committerDavid Bauer <mail@david-bauer.net>
Wed, 14 Aug 2019 22:33:12 +0000 (00:33 +0200)
commita6f85b81b7efd3fa3265d70e5406275b2dc03f5f
treeb8cbc3ff1db5d677278e8eaea4a676b73a89752b
parentc9dc0e1bdf9274581b588a82226c70a192a36556
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>
target/linux/ipq40xx/base-files/etc/hotplug.d/firmware/11-ath10k-caldata