Message ID | 20200803031132.1427063-14-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 x16csp860563ilo; Sun, 2 Aug 2020 20:11:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzzf6V2L3duNZPA5p25R0h7ZFWo92rcJMiJZDR5O+/vObTriaiMeHCSBnfycxDh/FYU4nyG X-Received: by 2002:a50:a2e6:: with SMTP id 93mr13324576edm.147.1596424264554; Sun, 02 Aug 2020 20:11:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596424264; cv=none; d=google.com; s=arc-20160816; b=i4f5nj2R9V1+rIOkXD6u2gd0iRGcYpD+h/wxkhekSI7PoFE+C8z/aV8jMN/kvceEiJ 64hJzdoo/FFWD9rsNeCWKZOE4EI21Mhkf4vovIhvO2Niwg3xUeaXvY4C2weeNcMuTzYm U/eXIXfkqwJYX6uzB5DSE4wWCmCwKEbh/aS6USC1Fz1uKXisXA5DyKRNpgXe2XkbblHV JZdC1LJ+jnn7KV04CID/vA6vjvJ1vreyfzPgVfRmdUY+hRWnU5JHB4bBm1ok33mjBSVB 3uShWj9bMrJEyuNm4BW9o4ssn0r3m2vSyDBJEQKgYgT7MjJA9W8UynuSj4RSsDAMxQaZ JCqA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=D0xU/dOb+LnLns/kX1ZtFyu9J+wVoP3941KcJL2LnEo=; b=jf1IsM65ea30hd9mfKvuN1Pw//uIaNJkrATEY/aWZk51CGt3/QNUB6PpmXWjn7w8O/ k/+/L20U6UqULb9lWlsPR+9GU7Cm4QNw7B8GiyzTZ9MSBW3qKBkzKuIHv+m3Ko/rz1/P CI2QPPi+O7q5qR1ERDapVkIDckAQlGEadlQECYjKTPvKzuZa4YijQAVcnNDiifDqh897 aY21doLLhUwMNsND8RCpqFxIhT9s1bfFXyuYXMoaTuGuVId+Frz0QR+m5IeOxYCMa0Bj tYqwwVdsh3dA2bHnDtGNkTG0/DVgayQDFycvz5qVpOeBWN2FVZ4zm5p54FaiNtAiTKh5 pq4A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=UkGqSwyU; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: <linux-wireless-owner@vger.kernel.org> Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id jz19si10235393ejb.34.2020.08.02.20.11.04; Sun, 02 Aug 2020 20:11:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=UkGqSwyU; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727101AbgHCDLD (ORCPT <rfc822;patch@linaro.org> + 2 others); Sun, 2 Aug 2020 23:11:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41538 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727077AbgHCDLC (ORCPT <rfc822;linux-wireless@vger.kernel.org>); Sun, 2 Aug 2020 23:11:02 -0400 Received: from mail-wr1-x442.google.com (mail-wr1-x442.google.com [IPv6:2a00:1450:4864:20::442]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 49399C061756 for <linux-wireless@vger.kernel.org>; Sun, 2 Aug 2020 20:11:02 -0700 (PDT) Received: by mail-wr1-x442.google.com with SMTP id 88so32762264wrh.3 for <linux-wireless@vger.kernel.org>; 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=D0xU/dOb+LnLns/kX1ZtFyu9J+wVoP3941KcJL2LnEo=; b=UkGqSwyUC7NcETveDjLdMlQ7VI2NnUqmZvtN2Y4GXUD4mSChmF0z9utMz8Wl522Iub 0bNS1CduO9tCT0lS8+xKCSj6bJG/fkpd2QGuO+u4Bf/5EoCAwKmq/Nwb3QmpVZssTCbx Qe8oF0aFiW8Q0U1nN83X3ExRdsrYUt+sljBnur5VKSCZaL28kUeCZsoeTJo29OCS6G0P h1+xhZcvmKnG1c8ZXykKWufHX7AG3XLcM9/NUuiAKd3/VSUJ+7peHeaAp1WUfeTrDLsp za6a/EZUrOazQUHA1qPI/Plc2SlwRgiB+jJaHRt7sOjzxDAbC1xePilw0e8091oapoxQ MZ0Q== 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=D0xU/dOb+LnLns/kX1ZtFyu9J+wVoP3941KcJL2LnEo=; b=BfI1taTIGc2jkAAMUKNA20jeHDNJS4CAm+4Sp4uEcRl3suxxPmHGvkBv+/xi6Qsl3k L60fM9MGE8/pADuW/cgREkmZcrKV3DD72D7gtNqm/pHBjmDef7X3GJucW1TyQFBL7e6M n+bXu9N34Aj3TRLZYrEDgj3u6s1sksReSDLMhm385pcMT0o2MrnvTZTu0i3tMJYvZEDs cvJQmOHa8kldz/92AEla6rWAfLRp5lzECoA0B1Fp2gHWQHtlFris9Gws+6WTd6lLC+Fj J1K9VFpFH3xIAM79E9uLwGlOtsJ5rIAX9qmK/a+F0KwsM19kfwfOMy1bpPXuuY18vKpp XDGg== X-Gm-Message-State: AOAM530EnnEZq4l46p2xLk0IQteDy9Dit5gsLJ2H0jLiXpnvAol+wIm7 PnrEzRaTaKwgXpqkxD2NkL179A== X-Received: by 2002:adf:ea0f:: with SMTP id q15mr12756722wrm.113.1596424261097; Sun, 02 Aug 2020 20:11:01 -0700 (PDT) Received: from localhost.localdomain ([176.61.57.127]) by smtp.gmail.com with ESMTPSA id q2sm21956857wro.8.2020.08.02.20.11.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 02 Aug 2020 20:11:00 -0700 (PDT) From: Bryan O'Donoghue <bryan.odonoghue@linaro.org> To: kvalo@codeaurora.org Cc: wcn36xx@lists.infradead.org, linux-wireless@vger.kernel.org, bryan.odonoghue@linaro.org, shawn.guo@linaro.org Subject: [PATCH 13/36] wcn36xx: Add wcn36xx_smd_set_sta_default_vht_params() Date: Mon, 3 Aug 2020 04:11:09 +0100 Message-Id: <20200803031132.1427063-14-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 Content-Transfer-Encoding: 8bit Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: <linux-wireless.vger.kernel.org> X-Mailing-List: linux-wireless@vger.kernel.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 a4e45114991b..df7e2125b503 100644 --- a/drivers/net/wireless/ath/wcn36xx/smd.c +++ b/drivers/net/wireless/ath/wcn36xx/smd.c @@ -189,6 +189,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,
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 <bryan.odonoghue@linaro.org> --- drivers/net/wireless/ath/wcn36xx/smd.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) -- 2.27.0