Message ID | 20200803031132.1427063-31-bryan.odonoghue@linaro.org |
---|---|
State | Superseded |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a92:cc90:0:0:0:0:0 with SMTP id x16csp861623ilo; Sun, 2 Aug 2020 20:13:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz5L4J0GUoKpKPIdMZ45havO7a/mcejSSJ4pcUIZ3NVfGTDsCpwNz/Vip5MwSaTKEHCb91b X-Received: by 2002:aa7:cf06:: with SMTP id a6mr14410207edy.293.1596424283056; Sun, 02 Aug 2020 20:11:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596424283; cv=none; d=google.com; s=arc-20160816; b=T5SHRIjIOw7arrW+WNP6+S1zA1yztTvDLlUSGOsb4E2zuhWUwpbbBe6oYVn3ZQ1OSk RYWPMMb6AcBPqBnHB05qZW3Q904x1Kn6NYjsz7FklYKjC/WOj/zQW5dYuO98RV/5T+M2 7hg3rc7fg2Cguv2ObuI77H9dcR7EyRUYbRPQkcMYGPW+Cr+ZertRZbfkDd0UQuAnd1dD DbyUvJMhFgCAtySGXqT3bPbK6MjkU4B9knZAEjK8BRBcDbZqM/Vgdko3jRh6Ebjsp27p Qc4GikUhU+76Q7Jkd+vIBYLwtHvLiFn8waY/6ACvOaso0ORX1tZyfIyKGf/DWZ5Da4Xx LVFg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=Y0MUmRNnfJhqzV4htTrjwxN3KiW8rf6W51Q4u6sP/f4=; b=y56s8yZsaUNSMTCV5ZXsoj8Lr9dqnLXBOdlQiN0eTthfH1NiOotQBXLrkh5oqGzf2o 9tobpsRFG2x3WeZwM3DnJJ7QgZw/L8zQYSTUO0XyuHU03kYNeDm++qy9K0ZKD8FSMk+5 ReJrMtRabHXIEIWBC78qH1CjvhSzEuP9T79wIBdrU/wWffE2RnzAgTYvYDOLYZRBFW7o ne4wm2FGnyoC3l8v4UU9EekEAh+UdBi+iY/QJ+KbhDIk6McJ4wkGE+kGCbwWnoKOwXIk IiYBIy70wjoF6ljZiZjb3f9VXzI2HuKW6GT4zy/TJwQpU0nTNo9stEuz4aQ5x3aQpjFo Ybxg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=yJSC1Hm+; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: <linux-wireless-owner@vger.kernel.org> Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id jz19si10235393ejb.34.2020.08.02.20.11.22; Sun, 02 Aug 2020 20:11:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=yJSC1Hm+; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727887AbgHCDLV (ORCPT <rfc822;patch@linaro.org> + 2 others); Sun, 2 Aug 2020 23:11:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41618 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727860AbgHCDLU (ORCPT <rfc822;linux-wireless@vger.kernel.org>); Sun, 2 Aug 2020 23:11:20 -0400 Received: from mail-wr1-x444.google.com (mail-wr1-x444.google.com [IPv6:2a00:1450:4864:20::444]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EC966C06174A for <linux-wireless@vger.kernel.org>; Sun, 2 Aug 2020 20:11:19 -0700 (PDT) Received: by mail-wr1-x444.google.com with SMTP id f18so32795330wrs.0 for <linux-wireless@vger.kernel.org>; Sun, 02 Aug 2020 20:11:19 -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=Y0MUmRNnfJhqzV4htTrjwxN3KiW8rf6W51Q4u6sP/f4=; b=yJSC1Hm+ZkvCnyrpM0d1nYzEQ1c381CKbRUyCPL07S5o4w06eRWjHCCfBkZwFivB0A WGrlIU99UHW+viSdK2N5xqXWQqZf2tVsCK/uwQUaHc970LvJZ9fE4M6OY4dUMgf05SzL kj+EwyZtpIOaV+1TvLce46xV4HproflPrfT3GrnblyYgkDhMLJUMD71GGmgAsOONu1aV rwLEpRcXnBC6kMRmTa/CT6KRvENNZDUwQHJwdmJS8PvBEPVJqVq7RZrPcpT5LaEkfdYc tQ7Kllwrlrh8thpoPr+9bGV7kKKyx41vAS3tH5xkEjZweDsr0svgXmJBxmZDx5MkVULr w3/Q== 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=Y0MUmRNnfJhqzV4htTrjwxN3KiW8rf6W51Q4u6sP/f4=; b=WuF52VY2/kvqDDvRHVTtyDT7MST++GEz7a8HAErlxWHmTbQ5QDwIyYIC7FbuUNvx81 ZCL9w+8tIZW23eo+fT757FQPCoStGDEmrYwdUYOWM3O4mDPwsIRxmkVLHOZU8XM40RkN BSviJcuAPNkRnBKDGi0NZg0aAgKlNrVTnPWtuBgCvKfT3GOj8VVs1jdnPuF6FwynZ8KE eOShWGsf6zwzVtGbBa1i1uZ7//hBIYYFyYbttm/kcCsUdpLGHVkHMIw1bk4pnI52wDyf eJXwVlbvbtRAZvR+osxn+Xh7S/3GBDm2Y8bx1wAB82fy1CsBcdjhQo0djkbTYHIGv9wM aVZQ== X-Gm-Message-State: AOAM530ywgpT54hhIyhR0tuH3DgZaUa5OEr9h9Pmni86ASt0WFfyd/KH XqQ8LVHHck9Npmr6DANzLYGGTw== X-Received: by 2002:a5d:40cf:: with SMTP id b15mr12845030wrq.319.1596424278690; Sun, 02 Aug 2020 20:11:18 -0700 (PDT) Received: from localhost.localdomain ([176.61.57.127]) by smtp.gmail.com with ESMTPSA id q2sm21956857wro.8.2020.08.02.20.11.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 02 Aug 2020 20:11:18 -0700 (PDT) From: Bryan O'Donoghue <bryan.odonoghue@linaro.org> To: kvalo@codeaurora.org Cc: wcn36xx@lists.infradead.org, linux-wireless@vger.kernel.org, bryan.odonoghue@linaro.org, shawn.guo@linaro.org Subject: [PATCH 30/36] wcn36xx: Use HW_VALUE_CHANNEL macro to get channel number Date: Mon, 3 Aug 2020 04:11:26 +0100 Message-Id: <20200803031132.1427063-31-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 Content-Transfer-Encoding: 8bit Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: <linux-wireless.vger.kernel.org> X-Mailing-List: linux-wireless@vger.kernel.org |
Series |
wcn36xx: Add support for WCN3680 802.11ac
|
expand
|
diff --git a/drivers/net/wireless/ath/wcn36xx/smd.c b/drivers/net/wireless/ath/wcn36xx/smd.c index cedf4391a69a..9a7e6f96f0b6 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