From patchwork Thu Sep 10 15:05:48 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: 249631 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:ecf:0:0:0:0 with SMTP id i15csp825323ilk; Thu, 10 Sep 2020 08:05:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzjypuP1YJBUp6gK3FPeH0blBO3zA2TT/TGOzQUmHSKcws9GmXe8OQ1NtWsEQusOItnfzb6 X-Received: by 2002:a4a:5258:: with SMTP id d85mr4735449oob.72.1599750316446; 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=bF/YxPQRqErNGwfbiEjjqtJlXZcMDmv984YMrvk1MmTx2EsBf3a8zU4Lx3fAoloI92 H39BdqBEBkccgBC9z9H42Yjdet+7Lacl2SSu5pJ+sp1wIYOdAhrmGcd4Rqc2BuQiCJxq VlSpQd1cVhl8EB5xiFYu6kO8mfPch2+AFH7AWLx8+sYELNhUeVmUe13dMX9OXqFCOsc+ FeDov+sHwzGdRYe/Ao9hG8CMS7NdeHwMk0Bl7y7FKPg9CtIACZfzq8gEemlg3qVF9VN+ h9wXP5xxsGNc1JhLadiRexjh5tbQq9sWLzHbpAPMB+SvzQDXrKjWIUOKiE/9K0FyBwWo sPVQ== 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=0zKpeZDMnLROqtfMkojD+gmIza19rOA9oSDnvcJrgZo=; b=VBtlFhcRRofASwQLhlCaZVkHF3ivgGkAsJ3g+iMrPAznvXgJVI83zNQSP7f8y+8/4m KkBPqgHleVbpUu8xBgJuHvSk1KdemMVPy81yaiyXsfjiczsmMZkRHAlIp0scNpH9cBLh IeSvBofroUHbyOJ6In5P3eNC6GAG9S2J5bYuh/4MsOmsypybxKbc1Xe39b/u3TDQ1v5Q mz6AFnVkptnxRbOAXwpJmumZdr5pRIGWQs5ERWQqdX1gkDv8sNFqBGwOs3eZTXtx06pe 7OP5s8ayZ72e9tF5eo4S0jXaVm4UOKJbFofVJBDWrYkPcaI5kGhAEgj7dWWi77CxOzYZ qTpw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lists.infradead.org header.s=merlin.20170209 header.b=3HpmDwvz; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=evEgOTzg; 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 l8si2922747ota.123.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=3HpmDwvz; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=evEgOTzg; 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=0zKpeZDMnLROqtfMkojD+gmIza19rOA9oSDnvcJrgZo=; b=3HpmDwvzPZyayLtFcKrJ/dZns dwLkQ8ZVIJexLg0TdLV/9iZd9i+kswKAXxvsy0r585W6smw/rVsU1lXwRXYvxp3EwJujRVjkuwBaU OSKmcgP9PqwExWoEnje8/nC6LMHt64nFEeMq3pox4Crj7k4Ud/GxBRdDrHmTpI9fHs7uhmXGz9njQ OfgVKBc/3zGlc2NE/KcTtxtcl2R8RDI0GVhhw6UY+pn5ao1uP9roGpmQlFV5dhwGiT4gCxiKBB4I1 pP8lzRjqy5YXgS2J0phUwD4X08OCNC285Rrw3SObeKpGQ+ViwAtaHHxG+gbZqbpsRONYD3L67nPGt LtoOCcECg==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kGO8P-0007Vx-AI; Thu, 10 Sep 2020 15:05:13 +0000 Received: from mail-wr1-x443.google.com ([2a00:1450:4864:20::443]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kGO8K-0007Sq-Rd for wcn36xx@lists.infradead.org; Thu, 10 Sep 2020 15:05:10 +0000 Received: by mail-wr1-x443.google.com with SMTP id z1so7086453wrt.3 for ; Thu, 10 Sep 2020 08:05:08 -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=7wpHFXT43hTfOLrdx99kEARdkSVehiZDUWZ0k5+bAcM=; b=evEgOTzgaaH6t8OrC3OfLOrvtmjvvtWy6/oM6kpfQZFueL4RDlMs/NaNMf46+bZmji BHWyrDr15M1vvd5h/mt6thxXPuAeX8FKslzAGvLv6f523ZSH3aM5vaoZ7vYZm3olM0Na F2/J0wlidFiQZH+2a/ym0wNxkk+ZHgu1nal2TwQzRgSvD+3CAJeq3je22NnkcbrRN9N1 fOlJUFfH+ceujS+6q0xe26LRWmPXOk1BVPSZCxHvZeC/YUvBeVJ0L8JP5bVMMdXg4cjm evAGlZPFCo2hJiFn/hIqycA2bXWmXsZsHn3ylPbbPab2oHuW2uF5NxEue+vyeg25nl3H er7g== 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=7wpHFXT43hTfOLrdx99kEARdkSVehiZDUWZ0k5+bAcM=; b=pJ1vCRbfv1efoAw6webt0IhoYUjXk1Lzlz+xBgUKDT++Un3jRaAbyeD1OsknLKJCfr Ue1RLx55erSCdcAwGLrwFqpPnm4qv6k0ZorVuU5z/UDtHYHe0cYofYlT7O/DeJlJF9Xf cZ/1svXT50jq1U0yJsKoON4L89RjiEW82m/Y9aV00dhV9i04UnYIBqSKjjXinhDruJ9E zpiwB+wzaELAxVtprOG5egX48UO9jjG8ec5rOgmuXqvnbABjNxJtcpkuX02a/UEpSjwT ukIzOERjLOq2AjMFRWT4ne/OrbVJOF06ZeNc/1Ev9GDLfkiUDgeHi075XizAcRR1UO3g j4tw== X-Gm-Message-State: AOAM531gDGB+J1MrzPAr+eqThDICGUT0msvjoytxJcT3pw53tnE2CTGC 3o3y44iqFvCpV+Qp1c0JPtKofFlrJnnZEg== X-Received: by 2002:a5d:4f85:: with SMTP id d5mr9470628wru.7.1599750307766; Thu, 10 Sep 2020 08:05:07 -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.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Sep 2020 08:05:07 -0700 (PDT) From: Bryan O'Donoghue To: kvalo@codeaurora.org, wcn36xx@lists.infradead.org, linux-wireless@vger.kernel.org Subject: [PATCH v5 3/7] wcn36xx: Add wcn36xx_smd_set_sta_default_ht_ldpc_params() Date: Thu, 10 Sep 2020 16:05:48 +0100 Message-Id: <20200910150552.2178882-4-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_110508_898999_C2FFDD3D X-CRM114-Status: GOOD ( 11.45 ) 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:443 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 Toggling the LDPC enabled bit is possible only via the extended V1 data-structure. This function provides a means of setting the default depending on chip-type. Signed-off-by: Bryan O'Donoghue --- drivers/net/wireless/ath/wcn36xx/smd.c | 11 +++++++++++ 1 file changed, 11 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 bf584ac382cb..e926bbaec220 100644 --- a/drivers/net/wireless/ath/wcn36xx/smd.c +++ b/drivers/net/wireless/ath/wcn36xx/smd.c @@ -208,6 +208,17 @@ void wcn36xx_smd_set_sta_default_vht_params(struct wcn36xx *wcn, sta_params->vht_tx_bf_enabled = 0; } +void wcn36xx_smd_set_sta_default_ht_ldpc_params(struct wcn36xx *wcn, + struct wcn36xx_hal_config_sta_params_v1 *sta_params); +void wcn36xx_smd_set_sta_default_ht_ldpc_params(struct wcn36xx *wcn, + struct wcn36xx_hal_config_sta_params_v1 *sta_params) +{ + if (wcn->rf_id == RF_IRIS_WCN3680) + sta_params->ht_ldpc_enabled = 1; + else + sta_params->ht_ldpc_enabled = 0; +} + static void wcn36xx_smd_set_sta_params(struct wcn36xx *wcn, struct ieee80211_vif *vif, struct ieee80211_sta *sta,