From patchwork Wed Sep 9 15:36:58 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: 249492 Delivered-To: patch@linaro.org Received: by 2002:a92:5b9c:0:0:0:0:0 with SMTP id c28csp524461ilg; Wed, 9 Sep 2020 08:36:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz8sAsWt/rVw4qrF5BKbbhAX4Jye2I/YdnlmbKo9crllkGCR2SJF7IcceWpwRUUuxfU62Bl X-Received: by 2002:a05:6602:2a43:: with SMTP id k3mr3736680iov.83.1599665782976; Wed, 09 Sep 2020 08:36:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599665782; cv=none; d=google.com; s=arc-20160816; b=bhUMzXRmpIOtYgRgv2VwgAZnboCvG70XMPteR6i3XK2Xo6ByRwY5eNoBzFbGvSpUGF 1LLHnew2JMjiZwT89zV6s0RyLi9sshuLoUN52VDFc82uKykHA/PRpB2zQHJQZ/NcKzXY AnzfI5fJMM7Et2i7RSTddvj3iSCFYbTnpcWN2+icuI/0Wd9O8lGkiGH9i/xJhV+LR430 wv/qrcQM1/4/zWxGqFW2W/+B0pwhFglA6wrH0NyPrbRaZCLzyfUnz95BpXyGDeRj8Y+4 du0ClTyRjDaPoM3AEZOdl2qHYI0WZP9yzZYQWDjN78UfBbuv8GPdOB8pLX5Eeg0J6/Pt ut8A== 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=MYhQfNDU5fuqhXxXHYAUai8yy8BbzVdbU7SCsVGIn9T9dntH4IV9H2foGeXU0QT5lu FsheSjChL2bPlbh71XX9nbLuHayPDwiMs/8Z79irLrb6HL83451j9hea24gGVC2fkTb3 1FeCxb3MzhFZKsDh+ViyR1VZEsaNfhF1+Wg8sWu6RTf/Jhtd454D4FNX1Yg5FPYpx0O1 V8QX/hCvaoyHj8TpMb3Hq80PO+R4V/oI4d9r11gChNT3Iq4YnHrQ1rBDrDSscvBGbWGH 4nJCsxHj4j0mEIGLfV4Cd19AjW/n+TpKPJtbHHsuL3+yrb0WtKcGF8gJNb8REVE5j0yT 8Gsg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lists.infradead.org header.s=merlin.20170209 header.b=VQtjOv90; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b="oh+Ig/0o"; 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 o7si2432260ilg.64.2020.09.09.08.36.22 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Sep 2020 08:36:22 -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=VQtjOv90; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b="oh+Ig/0o"; 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=VQtjOv909BkraxvFEF2OnwWcP 1C+jaoHodhp3AGrb3Ui7C3cw2OtPExWBwyIkiqF19qNnN3xDykS2JWDPWdleunls1OhAtxQCO2irH xRT7OYeoyRvAxrIdVOyp573oFZ9/n4tSUNOCA5ypcrk+ZDCors+BU9y4PtaBJIHnHVJt27uH4ZNGx nMvhNOcGVUo8i9jjmgJ1ie72utGXCpEmnQQFIAHbWZyAWXO4c6GvhtH3j1/KfAFHxxf59uPoO3w32 128oWi1Nek2O8XIuAFagq4dA3a4qNCJHtTMm/muzeyr/KZWcX+4TC7d6rR2+KdGVjU55NJNsxp3uJ eI7Jcov/g==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kG28y-0006dE-05; Wed, 09 Sep 2020 15:36:20 +0000 Received: from mail-wr1-x430.google.com ([2a00:1450:4864:20::430]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kG28v-0006am-It for wcn36xx@lists.infradead.org; Wed, 09 Sep 2020 15:36:18 +0000 Received: by mail-wr1-x430.google.com with SMTP id e16so3484735wrm.2 for ; Wed, 09 Sep 2020 08:36:15 -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=oh+Ig/0oFiVrEM89eAzw62FS/G8US3yu3On4UDMdTE3hqwEU6ecAmGjix+AJh3sP8X t/IgnZsBUsraKwC5ZKK074Ze43E62JZwAEXILk261HOdaDwpQC6Tj9yntg00lSnlx4fd hG/hsMuYK6POV5/dI6L59eDB/N04UlOJpH0lUeXd+clc57fxZWjshtvQ5sxoyxhAc7x/ 9cHA99QvaM6E0cYVj7JJBFRSOO65tnG+RMUB/lkngEVSpu34qXsem6h8gc07Zi3U41O7 zKMZiPH05F8gScmkmWP0mrvXC7WKyRAH2LTuLnwJeaDxqExHNWAS3crlmOfWQVqNgtgn NoZQ== 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=XkyetLdx8LIKMxuiJ3OZGAGD18ZppTN0DCvLvgL8C1I00NAzCeW878gzHDsNuyuoeS OgWoKkTLn3oJg2ST719cEqWnuSyD/pkxu/V3icGlmEbhOyJCFijCXxZk9hdAAQywARMK VJ284BfbVQf39mgjKktj9zGdCvAX5Scnbn0qaJcgF71c5jJb5ehkYfaU4qQawBC8DJtn UO50yGr9VQ0jkqNZQwvsIcpxg82fs4pIvPzzLfm1+uU2vbN6noHCHETSo+HaOS+xY1Qm 87bG014P8eoU5+SfdhkaTRxv2/m3m6q5AH7QsKu3OTYkWwicgvPFyviFDsGD1GhXQ9G/ Zpyg== X-Gm-Message-State: AOAM530tTRxlkVJlWpnaguepO3ELI49rYgkhpt2BolM50U5oHJA2WqDq Y5NkKbzpup+191Vll5fPbJNCUQ== X-Received: by 2002:a5d:610d:: with SMTP id v13mr4284377wrt.23.1599665774397; Wed, 09 Sep 2020 08:36:14 -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.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Sep 2020 08:36:13 -0700 (PDT) From: Bryan O'Donoghue To: kvalo@codeaurora.org, wcn36xx@lists.infradead.org, linux-wireless@vger.kernel.org Subject: [PATCH v4 3/5] wcn36xx: Add accessor macro HW_VALUE_PHY for PHY settings Date: Wed, 9 Sep 2020 16:36:58 +0100 Message-Id: <20200909153700.2904977-4-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_113617_655450_18BD7C6C X-CRM114-Status: GOOD ( 10.87 ) 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:430 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: 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)