From patchwork Mon Aug 3 03:11:10 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: 247339 Delivered-To: patch@linaro.org Received: by 2002:a92:cc90:0:0:0:0:0 with SMTP id x16csp861462ilo; Sun, 2 Aug 2020 20:12:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwWU82N5g1oSpXLzTMJXVpSEL9JRG2egDAT3JqsEusso3ceb2VjjhIBZsw9UCuhHIEe5OSQ X-Received: by 2002:ac8:b4c:: with SMTP id m12mr13828105qti.321.1596424269685; Sun, 02 Aug 2020 20:11:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596424269; cv=none; d=google.com; s=arc-20160816; b=dhyA/8HdoXsKtQ+TDlZeXfHVgS79zO8Lq9v4ZTz7nY/QXAjhrk1MRORsfvMziKiXC1 BsgDzdHR5kNyKttl6djOI8+9W9X5K15uZlhyychePsmowwwxbtmqDop7j61EsbUOHu4S szfB3cBHFokow0ejbnUa/0NpExSEslJi8Y4BJVH7QVeJzvDCOPpZddba59cZN7hvey0e Xo4f9o/45SFDBiPaV28nxWjAuCQ50A4Vw56SvNABiq+gBUzNYhSAmO0bvVhmvdDIbGVb l5XGZF+fne8oC7xIGqMW4ghESQ3pGZDl8TWXkUXMFEBOGOsHVyl+7MpKopbqojMgjJp/ Z8cQ== 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=IGYVYuTGzdELZNcH7ePDJKmKCjYjEHL/fmXQXn933Ok=; b=gtukoLbp8dT0aMpmg6SoFjvZ46X2H1r5vjhKnNiG2zIffPbfQ5y05bSBKBUJZFro2U QxcjqUe8xWgBfRJ/SFX3qmPtun70Kx0OX6YwS/w8E4YJ1gRa0ri0E0Mg5tP5Ol5Bm67B vFYwJrjk2O1N8Laqf3WQ7xrHaZacgKbAl86/nbhPunHqo7BVD8BbUdbco7aWl+4J6i/G au7qf5U8dSUW/fQcneLmG5WhrKsY+AqHfAVy2hvVia3fM4+1wGVNXBGDaAT+ZhA9HQIw hEJNoZhy7YX0HZof+hWp3b2RdyaymfGPW/aoPUSWs86RLivQmJGz0g5nQlH9khzrZE7k 1AOg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lists.infradead.org header.s=merlin.20170209 header.b=EExjEg5a; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=CrNG9EZk; 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 r8si8497142qvz.122.2020.08.02.20.11.09 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 02 Aug 2020 20:11:09 -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=EExjEg5a; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=CrNG9EZk; 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=IGYVYuTGzdELZNcH7ePDJKmKCjYjEHL/fmXQXn933Ok=; b=EExjEg5aKu+/paZra6xfQ7ifB JPaT6jagiAC5zQFARw0N909Y3cH4PKHmXq25Z5JUgJMvfb9bd1x/35OHYq7BKhwTMbB762sBvE+IK S1ZLZOyHqRfeaYgNooPOYPKSMPX555I7462Bp7uNEK5t1jLVGRIi8EZ/tBJIll4ZVCUmy3zV9kk9R 7x8i3zCwOqrlqvcBFXj5B8cYGgci014b9q9tD1KbSw/iPuez1zUWVc32793xyj0P3Em4D3b5MsNMp mrB4j8K++jzgHgcxBE06BNGEfXTSpjxz5ppAQPr9Y66ZB5qiVp3hWH3cka+x4+b5vprao+FCC8dQz DP5qILNwA==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1k2QsU-0002Wa-7N; Mon, 03 Aug 2020 03:11:06 +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 1k2QsQ-0002UR-Tm for wcn36xx@lists.infradead.org; Mon, 03 Aug 2020 03:11:04 +0000 Received: by mail-wr1-x441.google.com with SMTP id a5so22815977wrm.6 for ; Sun, 02 Aug 2020 20:11:02 -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=IsN/Tm5UUbnXfV08uwv1LnbG1GnG/9PP7eJ2Z/tnej0=; b=CrNG9EZkmha+mhtxCrzJFNWjl18boOBTZ24XTJFK5vskKYM488wv2t0kVKuEuqE4R8 2HI/6ttCevYELidGsrqeiHTA+aNsYablniD0PrYvmFS/pW0jFijkjvn+J2RoCK9mojAx HzfwJKMH0gjx3fc56xzaXrNMel7pWfgPk+qoFM7L3ezaNqvB2VcgOgLtRMQgy2T5GbkY 4fUZmwV/mbQ7wcsX+oMxWWhLsBeydL3QK3oCkl62xWqdeHZD/oLnLW0GEHdHjsYTaiGY bQOX7O8er1DWxhuiYBReTE7QVJ/97Q4zWVBrbw6uhoHHUmOxIWhjT8sxJzEUod24X1mR +NBw== 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=IsN/Tm5UUbnXfV08uwv1LnbG1GnG/9PP7eJ2Z/tnej0=; b=DRN8+W0UrgryK6e/xwuaxnaIVvM6CtOE6qE9qFgzZTGyYbAzAIYgHozOD+ZGdQxHvf BSjRtLcKNFPKJ0LtAHRLnP0jas5CTzFUAt74QWfMvKuSPp9XaQCTGfGO7gI9/OPmhBVr 8eF1lKn/okmVY48LCfOfQwk0Reou80Fa8Qj3mp/KTv2z0Z6w/LDozhMulrMqd3rQ8AFs fRLy2NfEAkuEzFJGrVBHkynnuWudeO0DgpzGTPzT939c0oMx+Z80FNJ3dqFxUrDxhPea KnfvkFUUuJsYH0+gs9EMbe4rQx6g0doSIRUpoe/qv4wIzdVbcNPxVU2DblC1O3M8Cg5E RhbA== X-Gm-Message-State: AOAM531kSJkfAdAwnserSZOw1JrjljssnC7JJ0nq4s7fvS6bpfw383XY /jx8SQ7T26IhdnCNfjSfBPFPpQ== X-Received: by 2002:adf:ea0c:: with SMTP id q12mr12658098wrm.382.1596424262105; Sun, 02 Aug 2020 20:11:02 -0700 (PDT) Received: from localhost.localdomain ([176.61.57.127]) by smtp.gmail.com with ESMTPSA id q2sm21956857wro.8.2020.08.02.20.11.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 02 Aug 2020 20:11:01 -0700 (PDT) From: Bryan O'Donoghue To: kvalo@codeaurora.org Subject: [PATCH 14/36] wcn36xx: Add wcn36xx_smd_set_sta_default_ht_ldpc_params() Date: Mon, 3 Aug 2020 04:11:10 +0100 Message-Id: <20200803031132.1427063-15-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200803031132.1427063-1-bryan.odonoghue@linaro.org> References: <20200803031132.1427063-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-20200802_231103_520407_1C131322 X-CRM114-Status: GOOD ( 11.83 ) 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_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 -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: wcn36xx@lists.infradead.org, shawn.guo@linaro.org, linux-wireless@vger.kernel.org, bryan.odonoghue@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 df7e2125b503..88fb4b7f1356 100644 --- a/drivers/net/wireless/ath/wcn36xx/smd.c +++ b/drivers/net/wireless/ath/wcn36xx/smd.c @@ -205,6 +205,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,