Message ID | 20200909153607.2904822-4-bryan.odonoghue@linaro.org |
---|---|
State | New |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a92:5b9c:0:0:0:0:0 with SMTP id c28csp523663ilg; Wed, 9 Sep 2020 08:35:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw4Qhih1lTWLK1VeNrQvRS3pPu0HHINZ4Oj7sBAZGI3fq+d0XIvcp1X1XPxFbm+RK3TueI/ X-Received: by 2002:a05:6602:1602:: with SMTP id x2mr3907803iow.22.1599665730530; Wed, 09 Sep 2020 08:35:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599665730; cv=none; d=google.com; s=arc-20160816; b=DXd6wg0nqeP/aXMt/Qj/2WJxqTMskVoh9uqMqgKSnN87QI2Sae2KKXhoK56F2C2RTI Bu+ViksKZHEmvvTidx6tEi8aTBM1oain3BBq5clKW24q23oMJDSXjEG2TrMiFTEvI8+r qL54lwgtDDPmzf77pPg715PMB6ZDuSC629Zym4BlPjfORcy/LBzEWZslkfTlUJ4V5Ybt BSefShFWOtoVZKnWwRuzBLJyTPYdUsNfkh8xpHQ7GYMZvLpfbFzlTFEu75KlG/vMFe7r ZRjS7ej/iZgp3zQuhZnL3NqJVCRS970qPfn0J4484BeLUbnRtkEMmBF5hwg+06VJnYQr haCw== 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=vNF8a1DJjFgP3RybtRwhN0d3/D9+PJ5WTJIHuvFRYic=; b=EML0w74F9KKKtDxvdWuThvPsHPROvogLI6SgROikCkYay/H2PXEnOm8jAGcG6KJeRE 31YQqhy6+BxpdB5/KHyVKhcd4YabnteQmb1LsqEq34GQhcTLuHsoX86x/gzFM3wWsrN7 sWb1oTEMsl86C4KDIg8vug5QmKjOB8tZFtHgTzWg02PXylIZi4vYIYrj1LvXfXq555Px B2b8GX6u5QRHHzgNT0oFaPHSebfeZwx+jsFn8B3UtFdM5S5wdxyuJElPY8L8wCCH2srm SZ8+av1kzVcw82FCcHadUzcAcaP/dW8bF16SPYk/35DYg/6RE3QlLfi/aP9E1Mi71XIq tyfA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lists.infradead.org header.s=merlin.20170209 header.b=1kdqMW2c; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=mrzHj7Pk; 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: <wcn36xx-bounces+patch=linaro.org@lists.infradead.org> Received: from merlin.infradead.org (merlin.infradead.org. [2001:8b0:10b:1231::1]) by mx.google.com with ESMTPS id q5si2086483ilj.97.2020.09.09.08.35.30 for <patch@linaro.org> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Sep 2020 08:35:30 -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=1kdqMW2c; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=mrzHj7Pk; 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=vNF8a1DJjFgP3RybtRwhN0d3/D9+PJ5WTJIHuvFRYic=; b=1kdqMW2c/msAWhLlnIkabiTQr eu7dgdT8thJ4NnjNOmWPlWJgn857s8t5rXUOXPbBds3grb75eZD0m8S2zWl2Hjb0YOy15S5USHOE6 NZ+yWkVur/egFtyjtXBoAWwdCN4QHnKCyYNW51NcyOlwJpYLLiSKf9tRbHKEfnoeiMg89XzF79mfE qmAG1ovwYbLj9MPUb1u/skuR+v/WHsDeOEAfjtVvgbbORdoR6vN8U5HKw8VbNHNdMRs+InzWK9HWp nAO7OAHctqr/sStaPKk1iCRQl/BznibPVdXY42vKxQQYNwq7nvIOvP8aMRmeOwVR9Pzg9XcoIiDM9 rhlFrLr3Q==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kG287-0006Mg-7t; Wed, 09 Sep 2020 15:35:27 +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 1kG283-0006KW-IW for wcn36xx@lists.infradead.org; Wed, 09 Sep 2020 15:35:25 +0000 Received: by mail-wr1-x441.google.com with SMTP id t10so3477633wrv.1 for <wcn36xx@lists.infradead.org>; Wed, 09 Sep 2020 08:35:23 -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=YvzZFSwrpgxQ+WGjQnmFyunvxfM/MsB1Cn6EiHCvmSY=; b=mrzHj7PkoKxaWbAiMRcoNDlZ2GZ8PDAayUNOVzfyIYiPaWME9V0JZp/E+cb7sSCYTg ICEb8H5GobNU/iI88f8jZP3S60JNE8EFmAvmBDm/AuWk022IU1Z/BUlZCtd+xCyji52o 92kOq7Oo9zF+XzYpwm0guUQZG/dJLXzWHKO7S32hmcJbu8o1V3qTcy4y6TEsojREDv/2 jOVoJNZGmAdYC6e0BFUB97mv0g7f791yygtQh0Jte+cFmS4+AwCfyfzwm2RTV+Gq5CA0 QhlGPfMRcgAd9+IZ+yU2iYsc/Z+eky6dToSGZ5GV3rp5uqvBX5blm7xlv1SY01sAgthv r0GA== 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=YvzZFSwrpgxQ+WGjQnmFyunvxfM/MsB1Cn6EiHCvmSY=; b=WvTK25FbScbLRDMRSRyBVBGpaIZZdHlMgJ4cyAox6yP7mnfPA2hcIUbOc5GQL8O0dJ vaUdF/IkIcxE2VqOtA4DkHol1UuATjMDAFpT0bnJiBhAdLwTes8pG0GkyuqZ3J+6Zewh QOWoBrb0L+sMuLScWH2vCsCk+j4jNi2yjDPLSOynpy6/2sIfY2xg2G6e/QR6rrDfE7Wm H8XN+Qkk28MYib71z+95B5GTapagBBYIDboXirWrc9aV257XTUbFOOMHXnBS9ODZ8eEC lDVE2e2vH/Xr30hZuDKPPGyn4MUMx+EqKGzbgFJKUKxS1YQK9oq8K0WO2rTUFAvo2Vlw wrsQ== X-Gm-Message-State: AOAM531tKsWyleiQtw80U7jWX6MWg2b+KxXfsJhFPDpnOLJXnIgsDt7W JCZb/jrT5c+bM2Fz5aknQqSHqA== X-Received: by 2002:a05:6000:100c:: with SMTP id a12mr4731941wrx.115.1599665722734; Wed, 09 Sep 2020 08:35:22 -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 s2sm4473335wrw.96.2020.09.09.08.35.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Sep 2020 08:35:22 -0700 (PDT) From: Bryan O'Donoghue <bryan.odonoghue@linaro.org> To: kvalo@codeaurora.org, wcn36xx@lists.infradead.org, linux-wireless@vger.kernel.org Subject: [PATCH v4 3/7] wcn36xx: Add wcn36xx_smd_set_sta_default_ht_ldpc_params() Date: Wed, 9 Sep 2020 16:36:03 +0100 Message-Id: <20200909153607.2904822-4-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200909153607.2904822-1-bryan.odonoghue@linaro.org> References: <20200909153607.2904822-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-20200909_113523_619461_0ED5854F X-CRM114-Status: GOOD ( 11.24 ) 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: <wcn36xx.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/wcn36xx>, <mailto:wcn36xx-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/wcn36xx/> List-Post: <mailto:wcn36xx@lists.infradead.org> List-Help: <mailto:wcn36xx-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/wcn36xx>, <mailto:wcn36xx-request@lists.infradead.org?subject=subscribe> Cc: bryan.odonoghue@linaro.org, shawn.guo@linaro.org, loic.poulain@linaro.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "wcn36xx" <wcn36xx-bounces@lists.infradead.org> Errors-To: wcn36xx-bounces+patch=linaro.org@lists.infradead.org |
Series |
wcn36xx: Add a set of helpers to enable VHT parameter passing
|
expand
|
diff --git a/drivers/net/wireless/ath/wcn36xx/smd.c b/drivers/net/wireless/ath/wcn36xx/smd.c index bb31c4d4d9a8..3f57acfe11bb 100644 --- a/drivers/net/wireless/ath/wcn36xx/smd.c +++ b/drivers/net/wireless/ath/wcn36xx/smd.c @@ -206,6 +206,15 @@ 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) +{ + 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,
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 <bryan.odonoghue@linaro.org> --- 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