From patchwork Tue Sep 8 18:24:32 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: 249316 Delivered-To: patch@linaro.org Received: by 2002:a92:5b9c:0:0:0:0:0 with SMTP id c28csp4791360ilg; Tue, 8 Sep 2020 11:24:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxHLKfXbbZgqi7y9Mfx3u9cLF0VQlTYPPRKXMlKSu2BeitmFEfdAj6Ws0vYgDgK+V/a1duh X-Received: by 2002:a02:c942:: with SMTP id u2mr233349jao.114.1599589440251; Tue, 08 Sep 2020 11:24:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599589440; cv=none; d=google.com; s=arc-20160816; b=c22wWkkRgT5HfrZiaQGh8RHFHugYOS0BS71cSQGXkAcCnEMIps7RCAbaI9TS5HJGJN qnmAlywA30WLLxlfOYatDSlnmPvMUKW6N9ehNftFwlIRG1l2pnp+KyhHT4aKyHMN0i1t yhgZ2XHymug+czoklkHRIzOdWBzhqwyT2CifvayGapj+N8QhgL1SP1jOAtKsYBSk8lev pa7VM77WYXaBezETG9zoVFejoK5e9BQcN4Nz5O4axWoRoVWmFZBpZBKjOq2pG2fRHyhI WIzB5JR5ZplFxg4p3TE2Hdwda1QUB/HAUvnzPa7f6GvJdXrbNLP/WG39eCU5ZpcYivLj guaQ== 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=M1a8FriXqs3XJjafX+h2cYWgygRO9V/OqTsEwiJMg30=; b=myGOqWZXqlq4qViqOqD2xSDTuvHyY7XdQE1hm7+rsQ1XkPC2dnl2bAb4tPpiTFLPg5 XMpR8Nk8LKCuWpzLUAFHd9TMfRHAIQ3llzNTdFlHYUTbhLX8KHxzYwyy5Fl5qxXp9beA JzH5f6VUW1AkcbWmf5ab4s8psFK4JljFZ0oTjeO/XJMWbKdZD7MJEKg7n8/lcVm5Zsxv +htc+Yz6AuoJsQx1m9K3Ao4y6RW2iVsAR6B02L7RxdL8twKNe6dBCvES4ryVPQ1lTD4g cGu7lMZyhUEg2AJWw0xZd7di1L5PmaHJ9m089AvVc9PIQP1HVUpiaO+JqSDYvbFVb5/B jPDw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lists.infradead.org header.s=merlin.20170209 header.b=akVQ1m+j; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=rlVXfZHZ; 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 m3si386465ilj.81.2020.09.08.11.24.00 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Sep 2020 11:24:00 -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=akVQ1m+j; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=rlVXfZHZ; 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=M1a8FriXqs3XJjafX+h2cYWgygRO9V/OqTsEwiJMg30=; b=akVQ1m+jJURZ2AsFkBC+i+ViL 5YeJ/WTTbSlSsDVCczxAEFoagSaQLQ/5U/EypVFv4Bc5nJgDUwx53r2aW54wJcstPyUL8xi8S71SG awN3UzjlO5j3dg0uUihj82bFMVcRh7gn2iSb4k3x340f+qsG/25Mcw57hniFFaQD7nL49EwXDwb98 MdKBebu9t3+VdndRVBo91UbNTQF70OZgAMytV2P65qjCJHxNSpnc/r45zmDGTw/gTefmW5d+oa23Q zdZz5qwDGbPs+VimQywhUI72urWfXKdaRsUs4Ub2w7J7NoC0mhg5rkoIE1qBRQJ5KKiAdLapahxw7 nNQojPaNg==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kFiHc-0004zp-Cw; Tue, 08 Sep 2020 18:23:56 +0000 Received: from mail-wm1-x344.google.com ([2a00:1450:4864:20::344]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kFiHZ-0004xg-Ro for wcn36xx@lists.infradead.org; Tue, 08 Sep 2020 18:23:54 +0000 Received: by mail-wm1-x344.google.com with SMTP id l9so303502wme.3 for ; Tue, 08 Sep 2020 11:23:53 -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=XRk+Q9bEx9jVxUktPh3Y718LsTPSVLh7wgm2w67dQZg=; b=rlVXfZHZTQ8fR/OJyfrsuIAIwYMSj1mSlKU9L76KwedlHBg3VpWf63pguI3doij2A5 ASkLZsv3ka8Dd9LjTZzsj3HiHn42wqAU5u/txDu96Ow8WadDdmtpBMpQaDWNxHolH/g3 PFpU36A9wLoLF2jnb8avElhwQbgM7KvlWgGp0NdakcK0MunWu+AMIKy+PqP9ou4PqaZF aLCLm7u2IVGODPdiaokIRYOibLBJ9COsXMuWLmO9KEWNqNzk0UHaCViLiLpGGOENjGfE c3zaw+8MrYySOUvisYmUJ4wpfF2HRd2VK216qnJFUf08rYmdt71Ei1R3fI9tHHdXKlPY b43g== 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=XRk+Q9bEx9jVxUktPh3Y718LsTPSVLh7wgm2w67dQZg=; b=cn7msehjWZyhEKP4KNqGN4vvu6t6hIZ1IuUJ8RzwhGN4atOSICDaNMnAqXneMDyVdz lK88G62JAbNsSEXWQpO/xSqd6f1cWglDGhoY5MGkkZuCUAyt80mTrV0+RKtiuN//leGL tOQPPkn9lxbQsHY5bmpv/l/w9GoxiGDv6PjVM8qRmF9LrPMDgmsqssz979uPaXL363VL Cdq7kpuE8TCRKoThe9ZQ7EC+ciSpF1vRE2gjZ2y3zjAFE9q9yQpOEkzjSraV1+5UxkL+ GPVc9abq0JdJiMvzPS6Q7Gthlboiw8cApsgHARweNhVRo4jm+bzmnMSJjgrPlTFMqZnI 3A4w== X-Gm-Message-State: AOAM532o7pFqLAlAj+vEIm3GfbnvlWabIsFuv0Q7fYyWsxJdOvGwW3wg Z5/jgp3rH57Lh4O7obn7kCs2HA== X-Received: by 2002:a1c:f214:: with SMTP id s20mr396218wmc.84.1599589432446; Tue, 08 Sep 2020 11:23:52 -0700 (PDT) Received: from localhost.localdomain ([176.61.57.127]) by smtp.gmail.com with ESMTPSA id k8sm362516wrl.42.2020.09.08.11.23.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Sep 2020 11:23:52 -0700 (PDT) From: Bryan O'Donoghue To: kvalo@codeaurora.org, wcn36xx@lists.infradead.org, linux-wireless@vger.kernel.org Subject: [PATCH v3 2/7] wcn36xx: Add wcn36xx_smd_set_sta_default_vht_params() Date: Tue, 8 Sep 2020 19:24:32 +0100 Message-Id: <20200908182437.2870281-3-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_142353_922687_87ED482D X-CRM114-Status: GOOD ( 13.20 ) 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:344 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: 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 support for setting default VHT parameters, which are exposed by the extended version 1 STA parameter type. Signed-off-by: Bryan O'Donoghue --- drivers/net/wireless/ath/wcn36xx/smd.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) -- 2.27.0 _______________________________________________ wcn36xx mailing list wcn36xx@lists.infradead.org http://lists.infradead.org/mailman/listinfo/wcn36xx Reported-by: kernel test robot diff --git a/drivers/net/wireless/ath/wcn36xx/smd.c b/drivers/net/wireless/ath/wcn36xx/smd.c index d5ca9907af86..bb31c4d4d9a8 100644 --- a/drivers/net/wireless/ath/wcn36xx/smd.c +++ b/drivers/net/wireless/ath/wcn36xx/smd.c @@ -190,6 +190,22 @@ static void wcn36xx_smd_set_sta_default_ht_params( sta_params->dsss_cck_mode_40mhz = 1; } +void wcn36xx_smd_set_sta_default_vht_params(struct wcn36xx *wcn, + struct wcn36xx_hal_config_sta_params_v1 *sta_params) +{ + if (wcn->rf_id == RF_IRIS_WCN3680) { + sta_params->vht_capable = 1; + sta_params->vht_tx_mu_beamformee_capable = 1; + } else { + sta_params->vht_capable = 0; + sta_params->vht_tx_mu_beamformee_capable = 0; + } + + sta_params->vht_ldpc_enabled = 0; + sta_params->vht_tx_channel_width_set = 0; + sta_params->vht_tx_bf_enabled = 0; +} + static void wcn36xx_smd_set_sta_params(struct wcn36xx *wcn, struct ieee80211_vif *vif, struct ieee80211_sta *sta,