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

Alexis Green agreen at cococorp.com
Wed Mar 23 15:55:10 EDT 2016


---
 .../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 --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);
-- 
2.1.0
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


More information about the openwrt-devel mailing list