From patchwork Sat Aug 29 03:39:04 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: 248682 Delivered-To: patch@linaro.org Received: by 2002:a92:5b9c:0:0:0:0:0 with SMTP id c28csp1602576ilg; Fri, 28 Aug 2020 20:38:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz/9hc+Gc3GCYY1XD60x+KzWgOWDkZ/fl4fWaj99aaxPtjDqKAJBf6/zxra4o6GHasCDsh3 X-Received: by 2002:a05:6e02:1387:: with SMTP id d7mr1480694ilo.182.1598672317364; Fri, 28 Aug 2020 20:38:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598672317; cv=none; d=google.com; s=arc-20160816; b=KeOmKMdNTdxXvND7dQF5UcPSsPm91lwVbbeyc6GZHJbiEpSbiNCUNI7JC+tOq4jE5T /dky7hd75XvnZCCcJTziECe4TpOpSFmAK+oFZzzZGr8Ju6aSyoz+GJ2yEDrHoPgVun1i M6iuSawJ2iPtURoMaMsANhtj1ZB41AwrCl2BY+CtTFuR9G1sWSA5eJbcIkiWLpQ6eoet AyigLQLG5/O4naFCrNgfusc/mU6bJa+xe1XoZKSuTmyIe9WK80GlGKt4/P1v6Mtt/TZN IOB/HJo45oBTBRLNGnWLfZYPYTkOoOAYwkyUk4IC5JR2ItpA8t1hV5ZWVzNj3EXdlIzo hzig== 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=h/SYpoJtWc3GZfzfKQ1sSTtO5UCLfPnJjNkyVdVtL+U=; b=Z+ftYHJWg03MZf0zW9bERw9USeL+qfQXszJi2UZyfh0jZZ22gSLnC5tM/bXEUI3Kaw ntrFXDautdYufpH3IspuLDn9xUSUjSHgMdFQDWJwBX7E0DU7AUAkB2dMp+pmYm2coQpZ GdFQeBauJYk6qC/XhNU9PyingpA910cW8H9dYM2zXSI0pUpDmzF74DL4XwfyN0i0GZ+H C8oWPxwR2SyCJV9cFx+EQ8Eo6J7BCP7nhUg8tgVhgqWS4kK+mnveys+EIwtnQ9Iijn7B 6lLHevsM86O6sjLpI6bormlC3oylTfCkZOQykBcCRyZW9ypj8F2/uSIr1sN2NpQzXaD0 0/cg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lists.infradead.org header.s=merlin.20170209 header.b=w8NPgCfR; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=vfzq8nAR; 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 l18si503381ild.25.2020.08.28.20.38.37 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 28 Aug 2020 20:38:37 -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=w8NPgCfR; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=vfzq8nAR; 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=h/SYpoJtWc3GZfzfKQ1sSTtO5UCLfPnJjNkyVdVtL+U=; b=w8NPgCfRvVEFZsqr15arI/AHj OtatAiNaUfGyDFTUrvKCXxh4J8aXwHHRshRcza9KvqUVTymslyFgCw3nEd4aytfsNMHa7buIhpBjb BG0BGhVqEC25iyIgyZSekIWjZbNOhLcZmUrfPhvBiWZE2ldyQfwdrbBA5QdvlAbnYrUGZTmkPU0dq 6XsFp+PYkC+8Gi+MBOzErscy4HH6dNfirPtBgUjarkeScotxQxoXQl2Zdoyxm9mk6Jm+UXr4DPsed VUH+q6oP5r7Be4haS9J0xYWWi0XZp7yphezxcl/i6FeJFwQcF/L4oC4jhPi3u1fs/Oh009HeLv+ft robQpAZjw==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kBrhK-0002LW-BR; Sat, 29 Aug 2020 03:38:34 +0000 Received: from mail-wm1-x343.google.com ([2a00:1450:4864:20::343]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kBrhH-0002J8-GV for wcn36xx@lists.infradead.org; Sat, 29 Aug 2020 03:38:32 +0000 Received: by mail-wm1-x343.google.com with SMTP id y8so802909wma.0 for ; Fri, 28 Aug 2020 20:38:31 -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=YukgF9ny7x7bUouMS+yibqhw3SZTHLceFKqCja3C2JQ=; b=vfzq8nARrDNrxKHgWhybVRWKHk13HdNHCNfoZgcR5bNWd8iN/NfR0vDreMK45Pn6zD +Mc37QIf8lB+ufdVsAOA8vtmUCk3YQMAJEfwyjzugO/ebFzcsWvWEjW+nQnBBTXr3sYB U4ynH7PHySupCczEE/sy1pQhs06Cfxp6nWVu2vo1CXOHfp9VmLggScttxLhpzrLKy3F7 6rAhjkTTVXHS7xLr+id11IcF/WUxSMvuX6WhQAJCMAYLIwzvNSOu99doWER/r1sec501 dLkS7tH8l54/DnN+bKaM2llbk1/DJ0INfMPv6B+NVNc0ocyJdTYshP1QF0mRE2buHDDE cHaQ== 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=YukgF9ny7x7bUouMS+yibqhw3SZTHLceFKqCja3C2JQ=; b=nJDWntxKvG3zKcP/5ymJgKYLgmycMM2QKxR+5N0l4rDTZEQ56Jh+SVPSbBq5XCb/r8 hli3eL5msfKgcCwQApuMijB961Mrw9vY+eaBBdB3YmWxvHsachyy4IRo6IlHjfm9QcrD pQXWbtatwn2r9QoiLFDvQi1UIrezbsW7zDOxl3rbOQt9TR7U0pfNsHF2nkxtLL8D7mz0 W+6ehspq7wvu1MLcxuPWHGlDdiyVeDcvexpkvSnt9+h0TbfHG9LoDWoeIEm2tWtKX2xL voxXZLJhT1waUbCypQmtu+RJKKQINx81+rMaGjg9q4vqO9MkAS5VPKqya/g8bfX3IDD/ ExWQ== X-Gm-Message-State: AOAM532xw8kQi3JFmg8diRcvDnmXxaK703ffYugR4F/gCTDQMwZ2beC5 B0D6QgkqyXGN6Mv9CmwAYgdS2fra3BmhQvBd X-Received: by 2002:a1c:56d6:: with SMTP id k205mr1465262wmb.88.1598672310743; Fri, 28 Aug 2020 20:38:30 -0700 (PDT) Received: from localhost.localdomain ([176.61.57.127]) by smtp.gmail.com with ESMTPSA id t9sm1649179wmj.47.2020.08.28.20.38.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 28 Aug 2020 20:38:30 -0700 (PDT) From: Bryan O'Donoghue To: kvalo@codeaurora.org, wcn36xx@lists.infradead.org, linux-wireless@vger.kernel.org Subject: [PATCH v2 08/12] wcn36xx: Add wcn36xx_smd_set_sta_ht_ldpc_params() Date: Sat, 29 Aug 2020 04:39:04 +0100 Message-Id: <20200829033908.2167689-9-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_233831_667895_A98C877B X-CRM114-Status: GOOD ( 12.28 ) 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:343 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 Adds a routine to allow setting the LDPC bit for HT parameter passing inside the version 1 STA parameters data structure. 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 e44e4a21153e..a6106ba9cc89 100644 --- a/drivers/net/wireless/ath/wcn36xx/smd.c +++ b/drivers/net/wireless/ath/wcn36xx/smd.c @@ -194,6 +194,15 @@ static void wcn36xx_smd_set_sta_vht_params(struct wcn36xx *wcn, } } +static void wcn36xx_smd_set_sta_ht_ldpc_params(struct ieee80211_sta *sta, + struct wcn36xx_hal_config_sta_params_v1 *sta_params) +{ + if (sta->ht_cap.ht_supported) { + sta_params->ht_ldpc_enabled = + is_cap_supported(sta->ht_cap.cap, IEEE80211_HT_CAP_LDPC_CODING); + } +} + static void wcn36xx_smd_set_sta_default_ht_params( struct wcn36xx_hal_config_sta_params *sta_params) {