From patchwork Tue Sep 8 18:25:09 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: 249331 Delivered-To: patch@linaro.org Received: by 2002:a92:5b9c:0:0:0:0:0 with SMTP id c28csp4791793ilg; Tue, 8 Sep 2020 11:24:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz82ihT+L6HbOPCHD4xCZyh2oDiUvfSIJiBtl0utCT/qEaPZZuKe+s9fmSrV8744jIATs46 X-Received: by 2002:a05:6602:2043:: with SMTP id z3mr119020iod.93.1599589473100; Tue, 08 Sep 2020 11:24:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599589473; cv=none; d=google.com; s=arc-20160816; b=WTJyPbyAuVsWsYLqpqAznDmU4QqBuHtXg7rTiCA7N26AOOvDaRUjRfHPkJOvEUtyTB GUT7fjAds9UPlzPk2CZS47NJyqMjfeMTzCUAKa/zV4oy2ZtJX/GIEsCbeABsj4jE6WNe qaUHAxx0rRDcENC5jZlVGe5grf915BRxjHlbIFakCjUGKGW+h7yxYi4pviLJXt+cD4Zn cPN0/raepmYpk09xhAyqPynAAsHQV+IIOFrOUjmmy8kJJZb5Om0TKVGImJ2UAoG8cTXM JLqvZ3YzEBx6TtY+eVwXWKnWABTCiZZMAbeVsFxWBckDo9JSDZl/JADU8QwS+WMcUdv0 wZqw== 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=FAL5H3uBSHikkPmmB6RX3ePLMW8VuybMhIMp+C/Mlk8=; b=FPjduMwITQ2EjruXzt2sgV7rsvPEUoMTtIBYimUdQVLXNvuG955lDahw9Dmltti7c7 juLgYKJ4L7h1cnKsuKqpNj7QMWECoKB3QPxCJMkhA+uuNltoHU6GvZpnKOd0Zbdfcuhf SqW6HzWK9x1NMsc/iUyfggBL7A00Aa8MWaU7f2ad2B9qqL6HR6NID9jBy2c+QGGs0T9P Y3XjYcVIBoMG8CPBFP4MYVqB3rcaSf3HiAa8SrKLusqWvjgsk7NIIBoevT46gbCnSpoj HAB/iINrkKjABIhkc9+71OricKyU8MxLqnUU3euxLu6GJKY11bIUAVdUGzEiovZJjIJ8 8PTg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lists.infradead.org header.s=merlin.20170209 header.b=gc6r8VGM; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=FRlJqbZs; 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 t67si162942iof.26.2020.09.08.11.24.33 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Sep 2020 11:24:33 -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=gc6r8VGM; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=FRlJqbZs; 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=FAL5H3uBSHikkPmmB6RX3ePLMW8VuybMhIMp+C/Mlk8=; b=gc6r8VGM4ckzI13HcN72cu2VZQ QmwggCmvRDFfzBjdFDk26gn0FWv3BrlPZOd54sgTR9hmurLmbTkut4VkzUmiazo7USiXgG0oBdiw8 ELTTndpxDtZ7PZ2VPQhSz3irugb08g434TCwIwWMUJMtuCeYXxmaMl5NLRUps+MLBnMu1rL4yAp6o ClKlSeH3GXDrCLrki4xUI41B1IVE/JFstcQHd4TdepaTi10PlrTEBlC8eD9qvBxb8zDL4MPIEo/K0 mDtQkY5WMSx1hUTRckTBGhQ+VXWnKkNdfxnx1wdywWA7a4Rxqn06WoLsSIeC5PuTFPo/mtn41LMkE AN8rOE1g==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kFiI9-0005HO-VE; Tue, 08 Sep 2020 18:24:30 +0000 Received: from mail-wr1-x442.google.com ([2a00:1450:4864:20::442]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kFiI8-0005GD-4C for wcn36xx@lists.infradead.org; Tue, 08 Sep 2020 18:24:28 +0000 Received: by mail-wr1-x442.google.com with SMTP id j2so215634wrx.7 for ; Tue, 08 Sep 2020 11:24:27 -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=wGpNsJWqPY/pZ4gHwu2RPvfDfxoHt4Mve4S4jtSFnt8=; b=FRlJqbZs5HRjgw6uNrhwF5BsodZy8Xu8sLy/lYDbrPBEDe+ImQMVoc6CICOblczzRI lw+b8vUafZh1yaf0t+PxiQxCZ9+v+C/9r7XKmxL7rJYHftduW8bRXkv6Dv2xIu9egbm3 KKU2WmNp8nNo/QI8T45VQgHYygO6omp67Oi6lbb1FYovxhscrjImd/f6kxql60Oe8qlO TQWoZLZ3OeH/mYCKcSOk8DHVg2efpMB1DydCque5EJKBWeEjZO9gJHWl8OPQO5ghXq/I f1OG0+lLgH6U3m8R1MKxYOfaw1OAY3qNx8qnHbMCgpX5KvoRfPPk0pkLeiiMnGLmUEqu kt5g== 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=wGpNsJWqPY/pZ4gHwu2RPvfDfxoHt4Mve4S4jtSFnt8=; b=UrQ5udvucat15qGRcQrfp+jBhCVNsZV9XIT/o3jV9LCv5dzSSUEa5ADyvSoQ9iyFeD ARi7PtfM+waPgzb7BJZ+GOiOR/lfnPOxDaV+7BbgtFS9ajNBNizcQkJDFBMiDtXk7wHf JW/aNFQUFg5t/W2Kh7crgmHlmIrLpo0oZp8pln+vwMireTnv5hi77PdafoS1+ANBUTqL 4fSDVCOVKI4nkE1/QrHnXQFZOaZpZeUPZLoX6+cBVtHlSciucY1MZh3rUtksN8FPMGSf WVikFkRnKukJysnQRaiTuFPFLpUM8jeWoBwmwgMfSZ2S0lR3yBxMFNBAUpXHL+6fIEkH 85pA== X-Gm-Message-State: AOAM532gUTPaKyop6zk5kDVe8FQ/1s938EDkDaV2/kLIbGI3Oz8VRFT4 uIKt+bDcOHMYGMv8Mq9FZU898w== X-Received: by 2002:adf:a106:: with SMTP id o6mr915904wro.1.1599589467200; Tue, 08 Sep 2020 11:24:27 -0700 (PDT) Received: from localhost.localdomain ([176.61.57.127]) by smtp.gmail.com with ESMTPSA id f14sm352447wrv.72.2020.09.08.11.24.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Sep 2020 11:24:26 -0700 (PDT) From: Bryan O'Donoghue To: kvalo@codeaurora.org, wcn36xx@lists.infradead.org, linux-wireless@vger.kernel.org Subject: [PATCH v3 0/5] wcn36xx: PHY modifications to support 80MHz operation Date: Tue, 8 Sep 2020 19:25:09 +0100 Message-Id: <20200908182514.2870410-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-20200908_142428_183900_AB73A99D X-CRM114-Status: GOOD ( 12.85 ) 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:442 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 This series is four in a set of seven 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. v3: - No difference between V3 and V2 below https://lore.kernel.org/linux-wireless/20200829033947.2167817-1-bryan.odonoghue@linaro.org/T/#t 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