From patchwork Wed Sep 9 15:37:17 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: 249497 Delivered-To: patch@linaro.org Received: by 2002:a92:5b9c:0:0:0:0:0 with SMTP id c28csp524715ilg; Wed, 9 Sep 2020 08:36:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxO+G+XScj/u6IsvT218GhVqaglf8pFD+TJDculxrW9OrnVPYrMRqt1+iO2IHzoJIcB8/Bj X-Received: by 2002:a6b:5a0d:: with SMTP id o13mr3816638iob.186.1599665800305; Wed, 09 Sep 2020 08:36:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599665800; cv=none; d=google.com; s=arc-20160816; b=wOwr341PR7nJbs6I2LE54I0LHMaHwg7YwQ0P8UpJX+eBXcy3D8JQZg4ih9ykFhAtOz rOeY4P/jDbjPdda4P/Lg+BGnr7IHUBZI4Qx1Dr4NE9QdnBfy5QqcyjChpolRoeCFPSbl TcnrAS9kMnXmCTJ1s52P9VAGthZs1RPB3AWY7oxn9AO6tbOq3qmH7HRt8EPk9B4H8gsr RydjNZJcPi77Kw7neKkAN0EEouIYWlseVqTDI+VAWnr8n9XKLio4PJZIG54caIoUR3Pw +PelpMfa1kOLOFzQndsBM4zBzi87YhducpmKMnH5Y48xzpRO8LhOKreaguOsN3iKlV3V dukg== 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=X22RDE4lNJzQiXtBrkx3vabXWaVBXKRy5Ha85vYTBQo=; b=OOE7+SZKTQSfLCtUVkDp7pDahjHnjp8B/PW4foF2DgCswiipdw9F6w4gw1kmsviwhL XLGGrFpCq9AxFk6/7D7IvRbW6e04q7EeD8sUZka9q26X/Gzzt1LSYhLSPcGzJLg4L3OL wIIWnjtudGwAbW1SorSS1HfECqZAdiC4xh2T1XPc3lZr0//aN3uXUsb3STBphqKLxA4R nIpL+gqdsYMVqGWTqC06zEz3DSm2M+mIODd5f8XNVTbSGpr3HWZWznNBEOA+I44pmBlp nV2okVtMjhL3AI4vyhqzQZUPYqyrReVcf+eyQUtb4TWx5kDJULc3tjsIl/Tnkdbz/8vy PUYg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lists.infradead.org header.s=merlin.20170209 header.b=NtN8u0KT; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=LYCnKcOc; 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 q5si2088977ilj.97.2020.09.09.08.36.40 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Sep 2020 08:36:40 -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=NtN8u0KT; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=LYCnKcOc; 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=X22RDE4lNJzQiXtBrkx3vabXWaVBXKRy5Ha85vYTBQo=; b=NtN8u0KTjSNj9e+uQDQa0uO54 GjMNih+FGWJMeTaJlzMx2LY15lkQuQOYWyZYDM2W2LjFZwgdAjDK8+nPR1HsUKVK8NwcSPhQXZYpd Y9DY9oTCtgeDf/a38HFyIhbnR+v4LlHBlrBiA2cqiK8ChhIP7ZuRplzvf3VqmsPTE6aikSZw6E/7J a3FmyKi1QWOMBVRB7dt683VMQPN7b/6+2va2J4+0skwplbkA1yqNwGxbooM9uX+68aNVjTx+Zb+CH 58uTtzcAsnuRcn2l3Lu6YpLU5RYtrwDQI6pMUNLQ/fiP1uqQnRT3dsipteqbz26exHFNtiCuvpDsU sY/Tmbj0w==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kG29F-0006ht-Aj; Wed, 09 Sep 2020 15:36:37 +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 1kG29C-0006gW-Ss for wcn36xx@lists.infradead.org; Wed, 09 Sep 2020 15:36:35 +0000 Received: by mail-wr1-x441.google.com with SMTP id c18so3445919wrm.9 for ; Wed, 09 Sep 2020 08:36:34 -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=wWzCrrKoKysbfFMFWJQIl3auUUYuPdk6I6S0pbeF+DY=; b=LYCnKcOcTXyGT/c2JMpMfO3Omd4+PrBdpFL9aah1ciQX9HeVZ5ealJ9A3B9DskQBwf LT3KYg9sBGqDxG9N61vp1IN1I1G7aU2aufdEi5w98KGPszZUse6tRP8vQyN/W/6Arfhi +2sNN56JFya9L17qWLZh14XgrWg5Jnee9vrHEp4DewFGWH6QogJafGvX1Gfi0/ljoe8w whYZ5HY0qeZrJNBqKx5+ynVcLR63pwbjASPMJKi6kADpU3l47KK1RKf7SMPB06upEfrS XvwnigcXzJoMj7sE+Nvi7CVVusOToYwG1kyS4whVLNCahpDqyDONNzgEJZOml05yNsiK F0Ag== 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=wWzCrrKoKysbfFMFWJQIl3auUUYuPdk6I6S0pbeF+DY=; b=oQN4SJ9KRI5spuDgNh6+e8wexzPxDG7f+tyjG4Uyubzr6Y9bPjWQhoDTXjWg8m+a9b 7FSRDB6rGTU1HX/ZQDd2o12zAN5TlcFhQZEhHW0HFhvtGkJbrzJup8xNu8JjGLEO1ZkZ A4Y0nUi1kdYeGXl+5blRxO7AN/tHnWeVSxu/3m4QylLojVY7R/c4xGYuSaJB0YCmNNZz 8aN57mCVL+1kKtCRP1yccmHtcMHFKyhSrfL5PjLFqPLpYfRcg4p3stg2uzlJnpcSYzVE +df5xt6f6cA47YutAyGbqXgocoBx+0K2/ZKYO6b+mmWhTNvrD4P3ZPlHTzSdk6ceetPg Ou9w== X-Gm-Message-State: AOAM530tzA2LaEMHhgWv64gh8VuXADqFOLWyNqQfLbGtdh1UonIxU49N 1x+C2bUhmCQEU5gTitgBuzEnww== X-Received: by 2002:a5d:4581:: with SMTP id p1mr4590691wrq.345.1599665794071; Wed, 09 Sep 2020 08:36:34 -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 m185sm4605220wmf.5.2020.09.09.08.36.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Sep 2020 08:36:33 -0700 (PDT) From: Bryan O'Donoghue To: kvalo@codeaurora.org, wcn36xx@lists.infradead.org, linux-wireless@vger.kernel.org Subject: [PATCH v4 4/4] wcn36xx: Latch VHT specific BSS parameters to firmware Date: Wed, 9 Sep 2020 16:37:17 +0100 Message-Id: <20200909153717.2905037-5-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200909153717.2905037-1-bryan.odonoghue@linaro.org> References: <20200909153717.2905037-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_113634_971730_59E23132 X-CRM114-Status: GOOD ( 10.81 ) 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 6805de3f58e7..ad36d6e744a6 100644 --- a/drivers/net/wireless/ath/wcn36xx/smd.c +++ b/drivers/net/wireless/ath/wcn36xx/smd.c @@ -1681,6 +1681,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,