From patchwork Thu Sep 10 15:07:47 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: 249656 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:ecf:0:0:0:0 with SMTP id i15csp827221ilk; Thu, 10 Sep 2020 08:07:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJziARm4i6llIQkNgVuucm+2cJZ/5/GFjMNC1fH5r1xe4nGQp+PaN7lwiUQL5p5vg13I6dtC X-Received: by 2002:a02:cbda:: with SMTP id u26mr8946612jaq.71.1599750430839; Thu, 10 Sep 2020 08:07:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599750430; cv=none; d=google.com; s=arc-20160816; b=n/fgxYF+ApT2VC2VTadKMs7y+V/sihJ1HGXHXL0ZYYaiO1bhAZI76qoXMefmVwQBkC rsZ7ksIQ0xqyoLZa0Yt0/PMMGGD4M+3PxCKQYjHrHtVRbIjrdy9xbM46D2cTokZZR56l xLaqHtcddOor2O9wlLIB2wT40IJe8xg10vrf+1M/KBeUUIA4sAd5qoSqAqvhbzl3dyFO nQXrkw4qnoevmBq9hvGgFaIL85a9Yvl8vd/0392UYJ6TbJXMe+7hKWRyhtzNivE1vqB4 GQiubMI/vaTHwonRCBtuzlEyWIJ0tMS8G/7T/pXp9bydvDQI3qPxoFSlnnMFSWL7//Cj K/bg== 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=UiM8ISK6XV0rrX8JCxJS2fjuU7bziq4EQ9lRxydlNGg=; b=oCKLyQjrLan9la2QUGxjzHhqiXCskE8bhgAruC27JWtyXfa6NK7enXhbw3DGLDIQJh jujsj8Dt/QGKnIt045c6XbSC1DU7RPT4EdksTwUa6uniHEreBqQe29JSy6P+A0iLGXG3 o/4AtZqJJ2bDs4gfdrpa00NK4iGjH/decX2O1hMjrSWD5jN5GSnlKRz2CWdZIV6tk+XT n1aq6jkdpaD9MFt78E784o/sITq8Rlukm9iX8wJyclcLTevb1zA52tAVas/RjYTOr2wP jEXab9HJxLjXwcPDlahmj/kSHw/83pTnzLuykVbKeSbdpnJS3FjTl/grziwwibr9QP8k 4IDQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lists.infradead.org header.s=merlin.20170209 header.b=OUzmwr5F; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=Ua8RLmZg; 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 j4si1125542iop.97.2020.09.10.08.07.10 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Sep 2020 08:07:10 -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=OUzmwr5F; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=Ua8RLmZg; 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=UiM8ISK6XV0rrX8JCxJS2fjuU7bziq4EQ9lRxydlNGg=; b=OUzmwr5FiqERwxffrgj3eE6UC 824UEJOCbyYAW4cikMPg4VjoySv2i4hf2X+Ua0ZSplmDEMXiLvfoqfOb8Q9xKHEHRkF/7Y5VPspbD v846U6E/s8uZc2yhKpCE3V5kUgUGNTxoUZWCck2cpJyDTlUmn5zs0ILqhCtv6XfJPeCQYefDPQsq2 6qDKYhfAYMp+PJWzox5dLMhxo2QjLF0m5tYpHZ5uX6tRvTCkRSRdO3napw8h3UexLXWRNIGrvcQOj vYMOcyufnux07aFgyhTPLBR9idYfVRK29h9jN9KzcSncPieHje5JX9JJGqMhU+xTLblVooMDZ6tlb zB3+KY4sg==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kGOAF-00081k-Q5; Thu, 10 Sep 2020 15:07:07 +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 1kGOAD-0007zv-0h for wcn36xx@lists.infradead.org; Thu, 10 Sep 2020 15:07:05 +0000 Received: by mail-wr1-x441.google.com with SMTP id w5so7065520wrp.8 for ; Thu, 10 Sep 2020 08:07:04 -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=pR28QrbC3Qp/45XzrsEFlxa09WTW2fIfPYIJsPSPstM=; b=Ua8RLmZgvHhFmZ7X1U1eUnc9H1y9XGsxdUX52vubpBKKQ/tq640o7R4nwioVeGX9EL EE0FNjwkhycEkBmFOfiBJkHRaQDb2NoqF7C34jwJS70y58dqqL7OBOOMERNC5bSWNNvi xal5a6VF09k68OOT0GmXd8qvcttfqeYhBxUKaj4m4kdu1mSIXf550Hb2K6wz5+iUT2Kg 151PfcbyUjXQvmyJmCYiqh0UDZ9Q2xxzFk8Lcs7tnopXH/yg8zZ/hQ4QCPAGHX4uXgX1 gmvRGbM4opuQ9Z5Zx1XQpycqBah6c+f8PYJfqVA6vbvmZd2BifOTMHeUkDYm6Ra8FT4n 6YrQ== 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=pR28QrbC3Qp/45XzrsEFlxa09WTW2fIfPYIJsPSPstM=; b=TggKU9TxsSRGkCzq/jAf0MLKp9VopK/wjdf+olvqK5UPq/Ytv/3a3Ziq0RcSuv5FWZ 8b5GuORrbDHZUs3vCe2aNrNMiNQX4Ti4ncZA7CD61nLprEhn8fGvIQePfetakkp9cWGt UoM1msmfP+J7AQ4rtoCISlhdck3shqHKIXH4URPOPpsrpEAex7k+V7pCZ9t9YOV+VBTx VbTgsNsQQfXaR6Pt8zjKywK5v54Hx7kBDN359plQ/qinaZqUCiTZSJhr+4RRYUux9g5R L6ae82JKCTjsuKs7M6kTud22G01FIu5nXb/KH9pJeE8DxuMGUZiBCwVT2flRKbUtgzyt 1Nfw== X-Gm-Message-State: AOAM530VkOIEsJnePxaqF8LlBaVi2iP4f3bHFllLzFj7inY6GqJXBRmJ da1vFeu9kDpWY05EhHh+Ui9LHQ== X-Received: by 2002:adf:f70d:: with SMTP id r13mr9716075wrp.317.1599750424162; Thu, 10 Sep 2020 08:07:04 -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 m3sm7597315wrs.83.2020.09.10.08.07.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Sep 2020 08:07:03 -0700 (PDT) From: Bryan O'Donoghue To: kvalo@codeaurora.org, wcn36xx@lists.infradead.org, linux-wireless@vger.kernel.org Subject: [PATCH v5 4/4] wcn36xx: Latch VHT specific BSS parameters to firmware Date: Thu, 10 Sep 2020 16:07:47 +0100 Message-Id: <20200910150747.2179122-5-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200910150747.2179122-1-bryan.odonoghue@linaro.org> References: <20200910150747.2179122-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-20200910_110705_097611_C5D3A8E2 X-CRM114-Status: GOOD ( 11.25 ) 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 makes use of wcn36xx_smd_set_bss_vht_params() to extract VHT parameters from the 80211_sta structure and latch appropriate bits in the bss_params_v1 structure for transmission to the wcnss firmware. Signed-off-by: Bryan O'Donoghue --- drivers/net/wireless/ath/wcn36xx/smd.c | 2 ++ 1 file changed, 2 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 57523a66a8ee..dde43a2b0d81 100644 --- a/drivers/net/wireless/ath/wcn36xx/smd.c +++ b/drivers/net/wireless/ath/wcn36xx/smd.c @@ -1702,6 +1702,8 @@ static int wcn36xx_smd_config_bss_v1(struct wcn36xx *wcn, bss->tx_mgmt_power = bss_v0.tx_mgmt_power; bss->max_tx_power = bss_v0.max_tx_power; + wcn36xx_smd_set_bss_vht_params(vif, sta_80211, bss); + PREPARE_HAL_BUF(wcn->hal_buf, (*msg_body)); wcn36xx_dbg(WCN36XX_DBG_HAL,