Message ID | 20200910150708.2179043-3-bryan.odonoghue@linaro.org |
---|---|
State | New |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:ecf:0:0:0:0 with SMTP id i15csp826560ilk; Thu, 10 Sep 2020 08:06:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzgJ831JHX4BcR4fOv6Ty57LCqu+ZLyUykvIJLcqScnJG+5zcONbOqO32cOhoznL29A1bhs X-Received: by 2002:a92:1b4d:: with SMTP id b74mr8738434ilb.198.1599750388813; Thu, 10 Sep 2020 08:06:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599750388; cv=none; d=google.com; s=arc-20160816; b=sUsRgBePVwxAjvLvYcGQt/T0vUhlkK9wyD3PEOvZzPQkkhDhyN4oKXox6VvVTYB3EV qbJr1u59RnPRIZ+gFA4XajIynMS6K7I/uGBjcbEuQhXyPpNfv16q8bZ7EkVv3fnFiaAt kKiPEGZJTIuHXSYUPqdvakpq5+8nNPljMQ4tvSHvPxK21ePuJwjsFfCL7bFSI8qmRyNm TvlwoUbR94SjhqqRqJoxrxG3rvx+Ed0jf5918YLPjM9cTtsXJSn/CygP3HT9c8PYeGIN JlULXSpfx1p7BFSkVtvWv9IsHUALShHGuBKJxNe870Kx7vsFELxao3oQWJJG728edvoA 38yQ== 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=e4IkzUqtAvhEqdrL0bzDndXW7RPBdGGfGR6KOnIayMU=; b=TrGGpgLgnko5X2T57sDvtPBQQv5ivwkeMMbQCIBXSCM2kIc4gLqW13PE8lxgaNlg69 WIFGke25ilqyW8MEkCIDj+eiGCFutDw9seCccmBW8TDcA7VFf/aK4psQZ5/7G/ZQ/WIB SFj1MtiUxy06hXK9HL1Hfs978lMoesiaGS3JnIxH8Jkg476pgmuzkbKR/v3V0WGHK+H5 9UncOlJ9llvCe5onZjBOztcqCYqSn3l+npXbWzTzK8KWVPWMSnFB5eQNuucc059sSOjV cM0EAaF+jWYm7r4oFC7jBCjmerzvl3/NHejbvCcUitfM1heCL8RSCJ/xlaY6tjMftFhc Gvyg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lists.infradead.org header.s=merlin.20170209 header.b=Gnf16z+e; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=L3MkbVXG; 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 y17si1257901ilq.44.2020.09.10.08.06.28 for <patch@linaro.org> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Sep 2020 08:06:28 -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=Gnf16z+e; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=L3MkbVXG; 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=e4IkzUqtAvhEqdrL0bzDndXW7RPBdGGfGR6KOnIayMU=; b=Gnf16z+eHu4i0iKs9hkZVohxc 49qBPrdk3RAMV/kHjFKOR5DJCrvx03tbLqEoKuLyEVcFD3efl7hXL92catfQCKE5zaz4hhwuIL5zo sj1lJdPCbrgcEOCAXsutoq7owD+pS8pQc04ziE4WUbIk0CUbWmNYoz+aZpFit6Jc9dytzuC1UEaDg pNbJ9YgAZd8DfpE6po2wC3jxbqIBP33uRqqwOtxzyDs939ZSnG5tLB4Z7AeeXCubnze6Txg0wfXSz qx9rLiSdTWJIZl+uCYmlTPO7ZDG+XvZKLPFxbDINH9cdGBDJE0+I/miU7i9lB5/A9wbMXtLbO8dCc 4UyU8ODTw==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kGO9Z-0007pe-Nr; Thu, 10 Sep 2020 15:06:25 +0000 Received: from mail-wm1-x342.google.com ([2a00:1450:4864:20::342]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kGO9X-0007oE-IV for wcn36xx@lists.infradead.org; Thu, 10 Sep 2020 15:06:24 +0000 Received: by mail-wm1-x342.google.com with SMTP id e11so2099872wme.0 for <wcn36xx@lists.infradead.org>; Thu, 10 Sep 2020 08:06:23 -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=NwCebeUlM9NmAaYhyXx/fGUpE3fedfQDauBCeR9/OgI=; b=L3MkbVXGJPurnYM3WDW1dF3eJa47VxzV+MKyRjLNW/5JJwOMxEOp7Lvsms+/L06oNq 6wO7i2QiP4x/HjG7VXaakOErwTgFkGWDZTbgHq1BBgPdhIzsQmhWzTZngTn8ZGwDi0cB t80Aw2mTdbqdjAmmy3Y578uJNHClTA/X534ct4YEKEdsoSz6HiE1ZHIaPBSrSblWj9+u fBMD/4e0XThL5j4zjSJBt1P0+BzuS+kumYJg1BupFawctkCQ8rGb8im5cWyE2nmS/4De itXIvvLLNcLuI1YpBm4xWmKwAqNAOvKzv3tD7dtYY73g4M9obxji5vWbaE4LuzjgiII+ thng== 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=NwCebeUlM9NmAaYhyXx/fGUpE3fedfQDauBCeR9/OgI=; b=P3OnISvmp23qFYBX9nbuM79oQY07DpUjzQxhwg4Xy5JWdsyQ9CRkQNrNKIKfHw6FtN zhcWlpdvIWCF63Kh34INu0W+DZ0vCVSr9JSW3B56/dv+jL1yGNuS7g54txV1yKEUvRGi 9nxV3F2ontYwjASFdUqgBts9MWfxKvS8voGh8ZuiGnOKVidDkDUYOaU4fM+/ru1y+GJ/ DM325yOUtjOGtxBQPTv1YQAO3cdxJ8avB6jn2cAq8Oe0xXWVxOiI8WfV8JwEINFt6Yh4 8BIbagllSqZPJgmhmxxoSs8yjq4Ya9gkLROcx/cN7TQ4huReTNMtKIK2ksKYXTVi7359 /Llg== X-Gm-Message-State: AOAM530jxc+UcMhWBGHeEnsAiRHR/P3iO/jngg5NBe3nCoPuuH5lRjCt 8PqrY124YscBbxXmgCUoE2jANQ== X-Received: by 2002:a7b:c768:: with SMTP id x8mr422223wmk.189.1599750382696; Thu, 10 Sep 2020 08:06:22 -0700 (PDT) Received: from sagittarius-a.chello.ie (188-141-3-169.dynamic.upc.ie. [188.141.3.169]) by smtp.gmail.com with ESMTPSA id i11sm8778906wre.32.2020.09.10.08.06.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Sep 2020 08:06:22 -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 v5 2/5] wcn36xx: Use HW_VALUE_CHANNEL macro to get channel number Date: Thu, 10 Sep 2020 16:07:05 +0100 Message-Id: <20200910150708.2179043-3-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200910150708.2179043-1-bryan.odonoghue@linaro.org> References: <20200910150708.2179043-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-20200910_110623_632347_7E805A6B X-CRM114-Status: GOOD ( 12.30 ) 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:342 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_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 -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 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 05e5e079dab3..feeb27851f7a 100644 --- a/drivers/net/wireless/ath/wcn36xx/smd.c +++ b/drivers/net/wireless/ath/wcn36xx/smd.c @@ -773,8 +773,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