ar71xx: fix 5 GHz Wi-Fi on NBG6716
authorMatti Laakso <matti.laakso@outlook.com>
Sun, 14 Jan 2018 15:39:53 +0000 (17:39 +0200)
committerHauke Mehrtens <hauke@hauke-m.de>
Fri, 22 Jun 2018 20:15:52 +0000 (22:15 +0200)
commit71019a7605d5156fc1ade1265cae859241caccbe
treed5e91ae8f2855d55086e07c0feabce1465969d09
parentba5c0a1dea0cbbde277f189dcfd520a9062bfaac
ar71xx: fix 5 GHz Wi-Fi on NBG6716

Some NBG6716 do not have ath10k calibration data in flash, only in chip
OTP. To determine if flash has a valid calibration data, the first two
bytes telling the length of the calibration data are checked against the
requested length. If the lengths match, calibration data is valid and
read from flash.

Signed-off-by: Matti Laakso <matti.laakso@outlook.com>
target/linux/ar71xx/base-files/etc/hotplug.d/firmware/11-ath10k-caldata