mac80211: ath10k: allow failure getting board id via otp
authorHannu Nyman <hannu.nyman@iki.fi>
Thu, 23 Mar 2017 14:53:17 +0000 (16:53 +0200)
committerJohn Crispin <john@phrozen.org>
Tue, 28 Mar 2017 06:50:18 +0000 (08:50 +0200)
commitc69a89fe23a526ec3eef9c4e63eb672387e5177e
tree18f3719b0f66d5dc291332a9b563c0c18eb52fd6
parent0f4600c2752bd52cb7f377b0f8f1a301c35ac6dd
mac80211: ath10k: allow failure getting board id via otp

ath10k tries to fetch board id via otp, but that fails for many chips
like QCA988x, QCA9984 etc. Recent commit cc189c0b7f removed the earlier
hack that had allowed QCA radios to work, as that hack was incompatible
with the new wifi chips being introduced to the source tree.

Restore functionality for the existing wifi chips by modifying the
return value of the 'board id via otp' function to a value that is recognised
as a harmless error, so that name evaluation continues by using the board file.

Patch originally suggested by Christian Lamparter in forum discussion.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
package/kernel/mac80211/patches/936-ath10k-fix-otp-failure-result.patch [new file with mode: 0644]