From patchwork Thu Sep 10 15:05:47 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: 249633 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:ecf:0:0:0:0 with SMTP id i15csp825334ilk; Thu, 10 Sep 2020 08:05:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzuOpFUt8lBdZlRvaNPmc6h+xhgpcx6OpqGCJdAUiHUlgSRH4XJOQsGbg49nQzOp1PKwtfI X-Received: by 2002:a67:8882:: with SMTP id k124mr4149217vsd.27.1599750316354; Thu, 10 Sep 2020 08:05:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599750316; cv=none; d=google.com; s=arc-20160816; b=tc8FWoV9RRKQL+oaDXtFYiXgACxJKX+2y5zQWi1TzzMdlnBgAAWxZA4bk0e7Wq1nPx dWeegZfeNkxsl1v+q/Q23R/rb8k4UtJnGCMkcUBBKPGcueSXGjy6yUezsw1MSDgThEKC TwYBVBbqYP98UWsKWi3uyARhly7DtldpiOVxOELpsd35f3a7PwXBmsKoXB2M/iKKIQte rPQZssydfMLEuX0DFyIZY4Bwhvpymsin/B4ygjviVSXk/tPfQZDoI53/qxKx3H8aJUvZ sKXoBh7oNxT0HdCfaGzVHWaabBrUk+IGIyRxNYEJ0NUCNII3va2gLmcc+Yf0h7y5CtnL q2ug== 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=p+eouTk+stCSpG6+U4OVt6dEzbRylwEo+s6ScLvo3xQ=; b=tnnfNlvnf7j5mk0I6vKMT5BqFTtAgR3npVgJUs1zGlrGGCLAbnRCA5kikUlC3vLlB/ 6Pbf0OYTwJN4L6XrmL1CGXwXrYjdLCNy2hebnsvbebgWTDUwAqXhhRLuKUHUboIP/Wyr hwZS+mW1GscL6+SFV1G82dffQcgeRPYFzxqrbFPVgTc+y1+rKWClxWUDyt7v77OF2OOg VJJwRXb/InM3CndoaFWAgpy63gz56N5gNA/HyE8+pGr9z1QZ63YzIE8br2xoYzspU79+ Gi2iTYWTUg2tfat3mRBuswvZM0fSh6EEqrC/ooOideLHtc/1hPeHJrA540F/UQE8VhHG Y3zA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lists.infradead.org header.s=merlin.20170209 header.b=WRi8Th21; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=RZt1wPIm; 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 y8si922320vsn.258.2020.09.10.08.05.16 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Sep 2020 08:05:16 -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=WRi8Th21; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=RZt1wPIm; 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=p+eouTk+stCSpG6+U4OVt6dEzbRylwEo+s6ScLvo3xQ=; b=WRi8Th21nMsYm++3gHBLvJIi/ M8VOrIJfbc49G+52q7D+0C/oZNLPCk4q3aj0v8IvXgNs2JJw0Sn/45oWWECoeyY9o+gNaEqNWrqYg KViEczZLHvQwLOaApZkQbyJ/7AY9cL5HG7i5xaaWc9hwFOye+l6c8r7/VpznLL59ZQVPstd+MhbKO DQh53o1lwJI2oB5oH5A4jV+/0YsdxA6xDOHEqoi2DqXcyLPDmwvSat3OEaBXZ5Ax5Eg1QlzpmSKuf IqLG3blBwFst602m46yEUMKoGevDjSvvvOKLw24dJ14vllyFJHBgs+cuI0RHgZzWo8zzMcmiP3jgC V4eqLdNHA==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kGO8N-0007Us-NP; Thu, 10 Sep 2020 15:05:11 +0000 Received: from mail-wr1-x441.google.com ([2a00:1450:4864:20::441]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kGO8J-0007S7-KR for wcn36xx@lists.infradead.org; Thu, 10 Sep 2020 15:05:08 +0000 Received: by mail-wr1-x441.google.com with SMTP id j2so7079840wrx.7 for ; Thu, 10 Sep 2020 08:05:07 -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=SKVnCy4wmdEaKgi/x5VI6aI0MpqpfMkf4mS3vr+tRpY=; b=RZt1wPImechtv562sczfWCXSD198o0wSTi3foTtwCQNCxxO7J5KM49Ya0ww0l8APrc DFBpON3JAiQu/UqyRtDdoa2oCRI6RLoLARvnf+KtCLI5QZWaV5oXA5WsJLfJgp/w+4AX Z1R268xv6FE8Ej6PieBybfz+8UKC/pXXTTb9D8JWTiDevserEsn/FrlOSWoFUt2G64pi 0FTTq9FC9sPxVQY2qzjT1Qz6mQsvFMEPHQiWYlcIKdt2nB2GrlDk136TLvVw0j7NYDPQ +Lowx/hmf1jv2VJhYGI7dCG1waJ/GaIHItJI2z/DcphwPIBGONtXeZimSL0NT43gpuI0 l1TQ== 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=SKVnCy4wmdEaKgi/x5VI6aI0MpqpfMkf4mS3vr+tRpY=; b=M/Kd051UeIG2G8mPH6Fl3vtU/nqMU6dcmerfjTD9F3KiGwoGzroQr6EMSctc1U3duS X0G8DH0mMRGeib2DPoqm0LArRCwjR5zZkdkkgd7BQ3dPzR6pIw33B+0vhPlfBZh7B5EP AjYICxPur/ExWnLTgKfvSLJ74oDVALJPvqQAmnhIZp/IJaF+6aA/oWprDAiSGnvK2oJj 21waIChthtoj0GRUNXy3HW5d2V/Ne3m359s5PRscVDyhJHFpU+tFSSUggVPQ1IgfUlaU /6fCX084Cwul6c7OX5biwTPqhLx1KEciZ/Hg6zgnsV4z/mUwZQ8gHSzOTYuPMjFgnj7n ijrQ== X-Gm-Message-State: AOAM533H4lzZgiAlItqYBHMsOg2BUzC4cDzLkvoh2wdsU5p9LJppDSSp 5OJ2B7bTWWzmaePN7Lsyzu2IAx/5SpRnUA== X-Received: by 2002:a5d:67d2:: with SMTP id n18mr9410811wrw.223.1599750306568; Thu, 10 Sep 2020 08:05:06 -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 g8sm3852620wmd.12.2020.09.10.08.05.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Sep 2020 08:05:06 -0700 (PDT) From: Bryan O'Donoghue To: kvalo@codeaurora.org, wcn36xx@lists.infradead.org, linux-wireless@vger.kernel.org Subject: [PATCH v5 2/7] wcn36xx: Add wcn36xx_smd_set_sta_default_vht_params() Date: Thu, 10 Sep 2020 16:05:47 +0100 Message-Id: <20200910150552.2178882-3-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200910150552.2178882-1-bryan.odonoghue@linaro.org> References: <20200910150552.2178882-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-20200910_110507_682262_4628826E X-CRM114-Status: GOOD ( 12.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:441 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: 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 | 18 ++++++++++++++++++ 1 file changed, 18 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 d5ca9907af86..bf584ac382cb 100644 --- a/drivers/net/wireless/ath/wcn36xx/smd.c +++ b/drivers/net/wireless/ath/wcn36xx/smd.c @@ -190,6 +190,24 @@ 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); +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,