mac80211: ath10k: search all IEs for variant before falling back
authorChristian Lamparter <chunkeey@gmail.com>
Thu, 1 Mar 2018 16:23:22 +0000 (17:23 +0100)
committerMathias Kresin <dev@kresin.me>
Wed, 14 Mar 2018 18:04:51 +0000 (19:04 +0100)
commite713b5ba6f28617e1db06fdaec6464d1ad7be4b4
treeb7bde2346a36c32bd0614b172d69b3488e6a335c
parent249a9b35e0937150e7557931bcdca8b95a6e274d
mac80211: ath10k: search all IEs for variant before falling back

This patch adds the patch that was posted to ath10k-devel ML:
<https://patchwork.kernel.org/patch/10233491/>
|From: Thomas Hebb <tommyhebb@gmail.com>
|Subject: [PATCH] ath10k: search all IEs for variant before falling back
|Date: Wed, 21 Feb 2018 11:43:39 -0500
|[...]
|This patch fixes the issue by first searching the entire file for the ID
|with variant, and searching for the fallback ID only if that search
|fails. It also includes some code cleanup in the area, as
|ath10k_core_fetch_board_data_api_n() no longer does its own string
|mangling to remove the variant from an ID, instead leaving that job to a
|new flag passed to ath10k_core_create_board_name().
|
|I've tested this patch on a QCA4019 and verified that the driver behaves
|correctly for 1) both fallback and variant BDFs present, 2) only fallback
|BDF present, and 3) no matching BDFs present.
|
|Fixes: 1657b8f84ed9 ("ath10k: search SMBIOS for OEM board file extension")
|Signed-off-by: Thomas Hebb <tommyhebb@gmail.com>

Note: 937-ath10k-calibration-variant.patch has been reassigned a new 081
number, as it now ships with upstream.... But also because this patch
requires the change in ath10k_core_create_board_name().

Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
package/kernel/mac80211/patches/081-ath10k-calibration-variant.patch [new file with mode: 0644]
package/kernel/mac80211/patches/160-ath10k-search-all-IEs-for-variant-before-falling-back.patch [new file with mode: 0644]
package/kernel/mac80211/patches/937-ath10k-calibration-variant.patch [deleted file]