Message ID | 20200908182437.2870281-7-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 c28csp4791408ilg; Tue, 8 Sep 2020 11:24:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyG0GBnaUT6frJC7hefCFKq0naImY2aUaCTf5Gswmk/iUlImOWK2L/N1EkKP4gecWnayZ3o X-Received: by 2002:a05:6638:1448:: with SMTP id l8mr213980jad.83.1599589444133; Tue, 08 Sep 2020 11:24:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599589444; cv=none; d=google.com; s=arc-20160816; b=uhN1y5RvXpGmxtW+lBr7izeHyVu70Z59Yz2rWA52gNeb8H/ZsrgT8MR8uSZw/Nf/ud 7UXDouT5B1yEci9NPIpDxq+RVoXjA5GfhZDmmDXa7uDpT236RXKDLuo7bCrro8zHIn5v bee6hvmjnzySdhF8AJUXQPFNozTq+78z6g+9NEpANOsC/Y2LZl1zgU2intAiNURuhMgA m+tg24P88qJmxon3pOOZoSPB7Wfs1bQnX8owPFam4ydIVOhroY0Cm4SrHN8LX9FYUKcv 7Hf8TFFumppJGqOAugX5mW5W9n4s/jd+zNHKNHQ1O6jHs11be17urFhtxANPaRnw7gRJ fOiw== 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=OoF4O0dmsqj6ZQGvcGV5NapfAjtfjHkgwCWxRUl4QcM=; b=iTFEGuSv5V0zGiiKlUFz8j2/A/hsgs2QamViIARKfAD21TxqrXAU7/PqVWCRSsVyEk gbma/3vhu0saq2NwMNbtDSzS5D9DWzlj74lATulblGsQ+EDBntFxpE6wELqPxWJwz9QY HcXBb3OzcFZddavMkx8jwQ0jJR3qvJdnUQSGBSbGLxO/vtthvDuoi4eYAUTR+oVCq2Q4 1iFJxtDqKy/1HgqZmiSNLM4G/KAiSJIj2uz9O1o1hbA9e0kdK3q1099ogFUg2vO/EzH+ uKKS/RMilDUC3JVMJWKYCg4v06ud8YKlunO/gmWW0fP4jtjkR/cbMRXbAHuVp+OG9fww zCOw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lists.infradead.org header.s=merlin.20170209 header.b=IX8qjEpZ; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=ELL5xuzq; 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 h27si14986311jaq.17.2020.09.08.11.24.04 for <patch@linaro.org> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Sep 2020 11:24:04 -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=IX8qjEpZ; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=ELL5xuzq; 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=OoF4O0dmsqj6ZQGvcGV5NapfAjtfjHkgwCWxRUl4QcM=; b=IX8qjEpZE9i89fDpZPE2A0ngg eggSuh2134wERvrqApL0ZIT+1I93/4NvqYBLvmcZcFdVOvcVvd1rm+CnLPUxZvI/OtHmZ6f+RuJ/g B3bwCcadi5uoiTb6TyrGLrvASrhtXh0u6myeY5k2MdQ9iysevs2nS80hRMlc7EXhUCMhg5l2bCOzI NTPd0i6Dg6/yXWfWE6CuazWRhz4oYdljSljP3PMlkSdb/rxL3zJLuH34YPZluNlUUUHIkNjL59x/z ZYn9WJ7saN93drfTn8cnU2wByzZxLpD3wi9lEKQuJoiWEniumiCQyx6K/LeTQNzb0oQfH0AHp1ZxE bwk+668Uw==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kFiHh-00053O-7O; Tue, 08 Sep 2020 18:24:01 +0000 Received: from mail-wm1-x343.google.com ([2a00:1450:4864:20::343]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kFiHd-00050H-AR for wcn36xx@lists.infradead.org; Tue, 08 Sep 2020 18:23:58 +0000 Received: by mail-wm1-x343.google.com with SMTP id q9so288647wmj.2 for <wcn36xx@lists.infradead.org>; Tue, 08 Sep 2020 11:23:57 -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=Z7Rx0C6d6/7/5yg3uB9kdCw4d9C0cgfMEPvtmg+zlZY=; b=ELL5xuzqWa5q/mb3KbbeH7b1DIUvnFd4gU1GPgji4LIdQxFVLUSsIqvF77f4GSTsb0 xRzUQauUMIParsS3SZiuTzZba7KrcARB1zKYzOpZd4xYgzxpTiOOCHrJygRLhjoewD3M 51OgLZFBO1pd3y6HDpwVpO9PVTP75+UJtHjNv+UynvH3ArKrQyYh0SFsXfgOUGDPIsIL zDqekLyd5RviwKFlswZ7iPR/6MG0cjpZNryTOt4k9mV1LAgdRw8ouynY5k17kmUuwKg/ J2m0Gbo7SkoxJd0S6ZlimPNwNgIjYPOc7AYe6qOiUvRuZe+aOni7e/0xeTZTSkt3J74f lkpQ== 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=Z7Rx0C6d6/7/5yg3uB9kdCw4d9C0cgfMEPvtmg+zlZY=; b=pXGR+KdJzG8KahmHeCRqQHXwVBBA4U7WiaKH/h2UxdBvmfH0ZcE2B6UoKzEZZmRSKf yYKL3axcw9eUefvKktvgkOLfWGXZbKxoSrDmE/nz/RnXyxs3n7aTHCaAUk8eNOiJOlfb YcIw3zbopcjQkzqTU5qevFij/2PPtJalddMbRUCtgKOY3/s4hEkvOscd5rgMm27BBv+o wF2gMX7MxGRP5qO7FSVwwJ9pJprz/tjqwuAtPyI6uopDKtXQIcL/E9oOdez8obwbviNc 0DSgpHorSzVh5qZsKnV2ivUUdss6nk9HlHlhHqwa4RKzgPC8eVEQqRxzAk8EIewKCR3l I1KA== X-Gm-Message-State: AOAM5332pfmg7H/tgg/ySZBNWT2Za1ihTGh4KXHPe1kDioh3pTHi++ny DmmgGD8kthH5cAXjXyixcOX+5SqnFK3J0Q== X-Received: by 2002:a1c:63c1:: with SMTP id x184mr394519wmb.138.1599589436290; Tue, 08 Sep 2020 11:23:56 -0700 (PDT) Received: from localhost.localdomain ([176.61.57.127]) by smtp.gmail.com with ESMTPSA id k8sm362516wrl.42.2020.09.08.11.23.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Sep 2020 11:23:55 -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 6/7] wcn36xx: Add wcn36xx_smd_set_bss_vht_params() Date: Tue, 8 Sep 2020 19:24:36 +0100 Message-Id: <20200908182437.2870281-7-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200908182437.2870281-1-bryan.odonoghue@linaro.org> References: <20200908182437.2870281-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_142357_378236_BE8717C5 X-CRM114-Status: GOOD ( 12.85 ) 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:343 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: Add a set of helpers to enable VHT parameter passing
|
expand
|
diff --git a/drivers/net/wireless/ath/wcn36xx/smd.c b/drivers/net/wireless/ath/wcn36xx/smd.c index 14af98af42f3..fa6f5943a43d 100644 --- a/drivers/net/wireless/ath/wcn36xx/smd.c +++ b/drivers/net/wireless/ath/wcn36xx/smd.c @@ -146,6 +146,15 @@ static void wcn36xx_smd_set_bss_ht_params(struct ieee80211_vif *vif, } } +void +wcn36xx_smd_set_bss_vht_params(struct ieee80211_vif *vif, + struct ieee80211_sta *sta, + struct wcn36xx_hal_config_bss_params_v1 *bss) +{ + if (sta && sta->vht_cap.vht_supported) + bss->vht_capable = 1; +} + static void wcn36xx_smd_set_sta_ht_params(struct ieee80211_sta *sta, struct wcn36xx_hal_config_sta_params *sta_params) {
This commit adds wcn36xx_smd_set_bss_vht_params(). The job of this function is to decide if the BSS is VHT capable and if so set the appropriate bit in the BSS parameter structure for passing to the firmware. VHT Channel width set is not set since we don't support 160MHz. Signed-off-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org> --- drivers/net/wireless/ath/wcn36xx/smd.c | 9 +++++++++ 1 file changed, 9 insertions(+) -- 2.27.0 _______________________________________________ wcn36xx mailing list wcn36xx@lists.infradead.org http://lists.infradead.org/mailman/listinfo/wcn36xx