From patchwork Sat Aug 29 03:39:42 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: 248694 Delivered-To: patch@linaro.org Received: by 2002:a92:5b9c:0:0:0:0:0 with SMTP id c28csp1602825ilg; Fri, 28 Aug 2020 20:39:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw6NMkSWK2qvHpeQHZMVnVLEA37gjb2z836K2GfeGEMDNt7aZHz0gpVyFGKtkpMqbWuNFwW X-Received: by 2002:a92:6f0a:: with SMTP id k10mr1437274ilc.5.1598672347168; Fri, 28 Aug 2020 20:39:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598672347; cv=none; d=google.com; s=arc-20160816; b=THMbA7Y2OefmyEWErEUGmHZtgBuWReG8SM1yxnMDktrC1lPoXE37VM8TteYzqCJiuB qBTmg7E4neNlox2OxIWlPoHSQJ+IFEM8WjDaqU3WflwmU1s5VQ+ou1IupLIl9SvYDWRz e82V9wR5FBuQyRfzFvCUFVCrBK8FGs3ohM7QBawj+/fSzi15jx2BVOhtJuNZ+AhFDVJk L8wjZLOGP3CjMghmrDbKDvyuR/tV0WMajL1K/U1+h2d4ctxEKIHJU9I0lDUCjPUR6qXw 2N2C4s75Y39WQP4IBYCmWJVg7JHOSsXXeLvhINE7re5Epnvba9sGxoUNgJ8rqB6KQ41L n37Q== 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:message-id:date:subject:to:from :dkim-signature:dkim-signature; bh=ywWy8od0zP91S9RZze/OXJ6C0d3CNIMJODJIHXom5AA=; b=GwX4J5vK6V9EZqSkW/KtXcKs/T2cbAdLk3EYnfd+FGmKRufJ358ywSb7kpG+HLc1xf /Csd/Ala0f1LPWWdQCnfQe191vsxHB1CRmE/1EHdTFGJUML1PGb2OZ+Ot4vrdItywO5r pkL7Hh8hOhllN5Lp5D6U71aNpe6nfyLQrKXdnPNqcRL5oNJ5oTTte5XcGfS7a5nGlURh NkpmQxcX/959BdCPy5CTGbf4g9hBlBgLOPjxKNeiMqoIa6OX3m1awyg+eEieSgkrlzX1 G/iE2n9tBtRKrx4jq5Osm6kBZ6/ikJh+gtYW5rJj5/HYvMdgA+AVpgtS77MHGmDZAlyJ YEPQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lists.infradead.org header.s=merlin.20170209 header.b=nPOf9IwF; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=zhnoq0Qq; 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 j18si1036179iow.28.2020.08.28.20.39.07 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 28 Aug 2020 20:39:07 -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=nPOf9IwF; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=zhnoq0Qq; 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: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:In-Reply-To:References:List-Owner; bh=ywWy8od0zP91S9RZze/OXJ6C0d3CNIMJODJIHXom5AA=; b=nPOf9IwFLtbLNDf75ESYhP1Xih sv8osmg21/20K30EMormIOOKpKWLV2/xBsZM5U4rxpM70ZGzruzTkIzVfM8CClh+m1mBzJR/+nQK1 DbrAn+VUb1eqI/XkTD6B+7fIcoXQAaXlwG/9bLyPokH10YI3gO+bDSY9xfco/mpj7MK4yNN5yEJRc vc2YmZeh+NnPOJRotR0M23Ui582PnI0Bvbn15EnOXsKy9jcSad+oYjMakmAm+UC5icPMOkuQbluIP IpNQedDJsnrXvF6IUejOOKS1ZoxD9F/L58bHeI26cbty4l2c7dxQcJola6xN6Usw+MU86IgeqGg4y 82RG0PXQ==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kBrho-0002a8-5B; Sat, 29 Aug 2020 03:39:04 +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 1kBrhl-0002Yn-Q0 for wcn36xx@lists.infradead.org; Sat, 29 Aug 2020 03:39:02 +0000 Received: by mail-wm1-x341.google.com with SMTP id v4so120281wmj.5 for ; Fri, 28 Aug 2020 20:39:01 -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:mime-version :content-transfer-encoding; bh=6C+RlpuxfUTNBjxdsuDscPKf8gURD41UbbOvyjhZ5UM=; b=zhnoq0Qqfub1YBnDDb4CW5Uej7EaCQW/r2heI6IJzXhQV68dP5UIkV+Y6/dKNBfDKr SBKvoagSd0YoaZZ9TKJFEQVzSxybVQfdK/JKLSiRWL8n8gBKI1r/ywdlFmach8RUnrMS siUYQEE0tcmTGoIfhHA8g/Lr+sngW4eoOpRVadPo9SRoNqkyIUBL135aa5bRXrovQSW7 rRDUcxPlR6rKFJ+igd7H+WkveQoqec0lt9V7g7sYXvzaMEBHWSFcF356sBbAFgrNDi7v 3lCa/1Ztq0Mfug5C/i0Qip3PH1up60i1da5QyDOsP4U7o4Pi2NeMp9cL/VE2G231bFFn lO0A== 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:mime-version :content-transfer-encoding; bh=6C+RlpuxfUTNBjxdsuDscPKf8gURD41UbbOvyjhZ5UM=; b=JiE2XPHl5/zO/9TNov5a/4ioOwVSRbol+U5XypCmM90q/+Tx0C9aTM9jL2TKrn38q1 eyEW99Am9asqE47fb9vUYkzFg/hMxWxMoiAU6Noj3CGrZBt8DX/y+mvJVMa+xH4/yYP5 1CdHhCcLH+mf1EP8guASNybWKemF+XOlshP0w+qEegLSLb+G2FahlutMHj5f/10ONfls PmIu5eB+KL0AGMmJEjFbg1JTVKNP+0nRGLnsqWEW6XQIeW4G6g9FknZazG52ZuTXIAv+ 0o2Ot6+JczmmiYl4FytyiVSmAoKxRdOp36KimJ4t6SZk4LTGepEXobmM9T+ZYzsTpJ8H ZZRg== X-Gm-Message-State: AOAM5307nL8PbrVep1d5h8qBean2zP+KiLNEH2mWuK2InssEZbaoHxX/ RM/DwXN3QY4FN0k193h3EmkM/Q== X-Received: by 2002:a05:600c:410b:: with SMTP id j11mr1556880wmi.38.1598672340781; Fri, 28 Aug 2020 20:39:00 -0700 (PDT) Received: from localhost.localdomain ([176.61.57.127]) by smtp.gmail.com with ESMTPSA id l9sm1732151wmh.1.2020.08.28.20.38.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 28 Aug 2020 20:39:00 -0700 (PDT) From: Bryan O'Donoghue To: kvalo@codeaurora.org, wcn36xx@lists.infradead.org, linux-wireless@vger.kernel.org Subject: [PATCH v2 0/5] wcn36xx: PHY modifications to support 80MHz operation Date: Sat, 29 Aug 2020 04:39:42 +0100 Message-Id: <20200829033947.2167817-1-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200828_233901_854734_222ED03A X-CRM114-Status: GOOD ( 12.44 ) 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_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -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 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 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 This series is four of a set of five to add support for wcn3680 at 802.11ac data-rates. In this set we add the ability to configure up the wcn3680 PHY to get onto 80MHz channels. To do that, the upper unused bits of the hw_value field of the struct ieee80211_channel are used to encode additional PHY settings. Accessor macros are provided to encode and decode this additional information. Depending on which channel we are on, we need to configure the PHY into one of four modes representing four potential adjacent 20MHz channels. The modes describe where the primary channel sits in relation to the other three channels giving us 20MHz + 20MHz + 20MHz + 20MHz to get 80MHz. V2: - No difference between V2 and V1 below V1: https://lore.kernel.org/linux-wireless/87eensldhi.fsf@codeaurora.org/T/#t Bryan O'Donoghue (5): wcn36xx: Add accessor macro HW_VALUE_CHANNEL for hardware channels wcn36xx: Use HW_VALUE_CHANNEL macro to get channel number wcn36xx: Add accessor macro HW_VALUE_PHY for PHY settings wcn36xx: Encode PHY mode for 80MHz channel in hw_value wcn36xx: Set PHY into correct mode for 80MHz channel width drivers/net/wireless/ath/wcn36xx/main.c | 50 +++++++++++----------- drivers/net/wireless/ath/wcn36xx/smd.c | 15 +++++-- drivers/net/wireless/ath/wcn36xx/wcn36xx.h | 6 ++- 3 files changed, 42 insertions(+), 29 deletions(-) -- 2.27.0 _______________________________________________ wcn36xx mailing list wcn36xx@lists.infradead.org http://lists.infradead.org/mailman/listinfo/wcn36xx