From patchwork Tue Sep 8 18:25:29 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: 249341 Delivered-To: patch@linaro.org Received: by 2002:a92:5b9c:0:0:0:0:0 with SMTP id c28csp4792027ilg; Tue, 8 Sep 2020 11:24:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzNq3KVb2v/3XajxzAeWJfqTR2gBsr1t/FwYp09qH6V4u1xHYOoVZSuwUDh+Z0B1Rz7mnDW X-Received: by 2002:a92:d482:: with SMTP id p2mr44002ilg.9.1599589492608; Tue, 08 Sep 2020 11:24:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599589492; cv=none; d=google.com; s=arc-20160816; b=S7Fn9+YTDA26HCCIbH3ayAwOLqRuVcHodeESscdF6G0Z1EtwB47lxUd9NNLvnrC4Z8 ibxSZldec5GPe746ImJcMoW0+SDfJv2WzPfMTwZ5L+FPXiANeXI8mY/wsgZEOy7UwuLc CqRalJn6XoG/iMovotw4FKFEFrsUjXo7MlASS8kP888U1yaWO4xl2leZd6N5VyMxdYt0 5OWiaSPV3BxEPecDLoZgjWlVXjKr/dhxzGr6AR1tzA4vF5kabOvmAvjkQpIA/QVaKFZs PriL8rX247R/f9TsW73x6pNyb+OcndVb7Yt+DXkFZIyY7yJKp9MdNE2crCIgM7VtDSeP d8BA== 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=JIxbGlqoSP6tPlAOr7ynGChj5ZqO2oMXjA2hXuWUFVs=; b=Z5kvdLblE1GLWUyBytW3ZrvzetvMlj21E3PJ8VtQXuRLcN9UUvgHtjxfT0QrcDJokI VSedZVfdLohzXTWoxsfVdotEPgYJZfZIWdrLXGObPld5AsX8LY0PC4IrYmk3zrfrbdPw b0f5HTNHHVSGhO65xE3tB8jxznvciWeKDr1VhBX4Yj7TzA3voScgVqiFTurp7lWdYanp d28BSOysl635gTnsASzlyWG8KT1F33SvuKSp9IiNM6/kpLw7z8ZrYhBOpUTHjNpe5IFg WYe7HxVsCWW2+hwo7lZ8LkjtH0EWy+m6qlZzGOoTzcLHMfxu0QVkcWIldfBhOF7pLLFa KTnw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lists.infradead.org header.s=merlin.20170209 header.b=cFnospNJ; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=h4dRPqir; 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 i191si184363ild.61.2020.09.08.11.24.52 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Sep 2020 11:24:52 -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=cFnospNJ; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=h4dRPqir; 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=JIxbGlqoSP6tPlAOr7ynGChj5ZqO2oMXjA2hXuWUFVs=; b=cFnospNJlBIWX0uBt2rkk2/Tc 8LyIep0FQh3MY/uHBsq3WnAY2/FFjZd3tfEQb5P/Tk8zdajNlprqQqc5oERB3S15M71J/RvbFOWdg rKNTuYX8uPkVCO9yoZoo0KIMyd8++oAUEwWjPd3zZoJBBlHXe79XIxpclhQGXkDOmsPtBmIpze+x5 k73rF711Y3CTHkIH5+PM492JWjFNtchHYTs5i1NX9avFuvHmTxn4DVokvYJDNnhwaFZvUQPNVQxJQ 8XTW3Eha3v62RcJtCqA/CavwBAoIW+ZH0xhQNPiFSlj3BJayneSSD+anG/5q20cXsZGth0GTCixbO GUuvS+iHg==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kFiIT-0005RR-K4; Tue, 08 Sep 2020 18:24:49 +0000 Received: from mail-wr1-x443.google.com ([2a00:1450:4864:20::443]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kFiIR-0005Pn-0a for wcn36xx@lists.infradead.org; Tue, 08 Sep 2020 18:24:47 +0000 Received: by mail-wr1-x443.google.com with SMTP id a17so220170wrn.6 for ; Tue, 08 Sep 2020 11:24:46 -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=hC7svxUBC9+5fAYER72YcMO5aUlPkhhS9EHYF1mTiIk=; b=h4dRPqirVG/ZcKO5UTT1JH1P+lYaS6pw0Ng70MDiUXh/v9D90SgbAsSoEHIwyBh17o BxmLFvEkp5N3amoRRmgk1PpJAGbnisVGUae3b/erXlFemb8FaMBG1rCDYiSlbSlvNG20 /JxV6YUSVy1V7oV2/+4IKkizDm9Dulztjm+yrMb1WRuY5fXxyDlIPWeLVkXGc2+z0J2S AJ/vyN0484pPVwPJk+luypI6duA1pWYmZ1zf60UjtKZpxApFha0gV2xdDSG7IJivuSB8 SsCRA8DOpaNUdcLYtkquCHdtFPOA+7zdoAgMJmWjleT1gxeLpmluux7p7z2H0ZYgGC1r v7ng== 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=hC7svxUBC9+5fAYER72YcMO5aUlPkhhS9EHYF1mTiIk=; b=sqUyuFEWO8CAdeCCohoG0VF4QaahvVj5QqxHeG1kGvZNhLoxIGyx21Ai1rB+T4oY94 xgZjjWVuprHDhbRfxrOLtFEjudqfi9ZtDXs3lTEaG/ZAUasHCAG3qHcJQJpQv5A55gam ANAxx6IT+GhUpSdROJNWkWgbWvoWW0cUZUW3XrNJcmCVQ7+Tfb8vc4qgNaV+ocunEb55 bwIUFJEdArS4gu6hfWTnyjMA4w/I254Y99LQBVBXFNTICjGtJKxuUrYNftBBWe60O57y XoZSLHSDkFsUnga6WmYDAoEkpxSMfIksWInZAG6pOgcSajtwSe+i0Xi31Ogr+OpmU9ai eaGg== X-Gm-Message-State: AOAM532j4byW63PuvsywS2ut6xc/nBrvaKa+PkvHGUltRBIRD8j30Of4 4YaJr+p/KCdQeMxBisvUcF7C+g== X-Received: by 2002:adf:dccd:: with SMTP id x13mr942502wrm.403.1599589486224; Tue, 08 Sep 2020 11:24:46 -0700 (PDT) Received: from localhost.localdomain ([176.61.57.127]) by smtp.gmail.com with ESMTPSA id b84sm381427wmd.0.2020.09.08.11.24.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Sep 2020 11:24:45 -0700 (PDT) From: Bryan O'Donoghue To: kvalo@codeaurora.org, wcn36xx@lists.infradead.org, linux-wireless@vger.kernel.org Subject: [PATCH v3 4/4] wcn36xx: Latch VHT specific BSS parameters to firmware Date: Tue, 8 Sep 2020 19:25:29 +0100 Message-Id: <20200908182529.2870478-5-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200908182529.2870478-1-bryan.odonoghue@linaro.org> References: <20200908182529.2870478-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-20200908_142447_103315_5D33C064 X-CRM114-Status: GOOD ( 11.93 ) 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:443 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 Message has at least one valid DKIM or DK signature -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 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 4672581a4354..b09a3dba757f 100644 --- a/drivers/net/wireless/ath/wcn36xx/smd.c +++ b/drivers/net/wireless/ath/wcn36xx/smd.c @@ -1679,6 +1679,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,