From patchwork Sat Aug 29 03:39:02 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: 248680 Delivered-To: patch@linaro.org Received: by 2002:a92:5b9c:0:0:0:0:0 with SMTP id c28csp1602567ilg; Fri, 28 Aug 2020 20:38:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxqwoZ0f5Yg1OLaWqJ5w9uOZEBPlIAodC0OAalwM9BwV2Aj5mbIe/zO5M8M/bNo6TYcCDxj X-Received: by 2002:a5d:8e12:: with SMTP id e18mr705379iod.99.1598672316301; Fri, 28 Aug 2020 20:38:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598672316; cv=none; d=google.com; s=arc-20160816; b=VV8rrqJLZzqawytfqENs7p/e7u6WxipRVoCpsgd0hvSK2X0qIPEq2mxV0N33xtDRcZ 17tdAf8T2rt8JM/uyK8bfMkjUVxcIEMpBhj0DkPh4uwoCv79at47Pjo5y99TCweugLxI CrqeS4LDwIGWkprZQLfIWIlzA48jBVyGvE0CZrm1+Fi31t3nSPxacid4bxTdslyBwSW0 Xud7Xd9Me4V7qxg0/yOGfemu07rSaxojiMwID0tC6UvYs7qXeKa55AnpTlVzIgq9dXND FxBJtYoA2bI8Roo/QMeqD9QopROtlj2F+SPGgtcMytH0wJQm4unge6x5UvUbpntgYd9K UBKA== 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=Uo22tU8oKc7epBUA2YbDgybkT2nwPZozzrtIWUTSFXs=; b=fvRnhCx0FcMokzA/2Xq35sfTnpsSFI2mExGrCdoqDbw92i/UnUkak7oyPG4ltuC15K OzA+pQPSq32vrux/DwVtrpeuDXqH1cSBZAmqxHryne0NvWir+I7NvL2Jd5/q5+zW1zZ7 vpFe43XNC14Z3vME7e0MZy3EoIESclXiXoIkuWIJOnkxHf/5cpFo4JtRn0LlxfLse6Op vZGKRe5W+Tsxlv2XKXyoFaLtU/Dc8xVgaiogzJ32a2101wu7KQcXL+iSercj/J4ceOU+ pg3qHAO+2DVr90JK+xnlTInlxoeMSRp4OzMG6zDTlgBJiXKu6dbMJLlbABPoidbKw9kE k25A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lists.infradead.org header.s=merlin.20170209 header.b="1A7/ajH6"; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=tFc+jhuO; 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 i12si1137229ilk.10.2020.08.28.20.38.36 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 28 Aug 2020 20:38:36 -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="1A7/ajH6"; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=tFc+jhuO; 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=Uo22tU8oKc7epBUA2YbDgybkT2nwPZozzrtIWUTSFXs=; b=1A7/ajH6QRdWJFAMczckyzbIN 2jgb3vcydcqe5SjyrOcuGjyOhHaZEwMtZmcb9mcDSCWR0GoG/K8xbEwK02O8vMSnxvBGZEH2Ohy2+ /YWZUFo1s1iWfw51+c8MwajmdTLIPPFjCNzmFwtUr9DEVTDWH5+y2+QgcVCzwkU1TnmLSRnd08pQ9 90o+oOkNFLlSvhGaZgtBMNP+LCQwd/wS70d7ceFfLygFaaLPORx/4V9rMFB219+fpXk266yTViR3K FiY3pnryCtvD1Q2Dl0bvPhgatsp7mpmKvlRACOMVLFCG25jOji+yqo+tddpWUXJ/oS63DL9ldYWtU Ihu4E97/Q==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kBrhJ-0002KJ-0g; Sat, 29 Aug 2020 03:38:33 +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 1kBrhF-0002Hr-MU for wcn36xx@lists.infradead.org; Sat, 29 Aug 2020 03:38:30 +0000 Received: by mail-wr1-x443.google.com with SMTP id h15so847932wrt.12 for ; Fri, 28 Aug 2020 20:38:29 -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=Nw0ynGFCG+q9mOyMnMyXRqRYzplLQrlsLY+fl+O+R1g=; b=tFc+jhuOvaf/IhUgxEvbzVJtii6FUuS3haW2/YczCBTPs3vneSeda95BNkYMnJ+vrc bxSWG21p1VyM9Ndoj/RQ0pT/2qUS7s6TRtksUqgGMhEuKZd68u064NWakbZynEVjDJ5T TkX3wZINdU48/UKp6JE/pgxTp2ZnT517UliFTJ0JULKeEzhYrm9UJ7LiVdAoTTvJsCSV d4o/26NsTQwHizbxrYEcFw6bK8DFjgJWYDnczjuDMYFeVWyzjPcW4L/MyvYCsb4ylnAl LsllhwmRJUtqdLPqLoWccAwewEyD7wZfPC5MTcn07+f+Oi0RRT7aRM5ZnZXrynBJOx8x TwIQ== 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=Nw0ynGFCG+q9mOyMnMyXRqRYzplLQrlsLY+fl+O+R1g=; b=XdfaBv595cbFL5vifTKw9r+OY2FhCQCWXUDHTsMpN99u6EBxyxoIzK+YRw4jc874NZ 1eUzR3nRx+Dwq8NctlZU/vXIvqOtPFAymlLUb9d/pUCiutwwCaxxz2rwpFiVtK2z7dGp cxmgkHtFQVFOzvrVINNrptKcrrNMISDdpzGwlo6UD9u/yCELT0Rej00z5se22gXOjYKl WGzpxH2NABBBt5IfRbtsy1wrVVg53iY3a48eHmKmwMA5Oyrz3xD0fUlGIiSeW+ta/Yn8 TNuCUEZBcDScamBIW578o3d4ukT9MlQqYatRhq6fkhDGFRfichXnhqgQvFMsyjCecA2j +f+A== X-Gm-Message-State: AOAM532PYKK98kD7mWDBanrcR9VN52dabi8dFXUtyGVWw039LbMqtuJ1 g1aqSqE5QRnonTX3TChktDvORg== X-Received: by 2002:a5d:458a:: with SMTP id p10mr1781530wrq.187.1598672308820; Fri, 28 Aug 2020 20:38:28 -0700 (PDT) Received: from localhost.localdomain ([176.61.57.127]) by smtp.gmail.com with ESMTPSA id t9sm1649179wmj.47.2020.08.28.20.38.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 28 Aug 2020 20:38:28 -0700 (PDT) From: Bryan O'Donoghue To: kvalo@codeaurora.org, wcn36xx@lists.infradead.org, linux-wireless@vger.kernel.org Subject: [PATCH v2 06/12] wcn36xx: Add wcn36xx_smd_set_sta_default_ht_ldpc_params() Date: Sat, 29 Aug 2020 04:39:02 +0100 Message-Id: <20200829033908.2167689-7-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_233829_768126_D3862F24 X-CRM114-Status: GOOD ( 12.41 ) 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_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 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 | 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 45359e72a877..cf20a0f63259 100644 --- a/drivers/net/wireless/ath/wcn36xx/smd.c +++ b/drivers/net/wireless/ath/wcn36xx/smd.c @@ -206,6 +206,15 @@ static void wcn36xx_smd_set_sta_default_vht_params(struct wcn36xx *wcn, sta_params->vht_tx_bf_enabled = 0; } +static 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,