From patchwork Tue Sep 8 18:25:12 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bryan O'Donoghue X-Patchwork-Id: 249334 Delivered-To: patch@linaro.org Received: by 2002:a92:5b9c:0:0:0:0:0 with SMTP id c28csp4791858ilg; Tue, 8 Sep 2020 11:24:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwc+JM3PNwGobyX06zdvh5pTlz8IBY5x0XgRjwpFhrRZMhcfeDPtXiUSFJ+yjd5sFG1lk+u X-Received: by 2002:a92:d188:: with SMTP id z8mr45034ilz.292.1599589478002; Tue, 08 Sep 2020 11:24:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599589477; cv=none; d=google.com; s=arc-20160816; b=A+UdXrU1cthaDusTFWgo3zP1gj8l5GwP9XOYGEW4s8bedLOh0CuAPsEjU2DzO3D20M tdgA2o75jcbvbjovdxktXm2EJe/XSlyj1dVcZEZAZOMAgYtTKQwCqasFsrDVHBaRPZLe IAVqEPV7z2/hBTih1LyPCdG95iohTikOSwdaTlr+x2MdmX1GULmJJXAtLjMHilaqCVKM q9nankAwtzApPMT9ohhEpl5Zm0ENI3khhZuE8ltKhZd7BPJMWKCkAvosPpbMM2029ddA xWil54rhU4JZ3G47/3q4tkbjOJFLNbxagr7szPFcTy/RQZGuY67Hz7s/49BB/hnTRTCK mRJA== 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=24BKZVtj12JRlleNm6PPRQzhJdaLhvOx7jvBAIsYZMo=; b=GH0Yb5duaN5h8uewYUViE019JEb9h//zc898kPWrMMgYIYYuguL337dwibWiUg0o91 7onlsodPbWrshk6OgkMPcXwRnt49nrcJ46HsS3gkdrX8JnE8uq8/aJBHxLAYJWpTDwSo TnWgHyqWZ1V1jpEsGItmN4bbe7Eggz/X2jjudWXw9mQBdiTQdNExxKnBfYnJ0H+pz0oe GjV9l93zENYz/5PiYW18VYvvSMEcvJn1AzKVTnGwO4QGrE7EvGs2a5pL+pRPLitZZ0Lx m8oTugM678jRRpnWyygPF01d/lXZD14BgmGvfGtWleCCPGwpKzZUoE1Q7DxcJTyJfjiT owZg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lists.infradead.org header.s=merlin.20170209 header.b=sNONaGjK; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b="sJ3q/QCw"; 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: Received: from merlin.infradead.org (merlin.infradead.org. [2001:8b0:10b:1231::1]) by mx.google.com with ESMTPS id l10si17206712jad.28.2020.09.08.11.24.37 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Sep 2020 11:24:37 -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=sNONaGjK; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b="sJ3q/QCw"; 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=24BKZVtj12JRlleNm6PPRQzhJdaLhvOx7jvBAIsYZMo=; b=sNONaGjKq7UT11JiZ2A8+x8d0 u6hUxM+k9eZu+l5zMEBWxB9QafxcmonIyUubyWW+a2Irgo3cSOGob+SRfa0oASyE5zTcXDcvT3Ayt mVdNnCe+AWLmiK969fCbyjpQcDtZxAbuO9GV8mjbWcZu9WF9cF5jJWDuuryV8ehzkNQ9cZNn0F4Pk Lspk7GoEcLdlTD5XlY3Gahn0tXovBwX2Zxq8yF+CjuQdwg+cPKmQJ82v/hXnS7XL2CPhZjgVNxCc1 rzoNDfXhLtIJG11ysI5v/pZvV2LDpQ68IRc5sFQiSjS8SRF4psgbYds0BRqbyh7hsGQpoXJRBQE1G 8nNWQUpBQ==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kFiIE-0005Ke-SK; Tue, 08 Sep 2020 18:24:34 +0000 Received: from mail-wm1-x32c.google.com ([2a00:1450:4864:20::32c]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kFiIC-0005Ib-PV for wcn36xx@lists.infradead.org; Tue, 08 Sep 2020 18:24:33 +0000 Received: by mail-wm1-x32c.google.com with SMTP id a9so310903wmm.2 for ; Tue, 08 Sep 2020 11:24:32 -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=gyyyc+eVVPBc5oNmWeDufnX8Vdj7EzlctFSImbJVqV4=; b=sJ3q/QCwIc5SBl90sX76a7rYUxHXmw/hI2OdDgqa5uMO6+nU0PVtWNBiGXjLUpnJRs 4DKButEsv7yhTfdhYOLclK/k1Z7zaFL+0dapLwIL36vAU9naeeQtEWstLCA6uHtJ8ADD Sm9csVq9dWl0ddjzV6ykuPGWVoSBHZFjHwStRBeAsZMjbwJQmO4w9hHS2qWTJgjnw3ka la6A6F010eJ6r+IWIk7vl1BUtg3+Wl1061az25RqR51HQdEQxRCgDaHex4CtgwkhTh76 Ba2W0NoiDL4Hyn22esZN7ZvoK2VuEYzUsgAOaiyE1bPJ1T3+3hCk+fwcVBQ2hJRAv0pi OVOA== 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=gyyyc+eVVPBc5oNmWeDufnX8Vdj7EzlctFSImbJVqV4=; b=rrgvf27H9X9PhGuELj5+bWE1yo3Jw6Y7bvlZ5TwcnTAijcL5wblv2Pd/7+6ZZ9Krdf wcrY3yfKOu9A9Mggz+LVrNeyduroy4A1fcNOqasGrolN/JoL89C0UiG0aG2QKHzfam8N W/hX0BrXpoWmNeJRN/PnOCQGhB39yWJqXQ2s392s3s5bi7dBOHt7J6sGufAxZ1XxCnga Ha2P95IPkk7E27L95UL2UpVZrakK8IYamY5iiRyRAZ0bwh6AQ1LcSlsWU0kufsoH6i1Z oEFELpQS8qlh3j2XEL2wsR6UeqpOoyIXj2U0fGnv9yciq+H9rjZZWiEBHtXJsJeDOLp2 YOSw== X-Gm-Message-State: AOAM532N4RS1iCWWuGsYSYKaURDOjLdzEA2aRbmv6q6bYVodoKKOGnDx Ug+wKVCoINlNDNZk4EysUXKHIQ== X-Received: by 2002:a1c:9ed8:: with SMTP id h207mr409361wme.116.1599589471144; Tue, 08 Sep 2020 11:24:31 -0700 (PDT) Received: from localhost.localdomain ([176.61.57.127]) by smtp.gmail.com with ESMTPSA id f14sm352447wrv.72.2020.09.08.11.24.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Sep 2020 11:24:30 -0700 (PDT) From: Bryan O'Donoghue To: kvalo@codeaurora.org, wcn36xx@lists.infradead.org, linux-wireless@vger.kernel.org Subject: [PATCH v3 3/5] wcn36xx: Add accessor macro HW_VALUE_PHY for PHY settings Date: Tue, 8 Sep 2020 19:25:12 +0100 Message-Id: <20200908182514.2870410-4-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200908182514.2870410-1-bryan.odonoghue@linaro.org> References: <20200908182514.2870410-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-20200908_142432_872400_13F504F1 X-CRM114-Status: GOOD ( 12.15 ) 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:32c 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 Message has at least one valid DKIM or DK signature -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 X-BeenThere: wcn36xx@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: bryan.odonoghue@linaro.org, shawn.guo@linaro.org, loic.poulain@linaro.org Sender: "wcn36xx" Errors-To: wcn36xx-bounces+patch=linaro.org@lists.infradead.org Adds HW_VALUE_PHY(hw_value) an access macro that will be used to extract a hardware specific PHY setting for a given channel. Signed-off-by: Bryan O'Donoghue --- drivers/net/wireless/ath/wcn36xx/wcn36xx.h | 2 ++ 1 file changed, 2 insertions(+) -- 2.27.0 _______________________________________________ wcn36xx mailing list wcn36xx@lists.infradead.org http://lists.infradead.org/mailman/listinfo/wcn36xx diff --git a/drivers/net/wireless/ath/wcn36xx/wcn36xx.h b/drivers/net/wireless/ath/wcn36xx/wcn36xx.h index ebce1ed7adf7..71fa9992b118 100644 --- a/drivers/net/wireless/ath/wcn36xx/wcn36xx.h +++ b/drivers/net/wireless/ath/wcn36xx/wcn36xx.h @@ -83,6 +83,8 @@ enum wcn36xx_ampdu_state { WCN36XX_AMPDU_OPERATIONAL, }; +#define HW_VALUE_PHY_SHIFT 8 +#define HW_VALUE_PHY(hw_value) ((hw_value) >> HW_VALUE_PHY_SHIFT) #define HW_VALUE_CHANNEL(hw_value) ((hw_value) & 0xFF) #define WCN36XX_HW_CHANNEL(__wcn)\ HW_VALUE_CHANNEL(__wcn->hw->conf.chandef.chan->hw_value)