From patchwork Mon Aug 3 03:11:25 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: 247336 Delivered-To: patch@linaro.org Received: by 2002:a92:cc90:0:0:0:0:0 with SMTP id x16csp861418ilo; Sun, 2 Aug 2020 20:12:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz9K9TgpaZuFz1p59MTC48ar4jIzp/fqy7d6wzlp8hmBlJTv/Qg0s50zYdBfPRYwwEnHe1n X-Received: by 2002:ac8:776b:: with SMTP id h11mr14297221qtu.59.1596424286023; Sun, 02 Aug 2020 20:11:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596424286; cv=none; d=google.com; s=arc-20160816; b=lqNGHzwqfWvYSuMM7b14eX+cle7yFalgfWicjl57tpRvQ2k1gHKrP0hBH/pRLUeffC jHxP2UHVoHsclYAFm9WAXaGl+gJ1EH67gagAR95ggETtd2yTe85Vokc3OfHRWQz7RcJe boPn5g7bBGjhob0n77DxFjtf8ZVvQEThiCOQ6DB6W5HuJ7SYyCWNavI9wpyuBc0SeSVl 7Oy3By/RB3wcqKSl5coWC+CdPxTJ+oWjNZz9hkvt4JVhs1jrXi2p/bmE0A8ZAzf9QawU LRx3A8ghd4+u5Y0llMCr6KgYhaiqgrpuIwd9bMfPSXnTefyKZWH0arNNNg+14b19kfHH QEqg== 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=Ee/pbgHB/ogob+V/+QC6BRAtjU4LyaeuMyGvWDWgEgc=; b=aEka0PsGEDDywn2Wkr/mFZZRmK3fYB0GYGfu0TB9hCgfpl52T7GcW1s6ibtPQTBi4B 1/m7D5/hSk0D7k1iRZg1enjKY0DAd+D2c0Jb3ddeFwztUyiQlijs0C4K62VE3XzQn0Ag Pfg56GWRBxwetDoTX2Aqail05rAY9X2YEC5LiWgiL7fyY14nVmEwH09ltKHeRarEMhmY aQ541Tsu8HP1MhDB+gS34wOHhrhjygWVb8g3/RVfAFCOj7KXGuhn/SJMWay6ZI3+sdvs h0Dn+Ath2tRIsvqV58YXkldt54L3VMx+gZBZIiw/0NvGVzdtHUV+bWqES4a8CkwkgYaM OxBw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lists.infradead.org header.s=merlin.20170209 header.b="fR/fYRJp"; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=YSnZELLi; 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 w9si8442551qvz.81.2020.08.02.20.11.25 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 02 Aug 2020 20:11:26 -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="fR/fYRJp"; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=YSnZELLi; 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=Ee/pbgHB/ogob+V/+QC6BRAtjU4LyaeuMyGvWDWgEgc=; b=fR/fYRJpJC2tN9W6N2WJqyNlX JTCxBDbVRYSHO9JuqdawJTZhkGU9W6uaeW19Wg8IimIYEcZ0HUtxI67Q8EkQPNRvLmHSL7U3FBJ0e n1gG0ycWwGY/AhwxWUk0i+uEUW/Y5Y/7wypa3dHr4McAgXtdo5dk+CP7vcKNTg3hWe4M3N/wt9baQ nYpXkH36aLaMlB7vrB3gL3SYZI6nmuv29+vmBUydglF+tpTQBu9G/JmfZvSisN9qQwPfopc8E5ogb 8C8TGtITCW5Ac/u5zdNmWo0feTgup5iGkbmN6TQTAdQCIW86QMP/LAXoMcFfnoRU0n3JfflHeEWTg 8q+hsKd2w==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1k2Qsk-0002kx-KB; Mon, 03 Aug 2020 03:11:22 +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 1k2Qsg-0002gu-Ie for wcn36xx@lists.infradead.org; Mon, 03 Aug 2020 03:11:19 +0000 Received: by mail-wm1-x341.google.com with SMTP id f18so10196055wmc.0 for ; Sun, 02 Aug 2020 20:11:18 -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=r9KmogYdjeDiArvHcPSK2BD1IBaC6ai9UQ+vtopjnEI=; b=YSnZELLiIpi4yphEV/LAs0Pr6WBG1CQBwIPnYh0gs1vqPCb0EkmXaCKqDS3ZCidx7C TwPjFCi8ts0mYmld8V+IHdpj29ab9RFXjt4sU8/AkjjXlE4O2ib3Sfg5gEkwTsj9uSsi Bfsb7P1EDcexR25z3Nka8o70Pp+1K2HHmU1nIfDQ7rvySz/mSBiydk4f93Wbd1xwjPVz +gIWPGC9tENEYFyrv8aXdAPBV9JpOA2Z9/43qSZaPLFyeSDNwb16KPVExmS0oc7X8czS Df6/sMx+ds6wgSdGW5xxgI/YqBlPe6e8IxD675T5r5oxXbOJZyTQe/k9F8imFum0j/xN WaqA== 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=r9KmogYdjeDiArvHcPSK2BD1IBaC6ai9UQ+vtopjnEI=; b=JTj6creXhrDKv1WsYVjwetOlmyS9l8YZqJl3vSPMJAEwo10fKNSUqfDkvZFH5kP5Km zrEXt0RK29nr867OGeKvuyyjCgeWpn8gfhzv+ffKDAaQ8holDZQaNTdvm75HkaDX/sMc kJY7qyuVxJIS/XTaK8P03OtE3/AdaLTQa335iWGmIMyY+7Kn+gduaVxC/FgO5joS7L4c 8sqZ1NBeNlh0oKGSZZJgkGLzxbP0f7rhh+oZMOTqWIzYcGZfX+CS+O5MBYqL6dzo/S0v PmAnOZzEt3LLJP9FFf8ss8Rx8MjsFrZM0b2Uh1/V69uzKfU34LjdbyqR7nBQ/xneTpk4 89MA== X-Gm-Message-State: AOAM532zIEMpv/uKAfsywXLjr7X/uDX1FUsbQVOBpjrBg+piSkWLcwnL 77t1LDYtIlY3P+z6bCoCU0WG5Q== X-Received: by 2002:a1c:7e12:: with SMTP id z18mr2703516wmc.188.1596424277597; Sun, 02 Aug 2020 20:11:17 -0700 (PDT) Received: from localhost.localdomain ([176.61.57.127]) by smtp.gmail.com with ESMTPSA id q2sm21956857wro.8.2020.08.02.20.11.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 02 Aug 2020 20:11:17 -0700 (PDT) From: Bryan O'Donoghue To: kvalo@codeaurora.org Subject: [PATCH 29/36] wcn36xx: Add accessor macro HW_VALUE_CHANNEL for hardware channels Date: Mon, 3 Aug 2020 04:11:25 +0100 Message-Id: <20200803031132.1427063-30-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200803031132.1427063-1-bryan.odonoghue@linaro.org> References: <20200803031132.1427063-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-20200802_231118_696728_053CC421 X-CRM114-Status: GOOD ( 12.03 ) 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_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record -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 -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: wcn36xx@lists.infradead.org, shawn.guo@linaro.org, linux-wireless@vger.kernel.org, bryan.odonoghue@linaro.org Sender: "wcn36xx" Errors-To: wcn36xx-bounces+patch=linaro.org@lists.infradead.org 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 --- 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 diff --git a/drivers/net/wireless/ath/wcn36xx/wcn36xx.h b/drivers/net/wireless/ath/wcn36xx/wcn36xx.h index 18ccc6c31a38..ae8bda76d573 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)