From patchwork Sat Aug 29 03:39:05 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bryan O'Donoghue X-Patchwork-Id: 248683 Delivered-To: patch@linaro.org Received: by 2002:a92:5b9c:0:0:0:0:0 with SMTP id c28csp1602588ilg; Fri, 28 Aug 2020 20:38:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz2jSFyx/TaueJ0eEjXKhMxanqNqZze7GnWMegEvP7BIeCAgHFET5cbFqMVn6fJWxURpuGl X-Received: by 2002:a92:c0c8:: with SMTP id t8mr1429041ilf.245.1598672318582; Fri, 28 Aug 2020 20:38:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598672318; cv=none; d=google.com; s=arc-20160816; b=HA0f0dvc/IhJvI2pgkOGIzNgIeajCXWdVO+/OJB++FJKzRb2t/JVaOu8DVrni8XPSN ifbbrGNUOQXKqA0/9SXuvvcJDdLIp6aYcm7FkhzNEejvhxFMk8GWU23IX8i2V96h1Mvg 0hSMxjdkMsRj6MaRyYROh1kgo4i8W+Z27K0GJC9ybUS6IpMZVlRwGIHqRVABQl5TdwA1 XJo9/xyTW/GBjXCg/T7RwLA7Zl1G62G6z3fCnF7IYd6cOlfL22OwBbR1d4frpmhlc9+t on8D0dkV8urkdiJI94zfle4DLbY170vqe/wGG/zgvmagCtIGDYo1jg+LAPqxRC5j2rs4 ZMNg== 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=A8Iry9cWWPxDeyTi2MLltB3e6C8kOnYL1tyL13J0xHM=; b=VKlZBE0DdVe53YfSUfxUvgdMu1DUwAeUYzKp/bKqkLlLYg5yw8P/o4yN49hvqJ0aGD NBE5EgI+1kxTEefeC9kEOTb6HVLMoaDxstvEakpiEzzKWF18FuKYF/gU2IkUv+lOQmRQ OgI3R8Oc6jKWqmhASvz0uG7VwvNfF8mTl8Gyxt2BA9sQmd+DH69rMuzNEw7itKL6nPxP mHTegZmc8eo8cct0tyA6yJfx2ER83lvLIY1QmDUAhNhjfXavRNe02ntIMMQyx7FqfoQY xM4fRgSX/XjOKN2oDe4hkRVbmaoxrGkP+e+Z105JBZsyvArB1J+5Oi5n0lw7VKRjcZCX h8Og== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lists.infradead.org header.s=merlin.20170209 header.b=aueEn33Z; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=c5csRQit; 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: Received: from merlin.infradead.org (merlin.infradead.org. [2001:8b0:10b:1231::1]) by mx.google.com with ESMTPS id r13si778082iod.0.2020.08.28.20.38.38 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 28 Aug 2020 20:38:38 -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=aueEn33Z; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=c5csRQit; 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=A8Iry9cWWPxDeyTi2MLltB3e6C8kOnYL1tyL13J0xHM=; b=aueEn33Z+eDu8VXdxRX5fuOIB I2EcLne3oB5R3ERnL7dvkolhILstnnTAQXO6Q1/H3Ij6LJVNJWkv//fAjxuhT/+X+uhN9ji/cURIs GX4r3IDun4m95ufPWBmCoNGh11Bb2Ui4Rxgd6keJ+f+cdCAu1IH9B4wvgEI7z0BX7npmisHzmczVu TxZVsOkrhH4TGSDz4n7hDCwjNtKpibq9TdLn+FfN8n5y6/somFPujE+jlmecSBTMrCgaMDAu2293F puQ7vtz2A+0fixE1C3DEiCGRPUaWaCMyZDZpMk+abV5mWKATGczH33YOhV/kfDXs4Ti50Lbhrs14S VfZCdrOfA==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kBrhL-0002MY-MW; Sat, 29 Aug 2020 03:38:35 +0000 Received: from mail-wr1-x442.google.com ([2a00:1450:4864:20::442]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kBrhI-0002Ju-OQ for wcn36xx@lists.infradead.org; Sat, 29 Aug 2020 03:38:33 +0000 Received: by mail-wr1-x442.google.com with SMTP id e16so894681wrm.2 for ; Fri, 28 Aug 2020 20:38:32 -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=LAUjl4qBWaw4FcREKzPLcJ67Zc3Yyp+jTDTvGFFFspg=; b=c5csRQitPGDzMhYdd0ShpPj6QcsJdqwWprevOTnXxEApgBLAqjvR4YO5xjoUeQbgNO gl4cENIUNCuxH5z0awvX0dno2adhCrE2KIPB8VwcttmYu6VkfXpr+ic6xdo+lQZELrv/ agbwA6GNL11ftA1z7cx9bPmXj3Ka/Q0Wlr3Uvty7Wv5RIR3easZEIsdRafGWoestijim 0Q00WclE4CiPNCAx7Zo9g9BatU5YeaHHXz/mCiAPwuyo21SsHk9Fp0O28IMQ383Cvafy 0Cit4J2BPivECRtXHLGX+tqLucaBVDSrBPsUWN6HD0ucXTDQB4/3bE7VWhDgW7uTDt8b DVhA== 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=LAUjl4qBWaw4FcREKzPLcJ67Zc3Yyp+jTDTvGFFFspg=; b=S4UJUG2MGTEvnfzTuZKKj1kEQ1N+pqFNP+9bKDzbPXb5Ls4/OfUU9QFdVIuGZa9KxF ch3xmZ6B2MG/P4HGYLjXdvrtGdE2FzX2wvFyClWx0kngt4d9AOgY/Ov1z3qKKXngoOzl hLNPYTq8vDCHs3AhMfiOn9zdH7rp5Ob41iUyzrINYe2oYmRoTcnR5XgV7C6N9RX6bq/P NaYxXfygv/tc5QwOOuClV1euA4a7wI0tkuvZ89ojHiI9gu1QmuwFK+XHDwlc0+A/Revt EDy53cwbfmL2u+4RXDtuYyHmr1KLPlgxESEsZIc0DBRXODx38dhYqmP4ai9eeF1qUUeU 1Ulw== X-Gm-Message-State: AOAM533L79YvMKgUZ30nYNRCx9IsVztQ9xnyCCkAGXq9Yd7gWVtwYtd/ e+l9ruLfzKGR9TjEl+wMEFBTIw== X-Received: by 2002:a5d:50c7:: with SMTP id f7mr586054wrt.367.1598672311921; Fri, 28 Aug 2020 20:38:31 -0700 (PDT) Received: from localhost.localdomain ([176.61.57.127]) by smtp.gmail.com with ESMTPSA id t9sm1649179wmj.47.2020.08.28.20.38.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 28 Aug 2020 20:38:31 -0700 (PDT) From: Bryan O'Donoghue To: kvalo@codeaurora.org, wcn36xx@lists.infradead.org, linux-wireless@vger.kernel.org Subject: [PATCH v2 09/12] wcn36xx: Add wcn36xx_smd_set_bss_vht_params() Date: Sat, 29 Aug 2020 04:39:05 +0100 Message-Id: <20200829033908.2167689-10-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200829033908.2167689-1-bryan.odonoghue@linaro.org> References: <20200829033908.2167689-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-20200828_233832_818925_7DE7F250 X-CRM114-Status: GOOD ( 12.75 ) 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:442 listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -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 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 X-BeenThere: wcn36xx@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: bryan.odonoghue@linaro.org, shawn.guo@linaro.org, loic.poulain@linaro.org Sender: "wcn36xx" Errors-To: wcn36xx-bounces+patch=linaro.org@lists.infradead.org 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 --- 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 diff --git a/drivers/net/wireless/ath/wcn36xx/smd.c b/drivers/net/wireless/ath/wcn36xx/smd.c index a6106ba9cc89..b311b170fd36 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, } } +static 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) {