From patchwork Fri Dec 25 04:59:26 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Josh Bendavid X-Patchwork-Id: 560993 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 E16B5140C38 for ; Fri, 25 Dec 2015 16:00:18 +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=mBykFcaR; dkim-atps=neutral Received: from arrakis.dune.hu (localhost [127.0.0.1]) by arrakis.dune.hu (Postfix) with ESMTP id EEEE328BE99; Fri, 25 Dec 2015 05:59:33 +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 B729D28BE99 for ; Fri, 25 Dec 2015 05:59:26 +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-f179.google. - helo-domain: .google.) FROM/MX_MATCHES_HELO(DOMAIN)=-2; rate: -8.5 Received: from mail-qk0-f179.google.com (mail-qk0-f179.google.com [209.85.220.179]) by arrakis.dune.hu (Postfix) with ESMTPS for ; Fri, 25 Dec 2015 05:59:13 +0100 (CET) Received: by mail-qk0-f179.google.com with SMTP id q19so112581qke.3 for ; Thu, 24 Dec 2015 20:59:34 -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=vI+lq/7XXmK3VuUnSalBLuWV561xFxGgqOpDhD09ppE=; b=mBykFcaRR5BPbgpVSeStPwozHit1DwZaSExFCEElJtrns85p+/LfVOYfCL+iPTRcRj VW6b1v0V15XNwCkz0WjS81Q6CmN/vMharoeO1YNBUhb5FweKf9eWgdkAJFMUyFLwClxX OyOv0lCtQdvHDqxewL5cPM5xK+URYH4V0B3PHipgzhqEVu+I+q4rbb9zyzC00El1Zvpc lRUmYMZWxoq1ae7PwjJFwZlSDUGYiLmaue4VGu9s+U7cv2bmOF3LsH4uMK9Rt9+vnaAm ijzilYQxF1zM/GcD1I4RARXU9fbzXqvEt6YlhEsx7ZGLy9eAZSwzLjOxcXvC2E0JSpfY OQWw== X-Received: by 10.55.73.74 with SMTP id w71mr52604549qka.60.1451019573162; Thu, 24 Dec 2015 20:59:33 -0800 (PST) Received: from theMuleNotebook.localdomain (CPE40167ea25a60-CM0c473d351b40.cpe.net.cable.rogers.com. [99.237.152.150]) by smtp.gmail.com with ESMTPSA id 93sm16694596qgx.16.2015.12.24.20.59.32 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 24 Dec 2015 20:59:32 -0800 (PST) From: Josh Bendavid To: openwrt-devel@lists.openwrt.org Date: Fri, 25 Dec 2015 05:59:26 +0100 Message-Id: <1451019566-5727-1-git-send-email-joshbendavid@gmail.com> X-Mailer: git-send-email 2.6.4 Subject: [OpenWrt-Devel] [PATCH 3/3] ath10k: bypass otp check at 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 --- .../mac80211/patches/941-ath10k_skip_otp_check.patch | 15 +++++++++++++++ 1 file changed, 15 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..09cf82c --- /dev/null +++ b/package/kernel/mac80211/patches/941-ath10k_skip_otp_check.patch @@ -0,0 +1,15 @@ +diff -ur ../../old/compat-wireless-2015-12-03/drivers/net/wireless/ath/ath10k/core.c ./drivers/net/wireless/ath/ath10k/core.c +--- a/drivers/net/wireless/ath/ath10k/core.c 2015-12-06 23:36:07.696995166 +0100 ++++ b/drivers/net/wireless/ath/ath10k/core.c 2015-12-07 00:01:50.390388435 +0100 +@@ -1800,9 +1800,9 @@ + + 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; ++// return ret; + } + + ret = ath10k_core_fetch_board_file(ar);