From patchwork Fri Sep 9 17:42:46 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Faltesek X-Patchwork-Id: 9324041 X-Patchwork-Delegate: kvalo@adurom.com Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 8619460231 for ; Fri, 9 Sep 2016 17:43:17 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 780B329DBA for ; Fri, 9 Sep 2016 17:43:17 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6C03029F4D; Fri, 9 Sep 2016 17:43:17 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, RCVD_IN_DNSWL_MED, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 0977929DBA for ; Fri, 9 Sep 2016 17:43:16 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1biPpX-000880-31; Fri, 09 Sep 2016 17:43:11 +0000 Received: from mail-oi0-x231.google.com ([2607:f8b0:4003:c06::231]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1biPpU-000855-Ei for ath10k@lists.infradead.org; Fri, 09 Sep 2016 17:43:09 +0000 Received: by mail-oi0-x231.google.com with SMTP id y2so155157815oie.0 for ; Fri, 09 Sep 2016 10:42:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=pYTL9qmmZw03NREAOOxltR/FpoaTLQY9Is2Dn/YDBl0=; b=HUxFIg48eVwn4GQACo62tvXf5lqPkNxirhXy8jhd+DdP/2O9X9qFC8ssP7How2CWD2 pT23yPZesdQGLXy431XR0f6YABfqpcp7YrUj2diV38VrgfjEu0nrxlwF35KQUYC83xhg femavWu4gXWDQ8e4vmwR2s0SmQbpbeo3m21N1OVLnblJ47cC7uoaJEOOy7prL4YjJBbJ /bgE6yC7BKRR56z9HfbBvU/GkfDx1uPlgDZjv95D5ldMQAORJWvar70RV+2sa6saw7Gd fr2sVN9THkWdpMcw+Tv7ps+qOyZIa+igiO8GJxERNZp65D+eYYwkp6OMmK2C5EHLBdzc tbeQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=pYTL9qmmZw03NREAOOxltR/FpoaTLQY9Is2Dn/YDBl0=; b=cyLmQYsJMMRWdRvkolUgD4wmQm9mOiII+6mcEpUYg7lWJxukz2vN7J7ZEtG725el2Z Cs+QAV1bYF7O1FNESYU7nsfFFK1ePGWu1V1UWrKClHRKAdq257pNFoaYTDeIKscpWfvi 4ewfi/wQ6fuAwiCL273EVQwiTl92SiHggLYLr9nupXdMOD1fjxth7GQoDC0RAYw+pSQH aN9ZJlfZQKPA/Z4LHkMVcf3Odh0bU9PHqgQ1WJbRhxiv0FSgHLYkFSlLJR741bI4kkMT mq4yVLvO8hjSTFF58CaTZCBejU73Qct9kI4lhaHM0yGwVm3ffswydU06G404YVWjZtwK ggsQ== X-Gm-Message-State: AE9vXwOmD30c8QPsXTNdVprOkYEhyCrQANfChnAg+OrI3Wq+UlM27ZlgVwsRme4rQTpyfR5LlVK5YcuVgcaBYr8q X-Received: by 10.202.53.132 with SMTP id c126mr7803019oia.3.1473442966718; Fri, 09 Sep 2016 10:42:46 -0700 (PDT) MIME-Version: 1.0 Received: by 10.202.108.143 with HTTP; Fri, 9 Sep 2016 10:42:46 -0700 (PDT) In-Reply-To: References: From: Marty Faltesek Date: Fri, 9 Sep 2016 13:42:46 -0400 Message-ID: Subject: Re: accessing ath10k calibration data To: Adrian Chadd , ath10k@lists.infradead.org X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160909_104308_606221_2A23B7DC X-CRM114-Status: GOOD ( 12.11 ) X-BeenThere: ath10k@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "ath10k" Errors-To: ath10k-bounces+patchwork-ath10k=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP It's blocked by the code below which I tried to ifdef out, but then it returns all 0's. > Hi, > > It's just in OTP? You should be able to read the OTP data without > needing a STA/AP up? > > > -a > > > On 9 September 2016 at 10:35, Marty Faltesek wrote: >> Is there a way to access calibration data without having to start an >> AP (or client)? >> >> Thanks, >> >> Marty >> >> _______________________________________________ >> ath10k mailing list >> ath10k@lists.infradead.org >> http://lists.infradead.org/mailman/listinfo/ath10k diff --git a/drivers/net/wireless/ath/ath10k/debug.c b/drivers/net/wireless/ath/ath10k/debug.c index 8b01e3e..bb8b7ec 100644 --- a/drivers/net/wireless/ath/ath10k/debug.c +++ b/drivers/net/wireless/ath/ath10k/debug.c @@ -1433,12 +1433,13 @@ static int ath10k_debug_cal_data_open(struct inode *inode, struct file *file) int ret; mutex_lock(&ar->conf_mutex); - +#if 0 if (ar->state != ATH10K_STATE_ON && ar->state != ATH10K_STATE_UTF) { ret = -ENETDOWN; goto err; } +#endif On Fri, Sep 9, 2016 at 1:39 PM, Adrian Chadd wrote: