Message ID | 20200909153607.2904822-7-bryan.odonoghue@linaro.org |
---|---|
State | New |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a92:5b9c:0:0:0:0:0 with SMTP id c28csp523710ilg; Wed, 9 Sep 2020 08:35:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwCat4Q8AxLE10Hs0/57t4dQ+XRM/MsEICSQSX4DqYgMwfn/z4P5CEgyc5+AvXrJYlS05ml X-Received: by 2002:a05:6e02:bc9:: with SMTP id c9mr4015748ilu.150.1599665733648; Wed, 09 Sep 2020 08:35:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599665733; cv=none; d=google.com; s=arc-20160816; b=C0/DoSp2XRXNEtvG2uKJyigFGYh+j4boyf749oL/oXtQrPb2ZOROYi49LoFj3vNMwK Qkpdf2axGPAjV92XIvcX2z727hK8iRN8YCZRqFRRisN276RQf34eGy851d9TcjuAWv/2 c2VWOnNsV7K30torxe28gwExd3LZfERmMZS7maKJqGdwQQz8kbpalHFUI1pqMUhFo+ji xaMzGNs9WUGfGyqvkNsfMXe6SvAsfSh7KyGFtuAuC25cEvzMBb0UVfmUtQPZgc4ngagY nfqbUBf+v6PJ44bQjNRcNs0bqKRt/IJu4TmTiub+fyJX25uDpnDWxL2vLVZbCbK4Dadl rUSw== 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=H6oOe20/vVL+43KIZ6aTaFkpeY6fMo65429vo6ksmIU4iK9B3nCKkpjO7PU0B96LDW lEFUyLr1kBOpGXM3xnETT+5+6S0Vpw/JGLxDqVz97SgqEwyJTAYd3ODiHU+eZd0NrXq3 /WSBG3jgLyieDxmnDoxcVpSkDD2av+14yL1Q0keNYXB6fhey44ijzVVP/syttoq+RUO9 YD8y7A3zhB2BmwMVkzkrzWSz6t979ZmqBvquXaRdpBySfyS7j8XX/EGrqg/aeD/gQT2Y OWnW0coxKYwolqA8lMA2jtqZKvS73dT+bS2XEkmjrPhOc6U0d6iLRDMqeYp0XZmEhnKq FMPw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lists.infradead.org header.s=merlin.20170209 header.b=qUFeMx88; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=sNE+b88z; 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 i14si1916199jaq.50.2020.09.09.08.35.33 for <patch@linaro.org> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Sep 2020 08:35:33 -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=qUFeMx88; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=sNE+b88z; 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=qUFeMx88AR6hZS0IDyQYjR3W5 CnySGsjsjjLWSuzJxG4ZSC3SWHjn2/8RV9Y23lEatttEMDpaVWjDGLR69GWfT6z3G5oFmEk9D8887 gxoh/XZIca1OMuDUgpLvLXtfAB/DwtpKfLLEm66a3l2sYzeILVs/emTec2xIcNh6Eb8oXY7LtBBRc hdD6eqy/jg4GDFiYzv8FIBK3MS8V2fLio4+z6qrXPb4th4UiaDQogxBGyMbaRaXfuxvTv3kz14kiw dSQqhb4sMuX/IpXf51ND92gAuticboe2fboXibpIO0kKvHIbVHWVPgZo7XxqsA2sBaZgIUqv5YswL bahC19RAw==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kG28A-0006O9-1f; Wed, 09 Sep 2020 15:35:30 +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 1kG286-0006Ly-MH for wcn36xx@lists.infradead.org; Wed, 09 Sep 2020 15:35:28 +0000 Received: by mail-wm1-x341.google.com with SMTP id b79so2820046wmb.4 for <wcn36xx@lists.infradead.org>; Wed, 09 Sep 2020 08:35:26 -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=sNE+b88z3vCssUNGhpsNU9MhqJzm1UaC03/QDnRE3Y22nZjT/1Amo6qflrLXB15Otz q41O3aV10K2m9xekepIcIa6kiViE5QwUJtKCjk7RWf9bsUamNWyAvLdnuV6PEKjFCXaq DAZlUlqQ2WKtOhnFAY1J/lTgUGzcI5Omw1opccMqyh4W4rvXlEIRiB0Q8+mD/kfKiO/7 Kaq7lqwsmtLUGXviTuVdU2S+SluDGjK7k5XbjSGn+HuepKXAeSopPZ+6gj+aV2mLOIBX cdubXu9zNtDMrANpXSICedKOdOZl02PS46qlS0zvl/uH+kMmztYsIhHrcK5xddxNHrRA cSTw== 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=DgRHnHb3A+fjyUTCXhcIE6Q0T9oP/KqYrQ/BqtwfM+hpRLkTnLWLc1cPq5hQ2ONdpQ 2O9kvFR1weFYwdiLXIdacGHfCj701jhob716sKbLV17vxAgsbgtaL5SnYbKMy1CCCUYA OJRRIaOMsZTxnQcsEVEFFeJXLQwcb4KXqzv3G6m1BYIWqVifp864Ip76TrgHpJg2WvKu siByM4Ai15XF4PxnXA/XAgaAqtBRPv3dcGwLMjfMtPB2fIGytwrmqHtridytGMdlRNHO S8H7e8TQEMVAsmNmIyo9ibmOUsNnYmm0yPMbHGz7F2055u61286Rsg8Kz+1G+7AmBz2n T0XA== X-Gm-Message-State: AOAM5309zZ8j8k2HU+HkiZtVko26o5zJS8lA94weWFQEHFpSkhWNWupT CWh1PSv8YbDNUq/nTiWRomriIQ== X-Received: by 2002:a1c:7c1a:: with SMTP id x26mr4322697wmc.112.1599665725760; Wed, 09 Sep 2020 08:35:25 -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 s2sm4473335wrw.96.2020.09.09.08.35.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Sep 2020 08:35:25 -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 v4 6/7] wcn36xx: Add wcn36xx_smd_set_bss_vht_params() Date: Wed, 9 Sep 2020 16:36:06 +0100 Message-Id: <20200909153607.2904822-7-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200909153607.2904822-1-bryan.odonoghue@linaro.org> References: <20200909153607.2904822-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-20200909_113526_760903_5754B07B X-CRM114-Status: GOOD ( 11.70 ) 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_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: 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