From patchwork Sat Aug 29 03:39:01 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: 248679 Delivered-To: patch@linaro.org Received: by 2002:a92:5b9c:0:0:0:0:0 with SMTP id c28csp1602549ilg; Fri, 28 Aug 2020 20:38:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx65ukOhlr8sq63GJZrnhczcuEXNpKW83mDiLnuAp7BM84t7xlYK/wxlNfPVedyLBSUw4U/ X-Received: by 2002:a5e:9601:: with SMTP id a1mr1449255ioq.179.1598672314527; Fri, 28 Aug 2020 20:38:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598672314; cv=none; d=google.com; s=arc-20160816; b=z9STs8JAmSym+T0j+5owT7uk+tO7VOuOm4c0B75G5Q60iPywz56Ni17206aUMgfMV2 +GEawGuk1fxRR35kMg9I4kZB5iU5m/iw5OYc635vZliq0SktwYdV3q9HXiv8eX51NkRH gzLNoNL4oE/tJFVXWN0MQQRcwGbfsVvddMVocKBHZ4i4t9XtfyNcNSpLKQyxai+G3d6f QQ86i45joOx4GcN/c+SD2qZ0G23lNjJDFNgh8VBIVACUSJkpV4cxG7WJ0dtUO6dx5WR4 +PlTjJrk4m15DZ8InXQvFCLMoTor5VmqIPH5980hDCyyQY/bYKsdSxbPQRyptCNsdt8w tuMw== 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=ob8WPsPme0HWtgA+qyC6G6uWfKfzRgRGN8r701/vcwE=; b=hXbvtjASOx52eVPkWDFzMfN3TZqKzc9+/BUQewnhcJAXJsOvuIafyDfWxUtOThb0t3 xLcDlf2BvplZWFFJWNHekgXDn5q7qNki973piQMJIwNmfgCdHyrRoiMc3ZGhty5D+byL cRQcm90LbPGuZm85HD157GBwq9sw2n6PKgQ6Man7Js84/PPD7EjnRK0+BokyRXaKVmzN zRoO7XTowJ4abjuBz2jjEPIcW9cx+UEoXgY7sauVInVjepaqvP11G1GVgBlJSWDGyULK /2uoh1PMfoJffNfUfK6N9Q86RsVEABPk1jhVKZwYTxtzF5H/s4V4dSLNyyMXo0Em8DLr bROA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lists.infradead.org header.s=merlin.20170209 header.b=vU8LuLZj; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=zI1RbSbS; 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 q18si1095885ils.105.2020.08.28.20.38.34 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 28 Aug 2020 20:38:34 -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=vU8LuLZj; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=zI1RbSbS; 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=ob8WPsPme0HWtgA+qyC6G6uWfKfzRgRGN8r701/vcwE=; b=vU8LuLZjWzdCizk/a+/4ikfDC PYfDpOwthtfml+Lfa31E/IzEOzvwGheqv4pszkN+UdIrxURC2vFQFCn8Dom1yOr5jqv46kvaJCwiZ zqs+CxuqFcrw3w5NGm8WgIu/tqMuoeABrmiLeW6FdKPBEHknWgPcIl6hlsfnD4hEMOnH/Pfdh+zQn jCarDZyA7z2iRfGnoOyi+fSTpiFwVoPTXzcwrxVIwT84MwYorx7Gy7GAHoYgXmgqYj89e+QyBSzX3 0wmO6q3llu3tlPAGu6/SZDwbC1OlZFVrdpf6hcdLhu1ZFbPYLUFXVnn++eEH9FLmyKg2EzU5QOYJq hqjOM8iOQ==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kBrhH-0002JD-6P; Sat, 29 Aug 2020 03:38:31 +0000 Received: from mail-wm1-x341.google.com ([2a00:1450:4864:20::341]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kBrhE-0002HA-Ds for wcn36xx@lists.infradead.org; Sat, 29 Aug 2020 03:38:29 +0000 Received: by mail-wm1-x341.google.com with SMTP id c19so799423wmd.1 for ; Fri, 28 Aug 2020 20:38:28 -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=F8NDadMddxQkL9vVY4EL66xho6wVXd/4Nkgt+tvWO/s=; b=zI1RbSbS0/45UpyCgu7DAsld3+IS12Zy14XjROrsdhv7V0UfnWJraO8TBPk+Je1dZF MrdFmE3bp1elt7clnECQQrZvjUwHHpJEd1vCB54dcavHw4AQ0wpedg8EaFyxO0HL5LPg fkasMjIPvmmF6z4IqbXUfrtG3LGi6e/tHavpRqP2AWrc7b1ZpQ7jOM/GCECy8vy1uG58 3hsQN/E2CWf0MtPB/6yF+fxZ9Meu7no4KXPHzBId86XLpaDSXdG7bCMYcvXEue0pQ2/p dsH/KMHq4TVNWVmpbovFGH7sbpOM8EXW9CF+NxFXpjrt8UYYD6ntfv+6CrRWkoq4RiaK wU0w== 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=F8NDadMddxQkL9vVY4EL66xho6wVXd/4Nkgt+tvWO/s=; b=PqhYxURCmLHLECwUc0RFhcdQzxz3S2ySH2hTYVLowqH1Hs1MfMQveUrbXfW1maHBFL PM/5oiAMJc6O1JDia3TyPuxPN26A/KmKMN2K3sY6Dr6cwGuRJdGbtuK30QSbAACuw+n3 +lej1Hc6DcY9FwxP68qWR4mrG+lj8LUuVTb9y7uJq5Ia5AOeC3tRfSH49b7ED9fnSimp cY4+wYpr+w5saLw2WGFxUJVLqXK0TF6d2kN3FH0Emw1v0NjXfquoA4ojmFbEzg8yRlhA jz/qQ3aEjrVgWECgKnpTsG3U1/hvvq8b1n9enEYYEPjP+lXacw8BxbTMsDhPBxlDP2yb 2G0g== X-Gm-Message-State: AOAM533cYatUcZSzSF7LQaeqTfRE0XzeRwfEYRoI70baobFEl8rSpIC/ a8Jpc0u0ijYWRO+F8d4kA1lqYA== X-Received: by 2002:a7b:c116:: with SMTP id w22mr1510021wmi.149.1598672307502; Fri, 28 Aug 2020 20:38:27 -0700 (PDT) Received: from localhost.localdomain ([176.61.57.127]) by smtp.gmail.com with ESMTPSA id t9sm1649179wmj.47.2020.08.28.20.38.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 28 Aug 2020 20:38:27 -0700 (PDT) From: Bryan O'Donoghue To: kvalo@codeaurora.org, wcn36xx@lists.infradead.org, linux-wireless@vger.kernel.org Subject: [PATCH v2 05/12] wcn36xx: Add wcn36xx_smd_set_sta_default_vht_params() Date: Sat, 29 Aug 2020 04:39:01 +0100 Message-Id: <20200829033908.2167689-6-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_233828_527912_926A28CA X-CRM114-Status: GOOD ( 13.03 ) 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:341 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 This commit adds support for setting default VHT parameters, which are exposed by the extended version 1 STA parameter type. Signed-off-by: Bryan O'Donoghue --- drivers/net/wireless/ath/wcn36xx/smd.c | 16 ++++++++++++++++ 1 file changed, 16 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 8534d36c3ae0..45359e72a877 100644 --- a/drivers/net/wireless/ath/wcn36xx/smd.c +++ b/drivers/net/wireless/ath/wcn36xx/smd.c @@ -190,6 +190,22 @@ static void wcn36xx_smd_set_sta_default_ht_params( sta_params->dsss_cck_mode_40mhz = 1; } +static void wcn36xx_smd_set_sta_default_vht_params(struct wcn36xx *wcn, + struct wcn36xx_hal_config_sta_params_v1 *sta_params) +{ + if (wcn->rf_id == RF_IRIS_WCN3680) { + sta_params->vht_capable = 1; + sta_params->vht_tx_mu_beamformee_capable = 1; + } else { + sta_params->vht_capable = 0; + sta_params->vht_tx_mu_beamformee_capable = 0; + } + + sta_params->vht_ldpc_enabled = 0; + sta_params->vht_tx_channel_width_set = 0; + sta_params->vht_tx_bf_enabled = 0; +} + static void wcn36xx_smd_set_sta_params(struct wcn36xx *wcn, struct ieee80211_vif *vif, struct ieee80211_sta *sta,