Message ID | 20200803031132.1427063-19-bryan.odonoghue@linaro.org |
---|---|
State | Superseded |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a92:cc90:0:0:0:0:0 with SMTP id x16csp860658ilo; Sun, 2 Aug 2020 20:11:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyCKH87RdjaLeyhZ+K6u6pN43jKoTmScLpLAjtUUaJJBCxNbN8VsvSwZGIO/T7bv+uBvJKc X-Received: by 2002:ac8:4514:: with SMTP id q20mr15074667qtn.122.1596424274224; Sun, 02 Aug 2020 20:11:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596424274; cv=none; d=google.com; s=arc-20160816; b=MkmGumPdi+qmC+AR0PXRBGy+ChwdomChmVL+gOn48ip1UafVsHApmYyBWIrxssUSaz ySS5GrQbUC/OJNGMiQ6JyeOw4a61uMt5It9LFuedfFfsrOD/BUfO1wuUmLniqOnGhumq D23Hd4GMkJ2mK0ocIdUP8UXe5GFwLDil3Vm5cwN7h0YBddBjt4HZLorb5JIYvdoegZdo JTW6oM7ICKJBPGd8MEZdsV2jsYmDWODawUVWsyUG6RuRzLq6huFZEn3FUKt+O8nZXo2f 9JEMsjpmla7HZGUEjHyOCXRTY6xlatitE3OrHabuUGXux347qvAmLqurIp4FvsZoGMkl 3AUw== 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=Mz5qNcjf+j4r8zgc5CpKvDNUHdFoeuwRrRZds37YxrI=; b=jnrRwyOe2gBY/jwIsDuHKAg8voszUsm88HfxuTWOoriRZwWCMEvGVMDkQGr5dne8ul uU0mcG4zfY3e7eoKgpwoYS9ZlXa2F91zzTpHORAaY0+sNI+TRDkDTKir1tESGxIhdaIr qyaUldW2oZ98xHdB6udgTPH039U9wc6omDJOo+UYRlN0Rm7jVDgQasbcvYM024Q3rbKA E4DjAJvHFfXrHBjY2nXJBwYytTNyIeyBhPi6Wt6AZj5Uuk55feHiDb+m5qMIQZgEWva5 3LPfi6PyzZ3NdjNEQHFt8IZxlcGfGeYPSAS6pGUBqCQl4ljfaL8qiyPp3E7ncPN9i+gX z0rA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lists.infradead.org header.s=merlin.20170209 header.b=SVR0zrgv; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b="ft/Q1CIU"; 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 i20si11206833qkn.228.2020.08.02.20.11.14 for <patch@linaro.org> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 02 Aug 2020 20:11:14 -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=SVR0zrgv; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b="ft/Q1CIU"; 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=Mz5qNcjf+j4r8zgc5CpKvDNUHdFoeuwRrRZds37YxrI=; b=SVR0zrgv8eGTp1yPLzZgBNeEp 0fzik06LC19bQIgMYDWA4Cy7lHh/SDGbliTW7f7o8T3A4RL8ARwFUVwCdh7g7TluVS1U8TiLMOrj0 tTKu6qC8vWJHXzcHAu5HXUyuTbdyag45oaLd1xYNKqlKtREYh6IvDxnl4VNp49j/am9l5k82e6sZA 4HmOlkAeWf6gE9PxuUHo4a0MzD6roMLVB4fcl6bQ3V5IgnSFEYTqts42ughM2TvBuW79P5VgjWM+7 +x+z0bASfHBVfdsBLEffr+4Vg05F8/zFBAdUhGo3Eyew1x+WFbsNMFRkbHO8QZN6Nic1ZSwigFPuH w+bnUxx3A==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1k2QsY-0002aT-Hg; Mon, 03 Aug 2020 03:11:10 +0000 Received: from mail-wm1-x342.google.com ([2a00:1450:4864:20::342]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1k2QsV-0002X3-6y for wcn36xx@lists.infradead.org; Mon, 03 Aug 2020 03:11:08 +0000 Received: by mail-wm1-x342.google.com with SMTP id c80so13012335wme.0 for <wcn36xx@lists.infradead.org>; Sun, 02 Aug 2020 20:11:07 -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=Dc68vpe0LVXUulWOmw+HiZxgDJO28qrPNtD0WWyi8Tc=; b=ft/Q1CIUiqx6ryiWMvkYWb2I/kUTLpSuMimOKZM2WxAdtJUdmOTc0RTQXr2EkgsS4J MP9Jk50dnN6r8AOvlzinkC2vPPGN7Rgx2aUCXxIIqP2AiYR2/UWHdQZu30for3XlpmA+ VD1d5jTP4/Pbz/lgx6HgvgeSaZm23VH3Rk7QDQp4e+4/S1OgAouMsmIQhcozXqKTPrNQ QIq7hcqQNMBjvQVhBTP1KIHG5Ko3NQzxT/qflnM1wgM/nyjgO+uBA2QuoJUeN81xgVeL m+Ke7ZGHk3w1aKfkBvoECjAxg1V6vwt+EYxmj5ZfCshPHk8aoH9zqNPeAqDaxMFuQ7SC mDKQ== 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=Dc68vpe0LVXUulWOmw+HiZxgDJO28qrPNtD0WWyi8Tc=; b=hEKxb2wBlfllgMuCdjlK1NvLqibDwSRCfQJQY26dwCnVOgyuUsxLovkDCGK5qqxpaP df/FNkLC6mxT4O+mPV2SqlZHunLJ8YTKi/vyUlzcNO597/2md9P9+sd9IvoEs8kWZtUa /cHeCsA0R6B63PWgNdA8nnhsJzGyJ4tMfqjoXlM8z/HiVvRySMJ8cv7Pd89zpUpfD7Kg 78e2MCWp8ZHTb568XdTgXzP2r3lIgqK0EJeD32dN4xHOj6HX6ysOKOb+VlCKTNWuXxlL Ziw1kPqJ/ROIIdIDzachP6Efxc4DunHXfBilyHxbUfd2GfGKiOzt1IE4tvGjRQsWab9l tGCg== X-Gm-Message-State: AOAM53058B38Gt/3wjpLMHlFJOujZ7l++Pyh2+mwngg9OC9Xxs/PnN34 srPmNNpXEPjncbyb5bQtOInVqlP5uXM= X-Received: by 2002:a1c:740e:: with SMTP id p14mr13437098wmc.179.1596424266273; Sun, 02 Aug 2020 20:11:06 -0700 (PDT) Received: from localhost.localdomain ([176.61.57.127]) by smtp.gmail.com with ESMTPSA id q2sm21956857wro.8.2020.08.02.20.11.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 02 Aug 2020 20:11:05 -0700 (PDT) From: Bryan O'Donoghue <bryan.odonoghue@linaro.org> To: kvalo@codeaurora.org Subject: [PATCH 18/36] wcn36xx: Add wrapper function wcn36xx_smd_set_sta_params_v1() Date: Mon, 3 Aug 2020 04:11:14 +0100 Message-Id: <20200803031132.1427063-19-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_231107_341695_850325DF X-CRM114-Status: GOOD ( 12.92 ) 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:342 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: <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: wcn36xx@lists.infradead.org, shawn.guo@linaro.org, linux-wireless@vger.kernel.org, bryan.odonoghue@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 support for WCN3680 802.11ac
|
expand
|
diff --git a/drivers/net/wireless/ath/wcn36xx/smd.c b/drivers/net/wireless/ath/wcn36xx/smd.c index ab9f0361aec4..f61516988953 100644 --- a/drivers/net/wireless/ath/wcn36xx/smd.c +++ b/drivers/net/wireless/ath/wcn36xx/smd.c @@ -1241,6 +1241,31 @@ static void wcn36xx_smd_convert_sta_to_v1(struct wcn36xx *wcn, v1->p2p = orig->p2p; } +static void +wcn36xx_smd_set_sta_params_v1(struct wcn36xx *wcn, + struct ieee80211_vif *vif, + struct ieee80211_sta *sta, + struct wcn36xx_hal_config_sta_params_v1 *sta_par) +{ + struct wcn36xx_sta *sta_priv = NULL; + struct wcn36xx_hal_config_sta_params sta_par_v0; + + wcn36xx_smd_set_sta_params(wcn, vif, sta, &sta_par_v0); + wcn36xx_smd_convert_sta_to_v1(wcn, &sta_par_v0, sta_par); + + if (sta) { + sta_priv = wcn36xx_sta_to_priv(sta); + wcn36xx_smd_set_sta_vht_params(sta, sta_par); + wcn36xx_smd_set_sta_ht_ldpc_params(sta, sta_par); + memcpy(&sta_par->supported_rates, &sta_priv->supported_rates, + sizeof(sta_par->supported_rates)); + } else { + wcn36xx_set_default_rates_v1(&sta_par->supported_rates); + wcn36xx_smd_set_sta_default_vht_params(wcn, sta_par); + wcn36xx_smd_set_sta_default_ht_ldpc_params(wcn, sta_par); + } +} + static int wcn36xx_smd_config_sta_rsp(struct wcn36xx *wcn, struct ieee80211_sta *sta, void *buf,
This commit adds a wrapper function wcn36xx_smd_set_sta_params_v1() which calls into wcn36xx_smd_set_sta_params() and then subsequently sets version-1 specific parameters. Signed-off-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org> --- drivers/net/wireless/ath/wcn36xx/smd.c | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) -- 2.27.0 _______________________________________________ wcn36xx mailing list wcn36xx@lists.infradead.org http://lists.infradead.org/mailman/listinfo/wcn36xx