Message ID | 20200908182514.2870410-3-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 c28csp4791827ilg; Tue, 8 Sep 2020 11:24:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyX0eXKk4keiYDMUpMO/QD4eBZa9lPjHm3AR4SPBuyINdzd5unFxe3nuiTMI/9Ts07vZTBH X-Received: by 2002:a02:3445:: with SMTP id z5mr233511jaz.134.1599589475396; Tue, 08 Sep 2020 11:24:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599589475; cv=none; d=google.com; s=arc-20160816; b=FwIzPIdBI7R/svuVq7OX7bhd02/sBAxhbA2s7AdI/xErg8zMoZeHrG6/uiaaG3eWCe gTk0AOFAyY1MLDyGl0wsuAh2af2JJXfIvB0D0Ic+LutJ3/+xY/B9YQWhSgTNJPD0fGqF lq3ogHXhKJN9knrwPhN0E+vqe42FhpDC3bMIMt++bLbX9pgD7lAP+3tA8QNX7BGotvYW KQ9cIsyeaqdZ63X+RNLjbXO97NlNwWlYw9lFVmv3S6TDg0Q4+BiTLp8str0LvClv9+oi 3DSZ6WfQ+9ACdl0kIr1axqNAT6HpqTr6G7nyMGx3FhZV7SRS0ULiRwMBcNWU1bzoXa0n X50g== 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=vRb9QufzR3bbLErzrUL5Jja4TdQVOnZs6zmDOlDW2Zg=; b=YfOt88yNE8djAIYS6SEKA+xQJ3vtScSa5FCQS5d9H1zMPhdJ6tp3OVO2gCdQKdWmzl MiULwYXEFKabUU9oW3opiz7mHzXF9/LIBEyIoVFdUm4aEu2IbrgSGOSnWsqP/k0OKpX5 nausA8bkzniB1umibGwaolL6+25SkN8kBbXBlSVX39lsmjIddtM+f0EQWg4N1Dv5F0Y/ wkNcqCMfGJXL2EBBA73+Ah7qKvxACDhVBEPeIcP09yiz4URBBT7VrFjz4zZdtybnjg4G lXMcNAJKwUdKdSQYzKadm9p7H2zgiDxzbQNMORAG99DMcU+jJE0v3h3uB9qQjZfmK353 fduA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lists.infradead.org header.s=merlin.20170209 header.b=TpBxNOyV; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=Ac8uAcsV; 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 l9si203681ilf.60.2020.09.08.11.24.35 for <patch@linaro.org> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Sep 2020 11:24:35 -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=TpBxNOyV; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=Ac8uAcsV; 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=vRb9QufzR3bbLErzrUL5Jja4TdQVOnZs6zmDOlDW2Zg=; b=TpBxNOyV1nVFc9dHA6fFix3Nu jdLAwPS1w2Jq/H8fxUQ1wIeXwxqHYrqQGd0EEw+THZT/vzBaelHWnjuGgjPSsTymbUcQIQKiiygj/ Kmd/3+RuvGvV7J/hImxHqMy9DGNGQN/C1AjrcubkXk2ZAx2mBkjN8BUsJpSehFo8IAmASrmvgF1Y0 WrjGnRnsKtkFRFp/zD7wSZ0nJqiFkM9/xjfBbwUUNL9X4OydYUL9KBJLFDq6YheI238qIab52yjNu KMnky0NvwUU4tjoGq2gU60GeGbaVvY7ggjxZZGOY0Yy1qDfM1OzJYaZOq9ABP+J0TAaphUKPfNJ0J FLbZtuVjg==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kFiIC-0005Ir-9N; Tue, 08 Sep 2020 18:24:32 +0000 Received: from mail-wm1-x344.google.com ([2a00:1450:4864:20::344]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kFiIA-0005HL-8z for wcn36xx@lists.infradead.org; Tue, 08 Sep 2020 18:24:31 +0000 Received: by mail-wm1-x344.google.com with SMTP id a9so310842wmm.2 for <wcn36xx@lists.infradead.org>; Tue, 08 Sep 2020 11:24:30 -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=gaKj9UYwL9cF8yxrv9sO92SpT2Gzz1dlnqtTFbOc6oo=; b=Ac8uAcsVs78nGTpERZdQVEDRlMPFk9nHjRFW8vO3Q8BY19VU8uIVYp1C4MmQLbl5r6 AfTE6qHyGR/yUSNBlYF3m5fpFYXNYSXbLf7dOOlPhUZQZXMzeTvW2j0hb9cnrGXdVnCh zVh3aK+L2yQlmZgyPeH10xOnHudgyMm7Kw5VBHYcLLIln6IRECY3iE0tw4MgxbKOx+26 ovkg6SbIqzPaKUwYW+atKVSBp6JQB9PxmFJuEmXoWIT9010T+a6twRQgj7ZIRmf0pLqf 65cq2eszl5i23tPZ03vS05vtjqWxUuoQ4MahTcGbNwxhG1yh7yDp4Qd40ShplOdHDkJs cQYw== 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=gaKj9UYwL9cF8yxrv9sO92SpT2Gzz1dlnqtTFbOc6oo=; b=NVUuSpRkW+PAEsbbm+HyOUSDGGqOf/jdwvG7X3rfy3/Ms3xiALLX7qJ8dIEYm5ldDr q4EjqiU6bEuFujXiB0o4KwaPCTY0+LXcr9j7wLCPPUSI0kDg+nJOkQKl30nWVgWj9hMr m+0sizprEE49QC3VW1NF0G+uFxNi41iWQ97GSBTAQ3+cX7IIWH+ItLuZi9OoaEUD37YR 40CGSErdolsO81UlAoqDF2cDqE6q07P8EQjcbzRaoDg0lAcCxs0HVVwLHWQFZT/DawVL EwmoDnwdpQtge3tf15Npm+5cBUdWHd8ndvdE9TiJOinW8DZW8ykRukF1rMeoGQ18YQ8m VUlQ== X-Gm-Message-State: AOAM531YV1llZSaYa/xrna89ZeHMaM3znzBuzfExsKln7ARMO9p/i6Lg McsZo5+OSnrIQ51b4x+4sm26IQ== X-Received: by 2002:a05:600c:2146:: with SMTP id v6mr347813wml.159.1599589469352; Tue, 08 Sep 2020 11:24:29 -0700 (PDT) Received: from localhost.localdomain ([176.61.57.127]) by smtp.gmail.com with ESMTPSA id f14sm352447wrv.72.2020.09.08.11.24.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Sep 2020 11:24:28 -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 v3 2/5] wcn36xx: Use HW_VALUE_CHANNEL macro to get channel number Date: Tue, 8 Sep 2020 19:25:11 +0100 Message-Id: <20200908182514.2870410-3-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200908182514.2870410-1-bryan.odonoghue@linaro.org> References: <20200908182514.2870410-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-20200908_142430_368566_825EA755 X-CRM114-Status: GOOD ( 13.00 ) 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:344 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: <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/smd.c b/drivers/net/wireless/ath/wcn36xx/smd.c index 2bb1803ed06a..1496566ecb31 100644 --- a/drivers/net/wireless/ath/wcn36xx/smd.c +++ b/drivers/net/wireless/ath/wcn36xx/smd.c @@ -758,8 +758,10 @@ int wcn36xx_smd_start_hw_scan(struct wcn36xx *wcn, struct ieee80211_vif *vif, msg_body->num_channel = min_t(u8, req->n_channels, sizeof(msg_body->channels)); - for (i = 0; i < msg_body->num_channel; i++) - msg_body->channels[i] = req->channels[i]->hw_value; + for (i = 0; i < msg_body->num_channel; i++) { + msg_body->channels[i] = + HW_VALUE_CHANNEL(req->channels[i]->hw_value); + } msg_body->header.len -= WCN36XX_MAX_SCAN_IE_LEN;
Uses HW_VALUE_CHANNEL() to extract the channel number from a struct ieee80211_channel->hw_value. Once done we can use the upper bits of the hw_value to encode PHY related data. Signed-off-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org> --- drivers/net/wireless/ath/wcn36xx/smd.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) -- 2.27.0 _______________________________________________ wcn36xx mailing list wcn36xx@lists.infradead.org http://lists.infradead.org/mailman/listinfo/wcn36xx