Message ID | 20200829033947.2167817-2-bryan.odonoghue@linaro.org |
---|---|
State | Superseded |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a92:5b9c:0:0:0:0:0 with SMTP id c28csp1602843ilg; Fri, 28 Aug 2020 20:39:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxA9XMoue4BLnmN9CvjtX4N7yTdAx50byyS+sLdiETlax7UA0melemzrSgtNi9Bxc02xyT+ X-Received: by 2002:a5d:9947:: with SMTP id v7mr1415594ios.203.1598672348920; Fri, 28 Aug 2020 20:39:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598672348; cv=none; d=google.com; s=arc-20160816; b=uGBBXfMQKU6BYxyIzPWtWvlDFHscf27b7czTwVTdebX3LWAh+VTtYz5Lghk6tMo+ly 2rqovNe39k0UXl2M2vu8ktuM0orjsOmyH81T7eJsg0tm5MNXARuDtBdlSdQoCF0nBncb W7sKva5h94uK+0dj8HJx9meQ6xTCcLzwZRWNFYIgwL4i4JP8S9fIvcX0S2oY74ZdsK+X QPINWDw8YLWalbJt9InJJbphsiJFnm23oPP/5OMdXkVR4qJjdSnMQ0DA3Uja/fwGaFlN 3+n3vijv4Pehx/WvfKoM6yq43fGwrrPmo154F1ygAOl7v8RxlzCOKD/dB3aVwq3RDTmp vksA== 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=flXNHQYuvE/kP9x2ix+60tIaj+7wI5SXY3ip5wDBkGM=; b=iQOoOzLYaWwqYgCi+rUIj7viH+J9bFttbBYzyT1QVXNqI0dT2QgFZKpHyXGNtSxnAi OKEqWWpugLzVH6V8CZDcj90ioEsd0WQ7jWPk1cqrf6WMOgIAVtFI0zt5JAg3MO0QjWVx qqbHSBtzd70pZ+jDb9cYHCFXq/YnYLizi1y0aAgh/FkAY6Q4Qn7v3A5PT6sJWz4PKGku QK0ZnPYmlVVeElJRGQuBwxaaCBoyW9+AxOXzQk8l+U0aJ+db8XIULFJ5rVt3VV4NCHlE BjyKCJl7V3rtIBuGyNupLHpYPmJPx3M4NrDlqBv+j3vLXQvSDHDa2d0AXeYdK1tUIenM lV8w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lists.infradead.org header.s=merlin.20170209 header.b=iVVLNdT3; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=Gqy8FQEz; 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: <wcn36xx-bounces+patch=linaro.org@lists.infradead.org> Received: from merlin.infradead.org (merlin.infradead.org. [2001:8b0:10b:1231::1]) by mx.google.com with ESMTPS id u17si1098402ilm.96.2020.08.28.20.39.08 for <patch@linaro.org> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 28 Aug 2020 20:39:08 -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=iVVLNdT3; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=Gqy8FQEz; 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=flXNHQYuvE/kP9x2ix+60tIaj+7wI5SXY3ip5wDBkGM=; b=iVVLNdT3PDkyqDRS7ZOSgmCZL wplZcCffbbpuUWrIpuWwSKPGXdaK9SzH7aeFsS1g6heDOzs3J004PeCsg83r79Ac3Ypj9zwoMuQGa AH+i88AKXPDed0UYWuUUn4bTeVhwKI/inQB0dOpzpYZAuj4AZJO10HJt0fog+ROyfw768udz/prpK cPLgdnd/vanSZRLRyRvd1lDTdpCwkJSZ+cgyxElPyAaST5IiIfA/Wm7XfXidYmR0jhgllxqZh5WVN dERsn4Yn6JeZWurjmec18M6Zfm7r2RXNPAzLfHGaDm+h0rHVTu/gtmobo36Oos6r9vMMBp/UyP+1+ XnETIFGsw==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kBrhp-0002an-Ln; Sat, 29 Aug 2020 03:39:05 +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 1kBrhm-0002Z8-RI for wcn36xx@lists.infradead.org; Sat, 29 Aug 2020 03:39:03 +0000 Received: by mail-wm1-x341.google.com with SMTP id t14so844593wmi.3 for <wcn36xx@lists.infradead.org>; Fri, 28 Aug 2020 20:39:02 -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=yBk3qb6esZU21s8yt3ET2KrYd742m2TmS8YznjO4lK8=; b=Gqy8FQEzfLCKK3RYqITztwv3hYVU9XwW6KBNpURG362FGIVMqWZjtVMA3tJp792u4l UVPXhhdPT1l8u9u2RvZGx6AOpU1846V9WQAMMPM/aFJfzLQDdBk/wwBYXQxMQFGgYGG2 MB8MnAEKdTlRFaPO29I14g7egmuRZKuAd/pjqJBD3xDnQkCiXJV4o+qWHv45fSoIaQMf PikAq3NwczwXu3g94C1nInAJBSbOMfvM8DFnor6CzQSjWtQRgWy8O+usIjgpVv/vy03t hRsTX8UirQQiQXnNnfr+1FsL/6h2RqDV8pCkM6PPLM4mBrjd5BqMiLM1Ee2FqgOAd36J MlQQ== 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=yBk3qb6esZU21s8yt3ET2KrYd742m2TmS8YznjO4lK8=; b=RaThtFA1qBs6t5r8m0CtxjN/1jHuR8bwA+crCKR0hlWuwp9kV1eHrXAB0uLmG3ibv/ xgjsF+toMxT3FrYIesOHMUfjKw0dCRA/YzTLEOLpOHCEqLsmKEeYXY09HZO1dFPRqrAB DXcqPZAqDsC1GY3QgPvVqnWDuAMgOqsW8WG1M0ndbgWrl5YeFbsf22yMCEiwFrp6O53g GWMabk9OmJW3HrtfQU3Ibu/N7M+MKhlqOzr95FV6JHTqfH588hQKpJMBiX+99eRTegc/ HBdkjqXXll0kKmPXpzDMNShIO8//UL9UZPM2bvvZmXIjjpuOtrxJ/1t3Z7ic7WEKdJMa sGmw== X-Gm-Message-State: AOAM530yQ/DVGsWG3fSikQ/bdj5R5y4rQmHT5FLI9Qm+4hXskHA7qQMd eaU/srLPQo/3a+gBqYt0cTt7tg== X-Received: by 2002:a1c:544f:: with SMTP id p15mr1511069wmi.147.1598672342068; Fri, 28 Aug 2020 20:39:02 -0700 (PDT) Received: from localhost.localdomain ([176.61.57.127]) by smtp.gmail.com with ESMTPSA id l9sm1732151wmh.1.2020.08.28.20.39.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 28 Aug 2020 20:39:01 -0700 (PDT) From: Bryan O'Donoghue <bryan.odonoghue@linaro.org> To: kvalo@codeaurora.org, wcn36xx@lists.infradead.org, linux-wireless@vger.kernel.org Subject: [PATCH v2 1/5] wcn36xx: Add accessor macro HW_VALUE_CHANNEL for hardware channels Date: Sat, 29 Aug 2020 04:39:43 +0100 Message-Id: <20200829033947.2167817-2-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200829033947.2167817-1-bryan.odonoghue@linaro.org> References: <20200829033947.2167817-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-20200828_233902_907293_4D3BFFE4 X-CRM114-Status: GOOD ( 12.51 ) 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: <wcn36xx.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/wcn36xx>, <mailto:wcn36xx-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/wcn36xx/> List-Post: <mailto:wcn36xx@lists.infradead.org> List-Help: <mailto:wcn36xx-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/wcn36xx>, <mailto:wcn36xx-request@lists.infradead.org?subject=subscribe> Cc: bryan.odonoghue@linaro.org, shawn.guo@linaro.org, loic.poulain@linaro.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "wcn36xx" <wcn36xx-bounces@lists.infradead.org> Errors-To: wcn36xx-bounces+patch=linaro.org@lists.infradead.org |
Series |
wcn36xx: PHY modifications to support 80MHz operation
|
expand
|
diff --git a/drivers/net/wireless/ath/wcn36xx/wcn36xx.h b/drivers/net/wireless/ath/wcn36xx/wcn36xx.h index 2da81d9926c4..ebce1ed7adf7 100644 --- a/drivers/net/wireless/ath/wcn36xx/wcn36xx.h +++ b/drivers/net/wireless/ath/wcn36xx/wcn36xx.h @@ -83,7 +83,9 @@ enum wcn36xx_ampdu_state { WCN36XX_AMPDU_OPERATIONAL, }; -#define WCN36XX_HW_CHANNEL(__wcn) (__wcn->hw->conf.chandef.chan->hw_value) +#define HW_VALUE_CHANNEL(hw_value) ((hw_value) & 0xFF) +#define WCN36XX_HW_CHANNEL(__wcn)\ + HW_VALUE_CHANNEL(__wcn->hw->conf.chandef.chan->hw_value) #define WCN36XX_BAND(__wcn) (__wcn->hw->conf.chandef.chan->band) #define WCN36XX_CENTER_FREQ(__wcn) (__wcn->hw->conf.chandef.chan->center_freq) #define WCN36XX_LISTEN_INTERVAL(__wcn) (__wcn->hw->conf.listen_interval)
Adds HW_VALUE_CHANNEL(hw_value) an access macro that will be used to extract the channel number from struct ieee80211_channel->hw_value in preparation for also storing PHY settings for 802.11ac in the upper bits of hw_value. Signed-off-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org> --- drivers/net/wireless/ath/wcn36xx/wcn36xx.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) -- 2.27.0 _______________________________________________ wcn36xx mailing list wcn36xx@lists.infradead.org http://lists.infradead.org/mailman/listinfo/wcn36xx