Message ID | 20200909153700.2904977-2-bryan.odonoghue@linaro.org |
---|---|
State | Superseded |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a92:5b9c:0:0:0:0:0 with SMTP id c28csp524383ilg; Wed, 9 Sep 2020 08:36:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzwRC8a5Pnng14APMKj0THHagVliodXw/DGGQMYXUnFCe7HtLChkDQTlb3KOk2nF0Q5h0/g X-Received: by 2002:a92:6b0b:: with SMTP id g11mr3695502ilc.62.1599665778487; Wed, 09 Sep 2020 08:36:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599665778; cv=none; d=google.com; s=arc-20160816; b=H4NfZXsHCKK7R6bMZWOJgDIKBBbopbPBU02draO324rmygzSdYQLrGzBsD7FcYZF4V m2aFPfb7HWyJXKlEkt7mURfc2EP8x44NsyUrMiV1E33FFSXzjjobw+TbSxU4aAQE5TX4 jNAmwEHJ+qXXG0BNNHPviHvdNzUy5e9g6tbfssKWom5msHHoOlpffmefFOmULfj4M4PO lhFC/ugMrM6vb4Tqj3qEQ9jXGfTPi2PCvv2UAwA8ltPpuB0/omnILkc4kXrfKcFbBrU9 nBp2zoT1nNtD7VBNKfMZNbXCppO+6xFrn3HKLjh1NNLaHWefnPwUa5ALROBhYRPv236G 5Ogg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:cc:list-subscribe :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:mime-version:references:in-reply-to:message-id:date :subject:to:from:dkim-signature:dkim-signature; bh=flXNHQYuvE/kP9x2ix+60tIaj+7wI5SXY3ip5wDBkGM=; b=t6uRc2WjLQk2kwZJ52UDnqpYh2PaEnGNpgIxt0loaE73Qn4yVNzMXdxlR8ffzdm5QN /3WWbCGknDUVxYCl0QG4hKSSDAtXYj50OpXi1jxz0Ykjjn6kC1Mip+CI3mPlg/sC405/ placET0r50Od8RtoyACqbJgdYpMRcY3DqV/WwMxorruYuddnUtPxT5a6dInp7XSTRm1+ 8LlCSQeXC5BI+M0kUKM4XKIB565zXpests3fVMAO5PcjbBURp4Ki3zocsVTcyKS9iZUO fD1b78vFiG/cHIPth0lAF26CleuauAnu0tmBNEz+46l54rUVe0YW9skfTz4Ap1w4h/n9 XmKw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lists.infradead.org header.s=merlin.20170209 header.b=weVi8zBO; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=ryl0P748; spf=pass (google.com: best guess record for domain of wcn36xx-bounces+patch=linaro.org@lists.infradead.org designates 2001:8b0:10b:1231::1 as permitted sender) smtp.mailfrom="wcn36xx-bounces+patch=linaro.org@lists.infradead.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: <wcn36xx-bounces+patch=linaro.org@lists.infradead.org> Received: from merlin.infradead.org (merlin.infradead.org. [2001:8b0:10b:1231::1]) by mx.google.com with ESMTPS id d9si2692386iow.71.2020.09.09.08.36.18 for <patch@linaro.org> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Sep 2020 08:36:18 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of wcn36xx-bounces+patch=linaro.org@lists.infradead.org designates 2001:8b0:10b:1231::1 as permitted sender) client-ip=2001:8b0:10b:1231::1; Authentication-Results: mx.google.com; dkim=pass header.i=@lists.infradead.org header.s=merlin.20170209 header.b=weVi8zBO; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=ryl0P748; spf=pass (google.com: best guess record for domain of wcn36xx-bounces+patch=linaro.org@lists.infradead.org designates 2001:8b0:10b:1231::1 as permitted sender) smtp.mailfrom="wcn36xx-bounces+patch=linaro.org@lists.infradead.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=flXNHQYuvE/kP9x2ix+60tIaj+7wI5SXY3ip5wDBkGM=; b=weVi8zBOfn3NDHApKIsqotrm0 AGppr6JNXHAEhUGEY0EPlvtA6dLfvFYD3b58vpO0C2japBQ10VxHsghO+N4/KwC9+LKD7n/u4TBOf 7GbO3Og63Q59b8AaTeKH/ldv6OWwscI6sDFi3SHdmEEopjgsXpWQ2gJXs6aGs1fuwbpy4I25x3R0k mRWhXAOwxXPK9V8VliaSBRn/yQSUO+7eb18Cr/BQzzk2uXAG1NJ41IdDGSfEGiri0RBB9o1sQM+YB PLsKTBa40OAzZf55BmZVpGWVJpG9ITw5Txa9rMs38ad4pujp2c8UemAAuZ0N7royZeYgFrdvGhvsC DOJACINYQ==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kG28t-0006av-23; Wed, 09 Sep 2020 15:36:15 +0000 Received: from mail-wm1-x341.google.com ([2a00:1450:4864:20::341]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kG28r-0006Zs-A4 for wcn36xx@lists.infradead.org; Wed, 09 Sep 2020 15:36:14 +0000 Received: by mail-wm1-x341.google.com with SMTP id b79so2823074wmb.4 for <wcn36xx@lists.infradead.org>; Wed, 09 Sep 2020 08:36:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=yBk3qb6esZU21s8yt3ET2KrYd742m2TmS8YznjO4lK8=; b=ryl0P748MZ8rG9TDba0ufAdoBfzNc1lAOrSkQpNfJGTGL1xxNXSKZEu7krXwZiErCo yz65cPyF7XXpl87SBMs3J7aZJKCzF1kcQGM19d4DBEDoHtgPJXQtxg5U2l8uAg97dtli krj4Ib0VH/5fdgT4WutCYHLWeV37MbgWCG32IDsAgV4tVQMrX1+2wuv4cNhBuAG4mDmb Nq6WFCqeO7EPuP/15IhkvAWY1eF2XRicU5RhhI0W8SDCPbseS/6Xzv808rApiJqB0TCT ZctVhcFvf96HqEehmvm8ihygjR75Hfom6qrE6CKgiizx0QL5q+sdZkrVXBdZBpFYkz4L Hcbg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=yBk3qb6esZU21s8yt3ET2KrYd742m2TmS8YznjO4lK8=; b=rdCVY+zorEmv4O3yYyP19n4Ig9FChEjASXFra3N8UNLzvKxGRjstm6xyIb87T/Wgi/ vAVZ5vJnUUPB/rIHAahVQuyekPvumpPbOXc+zYds6U6iy3U+RIHp8EaH8U+VWCX1dg3I y/n3jlsZYupGoIIflBxFrNZkyD5T/vI/Qvn9RGiIodRKQC5773hvgxhrJw4zmU+RYmzN DRx/YHNoGIFyuz/Ox8OXa+yF6Wn79TB/7Bwr+HJAYu3xeOppwmoWkR7R2G7/EIMGW0jJ CtzjmajS0FomMGc6jdxuVq9qpUPVY4BxExuL3RuSMtToNL3gzEhxWuP9+qHayg2MgUOB vWCA== X-Gm-Message-State: AOAM5325KvlK2MxtnnCe1O9u40hDtoz5yr4FXgNH7XLiSKA0LADQFgc+ IcXKoNshJLsMpJ9B63XNu7a6QA== X-Received: by 2002:a1c:2903:: with SMTP id p3mr4281537wmp.170.1599665772328; Wed, 09 Sep 2020 08:36:12 -0700 (PDT) Received: from sagittarius-a.chello.ie (188-141-3-169.dynamic.upc.ie. [188.141.3.169]) by smtp.gmail.com with ESMTPSA id v204sm4619807wmg.20.2020.09.09.08.36.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Sep 2020 08:36:11 -0700 (PDT) From: Bryan O'Donoghue <bryan.odonoghue@linaro.org> To: kvalo@codeaurora.org, wcn36xx@lists.infradead.org, linux-wireless@vger.kernel.org Subject: [PATCH v4 1/5] wcn36xx: Add accessor macro HW_VALUE_CHANNEL for hardware channels Date: Wed, 9 Sep 2020 16:36:56 +0100 Message-Id: <20200909153700.2904977-2-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200909153700.2904977-1-bryan.odonoghue@linaro.org> References: <20200909153700.2904977-1-bryan.odonoghue@linaro.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200909_113613_367772_59B9B3C9 X-CRM114-Status: GOOD ( 11.54 ) X-Spam-Score: -0.2 (/) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (-0.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2a00:1450:4864:20:0:0:0:341 listed in] [list.dnswl.org] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature X-BeenThere: wcn36xx@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: <wcn36xx.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/wcn36xx>, <mailto:wcn36xx-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/wcn36xx/> List-Post: <mailto:wcn36xx@lists.infradead.org> List-Help: <mailto:wcn36xx-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/wcn36xx>, <mailto:wcn36xx-request@lists.infradead.org?subject=subscribe> Cc: bryan.odonoghue@linaro.org, shawn.guo@linaro.org, loic.poulain@linaro.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "wcn36xx" <wcn36xx-bounces@lists.infradead.org> Errors-To: wcn36xx-bounces+patch=linaro.org@lists.infradead.org |
Series |
wcn36xx: PHY modifications to support 80MHz operation
|
expand
|
diff --git a/drivers/net/wireless/ath/wcn36xx/wcn36xx.h b/drivers/net/wireless/ath/wcn36xx/wcn36xx.h index 2da81d9926c4..ebce1ed7adf7 100644 --- a/drivers/net/wireless/ath/wcn36xx/wcn36xx.h +++ b/drivers/net/wireless/ath/wcn36xx/wcn36xx.h @@ -83,7 +83,9 @@ enum wcn36xx_ampdu_state { WCN36XX_AMPDU_OPERATIONAL, }; -#define WCN36XX_HW_CHANNEL(__wcn) (__wcn->hw->conf.chandef.chan->hw_value) +#define HW_VALUE_CHANNEL(hw_value) ((hw_value) & 0xFF) +#define WCN36XX_HW_CHANNEL(__wcn)\ + HW_VALUE_CHANNEL(__wcn->hw->conf.chandef.chan->hw_value) #define WCN36XX_BAND(__wcn) (__wcn->hw->conf.chandef.chan->band) #define WCN36XX_CENTER_FREQ(__wcn) (__wcn->hw->conf.chandef.chan->center_freq) #define WCN36XX_LISTEN_INTERVAL(__wcn) (__wcn->hw->conf.listen_interval)
Adds HW_VALUE_CHANNEL(hw_value) an access macro that will be used to extract the channel number from struct ieee80211_channel->hw_value in preparation for also storing PHY settings for 802.11ac in the upper bits of hw_value. Signed-off-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org> --- drivers/net/wireless/ath/wcn36xx/wcn36xx.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) -- 2.27.0 _______________________________________________ wcn36xx mailing list wcn36xx@lists.infradead.org http://lists.infradead.org/mailman/listinfo/wcn36xx