From patchwork Thu Sep 10 15:07:06 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: 249649 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:ecf:0:0:0:0 with SMTP id i15csp826576ilk; Thu, 10 Sep 2020 08:06:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxoM5Dr0ZTeAluHdM+LpynnV/YkoJzlOKY3QIwLjL/Sdj3EMeg+5kkKO0ymzGtwECU65boA X-Received: by 2002:a05:6602:2e0e:: with SMTP id o14mr8094845iow.111.1599750390057; Thu, 10 Sep 2020 08:06:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599750390; cv=none; d=google.com; s=arc-20160816; b=HuWeLTyMJICKoMTJLbcnAZNmHEMh2pydkKwPSsK82fGd1cdBtSz06Do1Xo0DkMsPSR Ftk8yCFTb021nYG3U0f1mc8a+x/qFWYG3kHVeqNnVp/Vxt7L3GsRTGYTt8yAHslQojE5 CphlynsK4f2R83OZIwTvGOUrlMHo31B221Teb7Q0CqrwuAh7ZE8S+Oxzy85KQFZ0ye2/ eZz7vZ7Ia4TT8jfUu/JONKb7y3ZG/KcEwFe3AoupO9AkwQ5M9wWTnzbcuo/tq6An1FPL Y+oOLFbfwgUhpi03XvZnIIqn5sBDAGfGHOp3wlaebPrCmBR/XJmWzj3g9Dyi4s4eW5vi M2Pg== 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=fVCAGkxZSGSFu0MY2vjVTkaOx0WCUixjY8MnmXTu1KD9en9/QmfnFriKl42cJv2Whl aOLTUEKI1wdGDDLDc3rXqae/1ihCkemRxo0hCLVgrZssZU+M1aTCg3uc/uxes4BsZtPR 8dd2nVJIPEB1Yxd9dSWQsS37/x5Oz4c2VCQd/CZlPKqrK/3s8+OCkSTZ+atTrRJgRGd9 akB7WwJBC3F0deks1aJaJ6Wopk9DPTRA0ycJmKKXzs/swhi3UYqw1A4xsSFk9IxQUSnO 2eSqRjJ3v5XYjizMzm03oXoK/s1sC7P6/nS9v3Jv6FfVMpVA3R9YIGZdaTIsguEf02NI BRZA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lists.infradead.org header.s=merlin.20170209 header.b=qGlzbAZS; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=o3eaOHXL; 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 i10si4035714jab.40.2020.09.10.08.06.29 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Sep 2020 08:06:30 -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=qGlzbAZS; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=o3eaOHXL; 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=qGlzbAZSj0PpYazitRj1OZwbi AZsseoOmY8AB6ukLp56jQNd4HVuwgSWDyjt14ddhfYdP/po8wDyeW71ZWlSql17XTxL5NZFfT5cwQ nIIyRsAx27cIXgkWP9dMcBogzzRzp7/H8PNCVwfvsugrWWslf3+xf87hryZG5L4Fge+NJK+E0IJ74 9CZJNGcFO/+XWJ5UMpgbKNKVBb1PYLM1jlLVN1Wv4VsQAPirC4pR2wjRSqTIh6oi4zVlljwVKMpzo CcQbsIaxTtXXhF3sfJrgqzDMKj4ZokC1SuvP6uEdK5kYjEvjNy3H4gGwY14myih71nWzDiIsCdMZQ AHMjBz3CA==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kGO9b-0007qV-2R; Thu, 10 Sep 2020 15:06:27 +0000 Received: from mail-wr1-x444.google.com ([2a00:1450:4864:20::444]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kGO9Y-0007od-Hs for wcn36xx@lists.infradead.org; Thu, 10 Sep 2020 15:06:25 +0000 Received: by mail-wr1-x444.google.com with SMTP id t10so7103487wrv.1 for ; Thu, 10 Sep 2020 08:06:24 -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=o3eaOHXLlTKZVJQusL0agAIXoJElOD7EcgoIE6ivOCT1Sun7E0GZt9W3fdTKMY8CzL PoguPeVbDKi8qqcvowUP3Ph/qoH3RlydHakEvdpyRXiMw4zO8YAUPsbEuesjxVdDez5D 81VxtJ8SeSzqJbsnhOr7YnakTET6/bpfWqScp8vb/nkC/VFxZ+Dtb3aeCcilgbQZTlr3 C41VGj92BKqJXAljTkRylPuBlI2vSb6mWbMVoDo8DgBRrHiQuHpfhtbsrygWDpTtC+vp pRbJ/eDqqckprTFJmkazUgNCA4hOWj97gfBO0vCQUUtSMCzsFjuPi/s3BFOBZoZ1M1A3 sAxQ== 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=p/gsvzA7UvIhCMR7ntju4BnxvdIeHqvAgtKt1Gu8Dd6GRysHpPkFt8etNeUi8jv3aQ AcbMDueJy3jifDYjnwErOW/9/4Px8ypG6A8J81iZq87niEXUUvPULya1h1RjswvRteDe oqYln8KrtqTGY2zoNq5IDU+r6ehSTIyZqmzT9cQu8WzcRcnVoIEy/oMxqCIDKVkaDP45 qIKWSxrdeYFeCNWDsb7ZafbZAy542zKZ+VAwA4drG0yZWBaIkrtPaq+QERmPdmdOIWe9 M1C5Lflezdz9rfQ33HrDH/HTlwfAmr7hs+QDEFKPkB3kMj1mniboYxJNapdi1IFZeZ8m Fhvw== X-Gm-Message-State: AOAM532D1UvC+3zF4XUmXuiG6S9gCDgvfvArWMKlvlqexLIP3dFHrrhl Gdue0EOrIswfNnsEgxmwQ7douQ== X-Received: by 2002:a5d:4d8f:: with SMTP id b15mr9608394wru.341.1599750383661; Thu, 10 Sep 2020 08:06:23 -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 i11sm8778906wre.32.2020.09.10.08.06.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Sep 2020 08:06:23 -0700 (PDT) From: Bryan O'Donoghue To: kvalo@codeaurora.org, wcn36xx@lists.infradead.org, linux-wireless@vger.kernel.org Subject: [PATCH v5 3/5] wcn36xx: Add accessor macro HW_VALUE_PHY for PHY settings Date: Thu, 10 Sep 2020 16:07:06 +0100 Message-Id: <20200910150708.2179043-4-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200910150708.2179043-1-bryan.odonoghue@linaro.org> References: <20200910150708.2179043-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-20200910_110624_646215_22BA7B4E X-CRM114-Status: GOOD ( 11.35 ) 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:444 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)