diff mbox

[OpenWrt-Devel,2/2] mac80211: Ignore otp error if cal file is found - required for some QCA9980 devices

Message ID 1458762910-18919-3-git-send-email-agreen@cococorp.com
State Changes Requested
Headers show

Commit Message

Alexis Green March 23, 2016, 7:55 p.m. UTC
---
 .../mac80211/patches/941-ath10k-otp_ignore.patch       | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)
 create mode 100644 package/kernel/mac80211/patches/941-ath10k-otp_ignore.patch
diff mbox

Patch

diff --git a/package/kernel/mac80211/patches/941-ath10k-otp_ignore.patch b/package/kernel/mac80211/patches/941-ath10k-otp_ignore.patch
new file mode 100644
index 0000000..4d8fae2
--- /dev/null
+++ b/package/kernel/mac80211/patches/941-ath10k-otp_ignore.patch
@@ -0,0 +1,18 @@ 
+--- a/drivers/net/wireless/ath/ath10k/core.c
++++ b/drivers/net/wireless/ath/ath10k/core.c
+@@ -1800,9 +1800,13 @@ static int ath10k_core_probe_fw(struct a
+ 
+ 	ret = ath10k_core_get_board_id_from_otp(ar);
+ 	if (ret && ret != -EOPNOTSUPP) {
+-		ath10k_err(ar, "failed to get board id from otp: %d\n",
++		if (IS_ERR(ar->cal_file)) {
++			ath10k_err(ar, "failed to get board id from otp: %d\n",
+ 			   ret);
+-		return ret;
++			return ret;
++		}
++		ath10k_err(ar, "failed to get board id from otp (%d) but have cal\n",
++			   ret);
+ 	}
+ 
+ 	ret = ath10k_core_fetch_board_file(ar);