From patchwork Fri Dec 25 18:08:04 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Josh Bendavid X-Patchwork-Id: 561047 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from arrakis.dune.hu (arrakis.dune.hu [78.24.191.176]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id A0E46140C5F for ; Sat, 26 Dec 2015 05:08:43 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b=ASnS6vME; dkim-atps=neutral Received: from arrakis.dune.hu (localhost [127.0.0.1]) by arrakis.dune.hu (Postfix) with ESMTP id 7119228AD9A; Fri, 25 Dec 2015 19:08:11 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on arrakis.dune.hu X-Spam-Level: X-Spam-Status: No, score=-1.5 required=5.0 tests=BAYES_00,FREEMAIL_FROM, T_DKIM_INVALID autolearn=unavailable version=3.3.2 Received: from arrakis.dune.hu (localhost [127.0.0.1]) by arrakis.dune.hu (Postfix) with ESMTP id 2412528BA8B for ; Fri, 25 Dec 2015 19:08:03 +0100 (CET) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 CL_IP_EQ_HELO_IP=-2 (check from: .gmail. - helo: .mail-qk0-f178.google. - helo-domain: .google.) FROM/MX_MATCHES_HELO(DOMAIN)=-2; rate: -8.5 Received: from mail-qk0-f178.google.com (mail-qk0-f178.google.com [209.85.220.178]) by arrakis.dune.hu (Postfix) with ESMTPS for ; Fri, 25 Dec 2015 19:07:58 +0100 (CET) Received: by mail-qk0-f178.google.com with SMTP id q19so3390227qke.3 for ; Fri, 25 Dec 2015 10:08:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=bBfF0NyQ8OyLcEZ1Scy/7prXvcrRwxFp3Xt7uzQ9EdY=; b=ASnS6vMEh4zXcwhOY4sIiTCfm6iwMz0Ao7ZXD44PtbiGMHB+DrK2imE82KWspVLdLt FBkjXfW97qzdBgUr7AqCv/gZJ9ExgYkdudYhZBT+EUX/72819UXdnSHtzoiA1+bLuqrw xtrfKNus7m6x30y+t6FUUuMF5jMpxj0sJBFcuoQzkyov0wHkTUNUAGYjaJeX8X6+p3q0 PQiV32+1ZPOm4Ry46ADelFK/O4Je7HUPjg1R2CWE3fUfWbeLlEbftZCF7+kmXoEavm0K pYOQ3EXPqLpyda4R/jIyaeAqtxFRAvJGlzt2h4qAKqXF7IotlkBTXbcFQHIxzBIRHfzw eWFw== X-Received: by 10.55.21.156 with SMTP id 28mr55834270qkv.7.1451066896906; Fri, 25 Dec 2015 10:08:16 -0800 (PST) Received: from theMuleNotebook.localdomain (CPE40167ea25a60-CM0c473d351b40.cpe.net.cable.rogers.com. [99.237.152.150]) by smtp.gmail.com with ESMTPSA id g63sm22293126qgd.5.2015.12.25.10.08.15 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 25 Dec 2015 10:08:15 -0800 (PST) From: Josh Bendavid To: openwrt-devel@lists.openwrt.org Date: Fri, 25 Dec 2015 19:08:04 +0100 Message-Id: <1451066884-8415-1-git-send-email-joshbendavid@gmail.com> X-Mailer: git-send-email 2.6.4 Subject: [OpenWrt-Devel] [PATCH] mac80211: bypass otp check in ath10k initialization (needed for TP-Link Archer C2600) X-BeenThere: openwrt-devel@lists.openwrt.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: OpenWrt Development List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: openwrt-devel-bounces@lists.openwrt.org Sender: "openwrt-devel" There is a patch added here to ath10k to bypass some checks on startup. I believe this is related to the calibration data being provided in external files (dumped from the ART mtd partition at init time) rather than directly from the pcie board. The patch and related discussion is from here: http://lists.infradead.org/pipermail/ath10k/2015-November/006489.html. This has also been discussed a bit further on the ath10k list here: http://lists.infradead.org/pipermail/ath10k/2015-December/006613.html. Signed-off-by: Josh Bendavid --- .../kernel/mac80211/patches/941-ath10k_skip_otp_check.patch | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 package/kernel/mac80211/patches/941-ath10k_skip_otp_check.patch diff --git a/package/kernel/mac80211/patches/941-ath10k_skip_otp_check.patch b/package/kernel/mac80211/patches/941-ath10k_skip_otp_check.patch new file mode 100644 index 0000000..ffe783d --- /dev/null +++ b/package/kernel/mac80211/patches/941-ath10k_skip_otp_check.patch @@ -0,0 +1,13 @@ +--- a/drivers/net/wireless/ath/ath10k/core.c ++++ b/drivers/net/wireless/ath/ath10k/core.c +@@ -1800,9 +1800,8 @@ + + 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", ++ ath10k_err(ar, "failed to get board id from otp: %d, ignoring\n", + ret); +- return ret; + } + + ret = ath10k_core_fetch_board_file(ar);