From patchwork Wed Sep 9 15:36:02 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: 249472 Delivered-To: patch@linaro.org Received: by 2002:a92:5b9c:0:0:0:0:0 with SMTP id c28csp523643ilg; Wed, 9 Sep 2020 08:35:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzOCeOmLaitD9oFwBFtg8vbpelowiblY+uSnYe773mLJhJfB5v0fJwVFwNE4LGZdN9eLHCK X-Received: by 2002:a92:b109:: with SMTP id t9mr3926605ilh.191.1599665729818; Wed, 09 Sep 2020 08:35:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599665729; cv=none; d=google.com; s=arc-20160816; b=K2cCh5LFYcmRtd4bC19p4PP4ZUP4XEKuGROOCbfu6zl25qW4m5RVyv0anLs8Bg7xwD 8nPUFPzW14h30bMfsqbbiJ//Yj4azUkwyT5kkLNtPcrQZ5yzE61beL6ik3j7Zv6E9ByC +tKAapWuXx0JrwaLAIjpzn7h5aAQ4hPaCY7vx8T+4hQP79GBhBz8Re3z05agFh5dn4mi p5ujv1jujqFOJ2YKsfv9Y+CoViBhi0VJDTuPMjEj50UPz8YfKZhE5rw9TPxFs6nNIing 0LK2oS31Cjk9aBwDdy10F50dVpVYamwcbvanqPglxfuC1KML5b6DEGidAaTgGVPmm8dQ x8vw== 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=M1a8FriXqs3XJjafX+h2cYWgygRO9V/OqTsEwiJMg30=; b=R3xBmGNPADgHw3F99lJQw2kLz7HHLhiwXfOPHli/p8d0J3NYyBaAXPDRnPsKCznkh7 U6JPipaqH2AfD1Njhyf9+MbO9PL2/pDfpXLVjMX+PQLnR+L476uCw6rA0jFA1Ro9hT73 TlTUikZB/zh/fShRzqMpk0PgDMdj0SdG8shIfGD3btJCMkGfmfoYfZtutpFAj9WMViid 8oaaxL3TehYfZgckEIw7bBbjyQY9WoiXvxuqA+yO8BF7ZtOrFSpa2cTMASLCkFblGn7x S0OTdHfQ13bdOojCboiCZdcCky5dS1JOlqm6JK1glocbqRjzGW/hOz1LBhPgmCmz2uO+ gDUg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lists.infradead.org header.s=merlin.20170209 header.b=JenEEXnK; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=TcvelvCg; 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 n2si2254866iox.11.2020.09.09.08.35.29 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Sep 2020 08:35:29 -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=JenEEXnK; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=TcvelvCg; 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=M1a8FriXqs3XJjafX+h2cYWgygRO9V/OqTsEwiJMg30=; b=JenEEXnKQTCQqkHAeznfgSy6K QjGzeYYwb1n9+glPCpOsbyzxKFmsPAgIEpCnKrmONFGigEg6xYOfmcNPod8eQnpUmb7L3RCt1utgr Wwpg9RTd5Mvm06bEoYCYX4OqCnhc2Klby3tHRwDQrxLRGU63bXBkSJ4DMWkozQtrOpZIo/10k9FYf aIUZlj8AO0U5YBIShyO/4fExLgk51RUjLLXHhgqI0qziTeOq+6u1DfafjUzY8j3zfgdJB+uQB6Kbv PC4cfz9hDvmSTObSVHRj5wh25bVKoJZ85VO+6ovml5w+hUcQp697+CkxpQdbMk34VL5BEnYX+m7L+ S+sx/9h9Q==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kG286-0006M0-Ab; Wed, 09 Sep 2020 15:35:26 +0000 Received: from mail-wr1-x441.google.com ([2a00:1450:4864:20::441]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kG282-0006K6-HF for wcn36xx@lists.infradead.org; Wed, 09 Sep 2020 15:35:24 +0000 Received: by mail-wr1-x441.google.com with SMTP id x14so3418452wrl.12 for ; Wed, 09 Sep 2020 08:35:22 -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=XRk+Q9bEx9jVxUktPh3Y718LsTPSVLh7wgm2w67dQZg=; b=TcvelvCgJwMqXFAmH7XepZ7yjnv4D3CBrQijZp4eWMuzGSj/4L853SV8BCJyqnU1sn k2AIp8mV5GWZvv2HWN8NziCzWxVHENTB+A9ZxGMY0FWSRM8Vs2H2ST/XJ4MihCeYCsB+ fI1wwfw1G5oa4ud+Dsg3lyzu5xiPZH6UTwgsxgZAEEs+UiBw50guYEUrDbmwRN057nSZ Z/VWJn4Psngsk51f7JU+vuqYqB4DRxtNloLlUFB+eRT+Xs6bC8aznWdeRnZ3jMXWhJmP pDN+S0CUsjyqvo5arv183dMW2eieV99JpKW7O7/M7LjTb3uHWitXk1ga8t2S+9AaCxJf RnYg== 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=XRk+Q9bEx9jVxUktPh3Y718LsTPSVLh7wgm2w67dQZg=; b=P8WggxoMyKSe4mvcGY/AYBJIjKIzGNp5nB/4NbfDxIi/YpMLAw64TJTvEANtcwN0xM XMXzBnW10gimfZimr01rueCtVL+Al6kIqlbYhdyLxaykmKumuQ3OUQTbQdjitYGTymTq 9spg5pvYPaNFF819RYFcXoHyVJ5sMp7YED97l+jcN2v4zL0/3sEifKTSLwnGSgyXLGOC OdmG9gNZbY/yJNjN9FUgRBH+k0GTDuPl7ljSMhQZDZ4uzmrq0LIp+96pKKv5mefs9+Bc Ux9CDhxWpgJ1w67vj7/fJ1Pr3g6Tt9wVQeKTa+TN763olg1jU1gDosaSErAJazttO+wG YfAw== X-Gm-Message-State: AOAM5317USFaRsgm9qsdBMoAD34gnjiCpOgFS9esxCvgO2lgkRUCbYtw SBeo22VSjaOAjtRJvnc/ylDbnQ== X-Received: by 2002:a5d:4949:: with SMTP id r9mr4646209wrs.27.1599665721708; Wed, 09 Sep 2020 08:35:21 -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.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Sep 2020 08:35:21 -0700 (PDT) From: Bryan O'Donoghue To: kvalo@codeaurora.org, wcn36xx@lists.infradead.org, linux-wireless@vger.kernel.org Subject: [PATCH v4 2/7] wcn36xx: Add wcn36xx_smd_set_sta_default_vht_params() Date: Wed, 9 Sep 2020 16:36:02 +0100 Message-Id: <20200909153607.2904822-3-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_113522_575768_0F8D7237 X-CRM114-Status: GOOD ( 12.15 ) 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:441 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 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 d5ca9907af86..bb31c4d4d9a8 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; } +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,