From patchwork Wed Sep 9 15:36:05 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: 249476 Delivered-To: patch@linaro.org Received: by 2002:a92:5b9c:0:0:0:0:0 with SMTP id c28csp523695ilg; Wed, 9 Sep 2020 08:35:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwPkUULoQQ8fakjMyZju1yh9ByZYWUYnmLa2MMTR9V6Js5952PBjTNvXsPLRioizgx8k4lA X-Received: by 2002:a05:6638:d0b:: with SMTP id q11mr4397874jaj.68.1599665732346; Wed, 09 Sep 2020 08:35:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599665732; cv=none; d=google.com; s=arc-20160816; b=Nk1uga5NKBBUNFCw7hrPUj95cnQMNnI/Dqmf2bcIQEYqrDi092FI/5svr3Pxbcrt1U wpZlBXuwGF614Jsvtkgt+fE3BXv6ghrApU54dsk1Yj4vuZMWubxqOHPsjuFheEUOaNDk 9t/ON0tX3e9u5LZuZyHzvCyvYl+eXmbkpyEGMqMhPohqhoAJMJyJH9af7Flpn02KAxXQ 8Uq9X48jfIpgCqX94QKvxCUF5MSREp6/6gLzNd5UdV3PCIqIoOinDSZOxkdGrdWgDSdi yrsSdcu+UmDIiO4eX1P6EZzbnAFF81664fecY0ngBlcIKU2jA4x26sOXcvwrruFO7qAM /XQg== 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=7mNMrvRHusLK5PKvS4xfE1QIDKkj1K+A0fRoc9pJfx8=; b=E3vatsAQgMMfjsmI2beKb3NQ3EMGAG5oojNUDK8Ue6ZqD2brfK8wxisBQwO7p0s+h4 IiidhxgvKoGYJRmcKVRPGOKk9puzogSu+xUfCEGGMQBzAIxiIhxsjPGmZAOBIa3M5Cuq GzUVdIc9pd7f6maznNY0YiJs3Rrv+PDpRxi9ToHDc8v0ksLVf76/fKzvv+2sBb82lzwC E0QymIna5ev/6XFSorEIwuC8J59dNo4hBCy/lNDWsDSu8oXQwFXZHDItdW0oHvg1QPvG /xMSx0/YN7gayYEdva2NGAjyCauogNth6hLDli+pVGAq+B1bc9+yuPweF+pUB+/01kXR wx3w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lists.infradead.org header.s=merlin.20170209 header.b=JSEVhNuW; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=eKRhlStC; 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 l11si2230448ils.85.2020.09.09.08.35.32 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Sep 2020 08:35:32 -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=JSEVhNuW; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=eKRhlStC; 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=7mNMrvRHusLK5PKvS4xfE1QIDKkj1K+A0fRoc9pJfx8=; b=JSEVhNuWOOfLDSb0j1hrjy28M 7AXOg+B8Bqzi+92o3LGic0VjpuJd1XrWsUyNMrV6uH+xxMT4SgB9ZG+LdD48kVbWCNSt3TaqdP8cB 08X/mMSjTr9zHDIWEU/czIQDUy/5V7pGq5GAS6JI3Mzyukevcvz6ziwPmNcMXR5soIXMU17Umotbb oNl4zGXe2E4zHeVsZJyBvexCJuO5aEgXrgtCzIDVwdvgdJE1jfitywnRtblkMHnVP9e+yl71RR1FD Tk/ufDY8XhqeQcXfPnzwz/BuQhxAvuUdg+9IbFEqHTN4S+NGtiJaqL8avlh/gPmeohinRq2yILarX MTtPKbV8g==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kG289-0006Np-Cj; Wed, 09 Sep 2020 15:35:29 +0000 Received: from mail-wr1-x442.google.com ([2a00:1450:4864:20::442]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kG285-0006LV-MX for wcn36xx@lists.infradead.org; Wed, 09 Sep 2020 15:35:27 +0000 Received: by mail-wr1-x442.google.com with SMTP id t10so3477745wrv.1 for ; Wed, 09 Sep 2020 08:35:25 -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=FIXgUDCAw5H+6nCd7qyCvsfy5qAJIAQL+JK4lt32D9s=; b=eKRhlStCkuMr4/tC8YCMRh8j107aOkvK4lTslY4lHfiqyORjUsWw0n4xOrCbIeLPia ld3FttlmTezZROqvALiXJ/c7uhXy15aBv2sNwszWS55pd+M0U1YlQvgBQlytYGbXvIqd c7xin0waA46/jJbIKSmuWVMh6H8u2l6PkVELk9XpO+dTxjg8rGdXt6ZcdmFRATcrI9Gy NGc0gajAN9o2SlQSIh2GZLRvYcazLUU2HefEv7Z5H5/9SvcGPVvpyQZTrhO8AOqYdaKa juXWNt1e4HldFXPKB1xop5hwi8TqFrR4BorIzNGuSzo5yqUjNC0lIw4qO8KIIU/Gy2Dx YUmQ== 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=FIXgUDCAw5H+6nCd7qyCvsfy5qAJIAQL+JK4lt32D9s=; b=Rz/SarhjMDKAUemco/WUfQxcRr0U+ai1zVvgWU1JPYPHzAKHnQpE+F1wYiqI9erbZk fsSdrB4ORl5QTwIENfaJkptBeyjZYxSsBvJtm18B+5mFSj2h4DoJNNvPkZurNO9r9Jum IFYiY4EM6EVVy59VA8SJaIR5ZkXbv/7EavHOU1vwnohrJ7qM6dMKiakJAR60ZBzE76N+ 4+6nDYYa0nmKIyVaPzutktut/s8M+vgwZEV4bupufVRAfXnjamC0WPFK2+0AnATk0p0i AXvwJM2dWWXWwNemBFscYRfucFXcpcijKzF3dHOGdCQnpMhma01PCz0SSdhV6gb66Zgs ZtDw== X-Gm-Message-State: AOAM531Gtjg49v43Lwt3Q16ZhAhHk+9phRNpB1gXAOPKGJBwC5Y/Cp/L xq/6yBfnbWLbjuiZPblUFUFuVA== X-Received: by 2002:a5d:540e:: with SMTP id g14mr4778533wrv.148.1599665724737; Wed, 09 Sep 2020 08:35:24 -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.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Sep 2020 08:35:24 -0700 (PDT) From: Bryan O'Donoghue To: kvalo@codeaurora.org, wcn36xx@lists.infradead.org, linux-wireless@vger.kernel.org Subject: [PATCH v4 5/7] wcn36xx: Add wcn36xx_smd_set_sta_ht_ldpc_params() Date: Wed, 9 Sep 2020 16:36:05 +0100 Message-Id: <20200909153607.2904822-6-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_113525_757914_6BA5F6F1 X-CRM114-Status: GOOD ( 11.42 ) 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:442 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 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 a563a30c3a0c..14af98af42f3 100644 --- a/drivers/net/wireless/ath/wcn36xx/smd.c +++ b/drivers/net/wireless/ath/wcn36xx/smd.c @@ -196,6 +196,15 @@ void wcn36xx_smd_set_sta_vht_params(struct wcn36xx *wcn, } } +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) {