From patchwork Tue Sep 8 18:24:31 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: 249315 Delivered-To: patch@linaro.org Received: by 2002:a92:5b9c:0:0:0:0:0 with SMTP id c28csp4791339ilg; Tue, 8 Sep 2020 11:23:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJywdKiG/BkCjC991I/DJmM43rd6bkltHHpIfg0Q6czaQtLSpseTdb2KsQ2z0zfodQIt25RN X-Received: by 2002:a5d:8e12:: with SMTP id e18mr111388iod.99.1599589438863; Tue, 08 Sep 2020 11:23:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599589438; cv=none; d=google.com; s=arc-20160816; b=IUXfn/8BhwP+aUEEw3ZeKddOhwAv/Cw2IRy4EssAWvd3PFckqPzkLvRq1YL+xjLdqS y78vQ1JZIRBzQnkT8xF1LtKIwsljWX3d0E33zvUQXeL9kbOH7jEvqLbYo9Kex1ihTpTX XOhQZA4u/pr1MSJM/6sotbSufQHCvEiOWQyLA/GPNQZv0rBVJPpxa1Wzg6S0ZODaFPex DGLvkmWoesSsErqZJynekaFkgX9oZe/19VEztW/QjzViPQ+J6aUqgMnZx4CYoHAHysgQ ERSP5uS2K8DmLMYL/yMUWBmnfv7fVvasfGJcNS1MpP2ko+nrdpjPgWnjipw2Ki/d1TjM lOFA== 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=2sb//AAh/2OKzng6AMCx7+Z+2DcoY+otPMxwOWvJT/E=; b=Bxtrjvkg+ZFRiKonbbcnT0gwN7nj/T0g2dZtZLw84nZ/WePiE161ycJX6v9sj0WBwx Ei5jhm0yV8Yd73orxK9M4lo1VNnwePGolgJ2hiZzcDlHlauXQmZoyiNlNJfoeoJNgs4E RI39uN/QcSQhmoD6v0H4Svr6uXv8Hb+jmZN9Iz4b1A91lvBNv4AxPNvTrV8wyQEMxG4u r6Zapyqzu/ZHcHyh4UWhZtwqooGsP/KHh/jwaTCrJlMNVbXZnwPJMbDWsQi9uk8/6v7l sqUZ8G0erARCdSiwrLAvmKlL2nzq4/oHpwBZDwSjngqhJVmoxXGYwg8Pe5WgASI9U9IN rI0Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lists.infradead.org header.s=merlin.20170209 header.b=zqU+s8se; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=SmTEGwEZ; 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 u9si123346iot.10.2020.09.08.11.23.58 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Sep 2020 11:23:58 -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=zqU+s8se; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=SmTEGwEZ; 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=2sb//AAh/2OKzng6AMCx7+Z+2DcoY+otPMxwOWvJT/E=; b=zqU+s8seNMHJPq0gKvuF1Xstv 8fkV9Kl3xkTIWczl5v8xSl5k1ga+WI34SgO0IvkJKvWCDBBbrUusTcr5pfj3xHu3iiSSRfZlNRkln HPEFFmB7k7rIJup1uGAdK5MjyZ+Z+tIvVaGfp9b5z0ENNoo/JBGmX+8NQiAXUsQMUK8UCCJMgA+Yh owpe3fFpXgYlFo/tTP9cqY4HVbYvzw0YUM2naHUd4hhJ9xMpXnrfa/zpuRl0CZUn07YCHAVqAOhPD sHk4UXDS4Z96qebEcp4O0spPJ//kvo1htxu9n7HzczboKyBphdjKPUEUgJpaRmbKvf8Q+YTXN5jS/ T0ATsKReQ==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kFiHb-0004zR-Ro; Tue, 08 Sep 2020 18:23:55 +0000 Received: from mail-wr1-x442.google.com ([2a00:1450:4864:20::442]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kFiHY-0004xS-Px for wcn36xx@lists.infradead.org; Tue, 08 Sep 2020 18:23:53 +0000 Received: by mail-wr1-x442.google.com with SMTP id s12so192905wrw.11 for ; Tue, 08 Sep 2020 11:23:52 -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=zLRqP0UInT6/AdhLdK71Y86cDeh3fCR/pcMIonkjMoI=; b=SmTEGwEZQG6wXCTPyYjWIn3jeLFANvjtPiQ38Ztow3DkSQ3vc1jTFkqZdoCqjlKjWr S2K75Th1aMeRlRf9sSxFRWFqsvi7fjM5rIHCd64ckGRHwgtPCuAblLMDGf66YX5IH9ip PjtHkysjWJ7D+bAsdaWGOu4B4Y6Oi9epEtnVXelpQ6ypP2IoH21FxEScC/sqmcHWlMu7 OW0oI7PEyCyXH6bsPZdvxIZrP8W2hNZ8wzI1/Qznk4S2ydD+2N8u8cKazUSD2ZU7Am+h sQLzebFkAyR2HGV5t3RzO6dJ/muTFDfEG1yDsV//MkN4ApO4tScJe2DCIiLWWGc2woI4 4PbQ== 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=zLRqP0UInT6/AdhLdK71Y86cDeh3fCR/pcMIonkjMoI=; b=CyxHDMaO2Qol7oZqvTLPNEQOFucPaa22MV4iLtoputW/FmgUsbS0SIQzqdQvIpGo1n D/2rYNd1ebidwT3tmUC9OZ09+Gy/SMoRgd9vifxG3km+PNLY9JZ6xdKbKKax/CQLft0W Gs/8zzTo7lhqJt6Oy3+0KN0vGYDpsOTtH/vql5p9LO1CaBtdo/11X6JlnPw1FUwVISTJ CWRf8RJP62T+cJNcw1KWNHHOdW+CbznGRIbLSxUAUX3iwOMU1gskF+NdlDtG0mjQJStn tpZxVm3kagwjAV3f/wctL+OKhAQneKZ9e4UmQ6jKdenrTd78/RQkObSwr36cJewf0e6p E7uQ== X-Gm-Message-State: AOAM532DT3eDp52rB0Z15LPJw7Eo1bTxZ/4Y3vT5t+pfRL0ZoJDVZYeR fxfaS8IugSitr9NSOrWi15G0Ow== X-Received: by 2002:a5d:4d01:: with SMTP id z1mr908365wrt.366.1599589431460; Tue, 08 Sep 2020 11:23:51 -0700 (PDT) Received: from localhost.localdomain ([176.61.57.127]) by smtp.gmail.com with ESMTPSA id k8sm362516wrl.42.2020.09.08.11.23.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Sep 2020 11:23:51 -0700 (PDT) From: Bryan O'Donoghue To: kvalo@codeaurora.org, wcn36xx@lists.infradead.org, linux-wireless@vger.kernel.org Subject: [PATCH v3 1/7] wcn36xx: Add wcn36xx_set_default_rates_v1 Date: Tue, 8 Sep 2020 19:24:31 +0100 Message-Id: <20200908182437.2870281-2-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200908182437.2870281-1-bryan.odonoghue@linaro.org> References: <20200908182437.2870281-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_142352_843996_9C9F77E1 X-CRM114-Status: GOOD ( 11.99 ) 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:442 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 Add a routine to set some additional default parameters associated with the V1 data structure. Signed-off-by: Bryan O'Donoghue --- drivers/net/wireless/ath/wcn36xx/main.c | 8 ++++++++ drivers/net/wireless/ath/wcn36xx/wcn36xx.h | 1 + 2 files changed, 9 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/main.c b/drivers/net/wireless/ath/wcn36xx/main.c index eb518bd88870..ba37439352a7 100644 --- a/drivers/net/wireless/ath/wcn36xx/main.c +++ b/drivers/net/wireless/ath/wcn36xx/main.c @@ -793,6 +793,14 @@ void wcn36xx_set_default_rates(struct wcn36xx_hal_supported_rates *rates) sizeof(*ofdm_rates) * WCN36XX_HAL_NUM_OFDM_RATES); rates->supported_mcs_set[0] = 0xFF; } + +void wcn36xx_set_default_rates_v1(struct wcn36xx_hal_supported_rates_v1 *rates) +{ + rates->op_rate_mode = STA_11ac; + rates->vht_rx_mcs_map = IEEE80211_VHT_MCS_SUPPORT_0_9; + rates->vht_tx_mcs_map = IEEE80211_VHT_MCS_SUPPORT_0_9; +} + static void wcn36xx_bss_info_changed(struct ieee80211_hw *hw, struct ieee80211_vif *vif, struct ieee80211_bss_conf *bss_conf, diff --git a/drivers/net/wireless/ath/wcn36xx/wcn36xx.h b/drivers/net/wireless/ath/wcn36xx/wcn36xx.h index d7d349de20e6..2da81d9926c4 100644 --- a/drivers/net/wireless/ath/wcn36xx/wcn36xx.h +++ b/drivers/net/wireless/ath/wcn36xx/wcn36xx.h @@ -271,6 +271,7 @@ static inline bool wcn36xx_is_fw_version(struct wcn36xx *wcn, wcn->fw_revision == revision); } void wcn36xx_set_default_rates(struct wcn36xx_hal_supported_rates *rates); +void wcn36xx_set_default_rates_v1(struct wcn36xx_hal_supported_rates_v1 *rates); static inline struct ieee80211_sta *wcn36xx_priv_to_sta(struct wcn36xx_sta *sta_priv) From patchwork Tue Sep 8 18:24:32 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: 249316 Delivered-To: patch@linaro.org Received: by 2002:a92:5b9c:0:0:0:0:0 with SMTP id c28csp4791360ilg; Tue, 8 Sep 2020 11:24:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxHLKfXbbZgqi7y9Mfx3u9cLF0VQlTYPPRKXMlKSu2BeitmFEfdAj6Ws0vYgDgK+V/a1duh X-Received: by 2002:a02:c942:: with SMTP id u2mr233349jao.114.1599589440251; Tue, 08 Sep 2020 11:24:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599589440; cv=none; d=google.com; s=arc-20160816; b=c22wWkkRgT5HfrZiaQGh8RHFHugYOS0BS71cSQGXkAcCnEMIps7RCAbaI9TS5HJGJN qnmAlywA30WLLxlfOYatDSlnmPvMUKW6N9ehNftFwlIRG1l2pnp+KyhHT4aKyHMN0i1t yhgZ2XHymug+czoklkHRIzOdWBzhqwyT2CifvayGapj+N8QhgL1SP1jOAtKsYBSk8lev pa7VM77WYXaBezETG9zoVFejoK5e9BQcN4Nz5O4axWoRoVWmFZBpZBKjOq2pG2fRHyhI WIzB5JR5ZplFxg4p3TE2Hdwda1QUB/HAUvnzPa7f6GvJdXrbNLP/WG39eCU5ZpcYivLj guaQ== 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=myGOqWZXqlq4qViqOqD2xSDTuvHyY7XdQE1hm7+rsQ1XkPC2dnl2bAb4tPpiTFLPg5 XMpR8Nk8LKCuWpzLUAFHd9TMfRHAIQ3llzNTdFlHYUTbhLX8KHxzYwyy5Fl5qxXp9beA JzH5f6VUW1AkcbWmf5ab4s8psFK4JljFZ0oTjeO/XJMWbKdZD7MJEKg7n8/lcVm5Zsxv +htc+Yz6AuoJsQx1m9K3Ao4y6RW2iVsAR6B02L7RxdL8twKNe6dBCvES4ryVPQ1lTD4g cGu7lMZyhUEg2AJWw0xZd7di1L5PmaHJ9m089AvVc9PIQP1HVUpiaO+JqSDYvbFVb5/B jPDw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lists.infradead.org header.s=merlin.20170209 header.b=akVQ1m+j; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=rlVXfZHZ; 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 m3si386465ilj.81.2020.09.08.11.24.00 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Sep 2020 11:24:00 -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=akVQ1m+j; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=rlVXfZHZ; 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=akVQ1m+jJURZ2AsFkBC+i+ViL 5YeJ/WTTbSlSsDVCczxAEFoagSaQLQ/5U/EypVFv4Bc5nJgDUwx53r2aW54wJcstPyUL8xi8S71SG awN3UzjlO5j3dg0uUihj82bFMVcRh7gn2iSb4k3x340f+qsG/25Mcw57hniFFaQD7nL49EwXDwb98 MdKBebu9t3+VdndRVBo91UbNTQF70OZgAMytV2P65qjCJHxNSpnc/r45zmDGTw/gTefmW5d+oa23Q zdZz5qwDGbPs+VimQywhUI72urWfXKdaRsUs4Ub2w7J7NoC0mhg5rkoIE1qBRQJ5KKiAdLapahxw7 nNQojPaNg==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kFiHc-0004zp-Cw; Tue, 08 Sep 2020 18:23:56 +0000 Received: from mail-wm1-x344.google.com ([2a00:1450:4864:20::344]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kFiHZ-0004xg-Ro for wcn36xx@lists.infradead.org; Tue, 08 Sep 2020 18:23:54 +0000 Received: by mail-wm1-x344.google.com with SMTP id l9so303502wme.3 for ; Tue, 08 Sep 2020 11:23:53 -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=rlVXfZHZTQ8fR/OJyfrsuIAIwYMSj1mSlKU9L76KwedlHBg3VpWf63pguI3doij2A5 ASkLZsv3ka8Dd9LjTZzsj3HiHn42wqAU5u/txDu96Ow8WadDdmtpBMpQaDWNxHolH/g3 PFpU36A9wLoLF2jnb8avElhwQbgM7KvlWgGp0NdakcK0MunWu+AMIKy+PqP9ou4PqaZF aLCLm7u2IVGODPdiaokIRYOibLBJ9COsXMuWLmO9KEWNqNzk0UHaCViLiLpGGOENjGfE c3zaw+8MrYySOUvisYmUJ4wpfF2HRd2VK216qnJFUf08rYmdt71Ei1R3fI9tHHdXKlPY b43g== 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=cn7msehjWZyhEKP4KNqGN4vvu6t6hIZ1IuUJ8RzwhGN4atOSICDaNMnAqXneMDyVdz lK88G62JAbNsSEXWQpO/xSqd6f1cWglDGhoY5MGkkZuCUAyt80mTrV0+RKtiuN//leGL tOQPPkn9lxbQsHY5bmpv/l/w9GoxiGDv6PjVM8qRmF9LrPMDgmsqssz979uPaXL363VL Cdq7kpuE8TCRKoThe9ZQ7EC+ciSpF1vRE2gjZ2y3zjAFE9q9yQpOEkzjSraV1+5UxkL+ GPVc9abq0JdJiMvzPS6Q7Gthlboiw8cApsgHARweNhVRo4jm+bzmnMSJjgrPlTFMqZnI 3A4w== X-Gm-Message-State: AOAM532o7pFqLAlAj+vEIm3GfbnvlWabIsFuv0Q7fYyWsxJdOvGwW3wg Z5/jgp3rH57Lh4O7obn7kCs2HA== X-Received: by 2002:a1c:f214:: with SMTP id s20mr396218wmc.84.1599589432446; Tue, 08 Sep 2020 11:23:52 -0700 (PDT) Received: from localhost.localdomain ([176.61.57.127]) by smtp.gmail.com with ESMTPSA id k8sm362516wrl.42.2020.09.08.11.23.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Sep 2020 11:23:52 -0700 (PDT) From: Bryan O'Donoghue To: kvalo@codeaurora.org, wcn36xx@lists.infradead.org, linux-wireless@vger.kernel.org Subject: [PATCH v3 2/7] wcn36xx: Add wcn36xx_smd_set_sta_default_vht_params() Date: Tue, 8 Sep 2020 19:24:32 +0100 Message-Id: <20200908182437.2870281-3-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200908182437.2870281-1-bryan.odonoghue@linaro.org> References: <20200908182437.2870281-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_142353_922687_87ED482D X-CRM114-Status: GOOD ( 13.20 ) 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:344 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 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 Reported-by: kernel test robot 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, From patchwork Tue Sep 8 18:24:33 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: 249317 Delivered-To: patch@linaro.org Received: by 2002:a92:5b9c:0:0:0:0:0 with SMTP id c28csp4791378ilg; Tue, 8 Sep 2020 11:24:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJymrtwJukVX5fl1G2BydyjHq6ZQN9Kh4QO+stneUb7VUpsLMC/TA84S8OF8ssYCHpwPDJTl X-Received: by 2002:a05:6e02:e84:: with SMTP id t4mr20603ilj.149.1599589441888; Tue, 08 Sep 2020 11:24:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599589441; cv=none; d=google.com; s=arc-20160816; b=CGZTmNmMFwEzlvDZbkJvYGcp8wGYzx6q4RPbtacmrNeZAuogqVhyLLzTo24riyTDXA yxnpYXda8QyCOWzxOGow+VrMsrx/8/cTzwkw8eoqkQQpDe0d1AE297iX5ccnqDkEceQu nxV2rDXkbKab/w8a16Oyi0xWkPcGq2UMCiQFo+tmFoUwHmr9JXyi8kV0a/TkXbI9I+aP ID5Ri4hMbbIdsneRYh9pzyQVIOQzjJ/tFwrDowkk1wXgsgj9o8u4fjNhw7PcrGUPWe3x wNhJiAa7bl9X0rrf1ESQJpQ66OqQy32ZRMUyCm/UmMapzE8F/Sx6N+mxm3jcL869rfVM Vw8Q== 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=vNF8a1DJjFgP3RybtRwhN0d3/D9+PJ5WTJIHuvFRYic=; b=QV80c7VNiLotGCOPJZi67qTGRSekXYV0MUE3QAymHafSWOkKLJAZbsQYYLrFsPdwTx QLgR8ChBqFIffXrMLowhpv4V8ldK6iA/0CsKnq0mzdzvemYJ4d+6YcgrJ6xoybQm9jFQ jMiYEXy4XTv8QqYO197WuqwGVb3y/Uo2aUPIxORBqHOGHCtiz+0Xng0dDh8kAW5zy23h iberiRAX8XAsZjPTRakyol50Ai7BALkAZwQaylRne1KxMleodIFxTWgWKFMmJTyXtxYD mv44oF/WV4YoylWc7Junh8GHkVeXJwNysmxP6ZFGfPSqWYgVXkNe2ObTHrGGWZ6zga0u KiJg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lists.infradead.org header.s=merlin.20170209 header.b=eiuxiVc8; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=LTHB9KCJ; 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 a1si220508ilq.58.2020.09.08.11.24.01 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Sep 2020 11:24:01 -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=eiuxiVc8; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=LTHB9KCJ; 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=vNF8a1DJjFgP3RybtRwhN0d3/D9+PJ5WTJIHuvFRYic=; b=eiuxiVc88wAkaGw8vBXjqYVKH 5EW8ooBacu/GCBSvWHRRMKVbuDy8+uuqq3VW6JkdolazbpCp1/ZF51XvEXKpyLv0C14qDpAIq0Sef d2RSwTYcdC0HAVYYLT3ofc++kn0U82M2k89ZXrK0nwWtq5ttvqsqWfpPDhNCtXxoZ9Lhcw4AyLXyr 1blrR0+NxFUCqMQWVsyyIdgDM0vFA+o5H7QLCRMAXglaFqtibOy5uYyl2EPCkiAvyQo7xmcexS9KA rCZPAIJ2MmqsGBUomgXQ1MN5CZhmeAM87FxFmc71xaiJ8YUiFSs8W7arhjZsXm6xxREMxmWPkUlib apoOL2S5A==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kFiHe-00051A-4C; Tue, 08 Sep 2020 18:23:58 +0000 Received: from mail-wm1-x342.google.com ([2a00:1450:4864:20::342]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kFiHa-0004yA-S2 for wcn36xx@lists.infradead.org; Tue, 08 Sep 2020 18:23:55 +0000 Received: by mail-wm1-x342.google.com with SMTP id s13so277994wmh.4 for ; Tue, 08 Sep 2020 11:23:54 -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=YvzZFSwrpgxQ+WGjQnmFyunvxfM/MsB1Cn6EiHCvmSY=; b=LTHB9KCJE1QUX6RZrRuw1GYy4xlUDUeqoywhh/tA8Jc9cINXN7UARuLYNdBTwe449u OpBTNnsUvGxfYfA2KvjxqWj4J+k+LcvMDJ5jvtbMHjvu1v8Oirjp0UVZTibtH8gtfHLE BjGJDO8O0bydjsQQa9d87Mmmrx+ODTZEHXPH9mVWpLrCJomhltz57Pmz45H1+NzgFaKY quPSNGfklDg3e3YXHv7mq5BUE2WmXYmuoxtP50ZmbyHuCa8BhFhCogQ4mCXnZTSAG/R+ /e4UBhBr29vruFJsRcBSWaYXAuec2wPOen3rIzmUBbeyPvFw9KuEsoJ6rD8WMPACr1Yt EOcw== 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=YvzZFSwrpgxQ+WGjQnmFyunvxfM/MsB1Cn6EiHCvmSY=; b=AZhfxUeqz7sAPqcTPqYT5sG2uMUsnNS+4hpcX6iGIOgNGYNtMmzfJ7NdozXw/GSH+e 6evwvGX+ga8QEQNT8cllbxLpg5uOt5vK/aHLWxXOTrIrenmK/h0NJMFhDxH6e+3bS4uI 6N0Rw/f0uvlmsWXusVrpq2ApfCRgboGKCpZT3O+Dyv/4rrcVO3utMDn6W//8i86sydGk OFVI6F0wmiOud4UO8DF7jilB+h2oW7awmXqbSYn4F9dmsbLXtH1RRyHHmdhNr8CoLmsB DGevKs4hk/5lhINXmq7T/hY4GejLPn8ZJL5kF00kU1AxSf1GliQCwe2w/J4fABgQV3Ef MXtg== X-Gm-Message-State: AOAM532iH8mG5jnod/h8/TSkWDsVDOoDKkmETsrCIMmKrmcyEaxd46lz nEMVjwcJA5usE9LdGr5ph0DMLg== X-Received: by 2002:a7b:cf30:: with SMTP id m16mr416670wmg.0.1599589433441; Tue, 08 Sep 2020 11:23:53 -0700 (PDT) Received: from localhost.localdomain ([176.61.57.127]) by smtp.gmail.com with ESMTPSA id k8sm362516wrl.42.2020.09.08.11.23.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Sep 2020 11:23:53 -0700 (PDT) From: Bryan O'Donoghue To: kvalo@codeaurora.org, wcn36xx@lists.infradead.org, linux-wireless@vger.kernel.org Subject: [PATCH v3 3/7] wcn36xx: Add wcn36xx_smd_set_sta_default_ht_ldpc_params() Date: Tue, 8 Sep 2020 19:24:33 +0100 Message-Id: <20200908182437.2870281-4-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200908182437.2870281-1-bryan.odonoghue@linaro.org> References: <20200908182437.2870281-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_142354_936464_AF81BFBC X-CRM114-Status: GOOD ( 12.39 ) 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:342 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 Toggling the LDPC enabled bit is possible only via the extended V1 data-structure. This function provides a means of setting the default depending on chip-type. Signed-off-by: Bryan O'Donoghue --- drivers/net/wireless/ath/wcn36xx/smd.c | 9 +++++++++ 1 file changed, 9 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 bb31c4d4d9a8..3f57acfe11bb 100644 --- a/drivers/net/wireless/ath/wcn36xx/smd.c +++ b/drivers/net/wireless/ath/wcn36xx/smd.c @@ -206,6 +206,15 @@ void wcn36xx_smd_set_sta_default_vht_params(struct wcn36xx *wcn, sta_params->vht_tx_bf_enabled = 0; } +void wcn36xx_smd_set_sta_default_ht_ldpc_params(struct wcn36xx *wcn, + struct wcn36xx_hal_config_sta_params_v1 *sta_params) +{ + if (wcn->rf_id == RF_IRIS_WCN3680) + sta_params->ht_ldpc_enabled = 1; + else + sta_params->ht_ldpc_enabled = 0; +} + static void wcn36xx_smd_set_sta_params(struct wcn36xx *wcn, struct ieee80211_vif *vif, struct ieee80211_sta *sta, From patchwork Tue Sep 8 18:24:34 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: 249318 Delivered-To: patch@linaro.org Received: by 2002:a92:5b9c:0:0:0:0:0 with SMTP id c28csp4791386ilg; Tue, 8 Sep 2020 11:24:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzlskSNHP/nTRIrYkpHIs5kp1O65p+TCyvFclpTmPxNLZx9ylotIApTAbtWHPzunFdIqDA2 X-Received: by 2002:a05:6602:189:: with SMTP id m9mr149351ioo.74.1599589442989; Tue, 08 Sep 2020 11:24:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599589442; cv=none; d=google.com; s=arc-20160816; b=yXp7WY4ft1YqfWXajuBlBAHphgazDYW84OouFK1N4LdrDdKShgSkUfqAKuZt7AvhY8 8JAE+bd4nbelxG0C5it1SEJ/TOPY2F0w3r9VYbRKuWbqGH+Yvw3mD16C68FpDm+XsZv/ 7t3oCvZdCprXxNZrnTG0cn6VHtx449wvRtAV5M66mz2utxrmm6K5s7iboR+rcZtxbX2D gAjiJZ97ko8GgPze14jQn7+Jgu1//B1IHiFWeVUofD44G1zF0eaW0K9yIBmc2sNdcjTw hF6lyotpo2hUxB6LfvxSHLMvhOWxp+wiP/N2qKcUzITSjejBk8FFKga/04VW9969QwZb 96/w== 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=lzrAu7tVpkLLeh6cP2kuuoTAkCI97ffnY/3EfoVpLz0=; b=APByRmt9Qkv/iSCwPOf9/amoaJFqhsHZQyyZvcbYXga2WWGigN7f+0aTCsB87+Z7aY zbOyJQL6r/zbSdTaHXwXyCpfu+x+WiH0Y4zWd34fwufqnw/LH1ISgOHcrS5ASUpm4JXL Eb8+hLqinhLmUgzJGEcm+QvFY26xxWr6bVpzoZH7X3tLYAYKtnTmAGaaG7PXJEWZm0cz j4A6UWMJTRqAoIWVrkQnjSC9KOVZFswzUw/nUklvr8FWK7V8PisbBA0QizkSV5Gw0x6P ILZSg3ZU0u2BhWHWxPszlPTmSbwWUiJ5lCCPJ2JKIuS3pd9DMT1bSXXvKk4NrlCVw8Sx JIJA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lists.infradead.org header.s=merlin.20170209 header.b=0he1AURd; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=mzC+qw3P; 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 f19si18086476jar.103.2020.09.08.11.24.02 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Sep 2020 11:24:02 -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=0he1AURd; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=mzC+qw3P; 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=lzrAu7tVpkLLeh6cP2kuuoTAkCI97ffnY/3EfoVpLz0=; b=0he1AURdLxnK9P//k0IbheNtH Qj3xtOe7hEdCk2fKR7rm2tEfTIok4WrGaXqoPSD6Y8/+kUkOMGI1FQ6QDrkthXcuvlADtLdxk7UUT XJjGAmPn5P8LyN2DZ5+jxk90Ek6TMoYC/glmJ9v2nHRKxVyTyTiGgtmzWdEUWsvkksCLsdV2qfLZh Jyz31neCifRzViB0NcBW0lFEv9C9DgDS+k1kLqJJiy6vO6L0NpZSaRdUQwajlwKFdsaN7g1wKMg+2 l84U6Wqy/9FBsROPAw/fVmdAXjCmuIIs7JFu2sLh3r20/gf3Y4YdXYEMCctMjGZ6k8fG5I2isl4QK YEB+I9fTw==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kFiHf-00052T-V9; Tue, 08 Sep 2020 18:23:59 +0000 Received: from mail-wm1-x344.google.com ([2a00:1450:4864:20::344]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kFiHb-0004yf-A4 for wcn36xx@lists.infradead.org; Tue, 08 Sep 2020 18:23:56 +0000 Received: by mail-wm1-x344.google.com with SMTP id b79so297279wmb.4 for ; Tue, 08 Sep 2020 11:23:55 -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=0kUBjvvwl59BwNDewkzvG1ZSSZyLN3Mzs35/KuiVmWA=; b=mzC+qw3PBiNDtT3lcLfVPhDiSpqYDd06JZfexYQ4PrNGCgSwzhbC13oSWY9nVLojy0 Ba6n/nRYKOMnCqCz3ivfD/WdLGM7CUiRKXQncfcN10ad8t3m9Fs5tQZl/zs+ALihrw9x 8uVdP+JbF0Gqj4phgy9qgBo16eMN3LJ/GhM/6kVon7YJO5IXHxcaRxgfst7ji3XvtoPJ 38vvyIopps6bW95W+4PTuzougoCQ0n+Be+vQm890Iw9vg05mtSLRzhw0v/ClbX48iC2t Uj4XZR9rhqocM1f397uS4SFCt+7lXh+FwY2oGxFE9Tb9bG2wCWzmIBTEvvG5mrjSjys7 CHnQ== 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=0kUBjvvwl59BwNDewkzvG1ZSSZyLN3Mzs35/KuiVmWA=; b=jxMsiANYGwEJ2nYUdM76JBZ1ZgBdRuNXuXw+sPU+HXPu5QmFqMYKdfHU5si4d27bvT A2Ynqxz9aoXZ5bkBUEapvLU70gyFUpMq/TpHXD0QIXLek/NSy2q/+hYQ657H06hciyeo JLZ2G00fQWf6hwa8gtFE/qIGV0vlhtGLinD0+Rfz+CEVAfzwRmcz2/O7XG30AqS7QhAs zKk7wzDEDxZpgbV6GSg1Jym1h2fDPXoO9TtJlTKMrI9UaJavXqcCrFLRIWtiZwEBdLkM MxVdIV9ZJVr10YAM54goPCzR5uoCZmtxJH476B5IHzW6CPs70Z0cKxIJGOd4g93A7p3e +tHg== X-Gm-Message-State: AOAM530XBjentLWeRRPeftkF/SK71+mfZ+P/qeRbGVn6TYICP0tpegxc id4Wk2LrkbYzLkR00duD0vyOFw== X-Received: by 2002:a1c:bdc4:: with SMTP id n187mr362132wmf.109.1599589434392; Tue, 08 Sep 2020 11:23:54 -0700 (PDT) Received: from localhost.localdomain ([176.61.57.127]) by smtp.gmail.com with ESMTPSA id k8sm362516wrl.42.2020.09.08.11.23.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Sep 2020 11:23:53 -0700 (PDT) From: Bryan O'Donoghue To: kvalo@codeaurora.org, wcn36xx@lists.infradead.org, linux-wireless@vger.kernel.org Subject: [PATCH v3 4/7] wcn36xx: Add wcn36xx_smd_set_sta_vht_params() Date: Tue, 8 Sep 2020 19:24:34 +0100 Message-Id: <20200908182437.2870281-5-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200908182437.2870281-1-bryan.odonoghue@linaro.org> References: <20200908182437.2870281-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_142355_381179_60A426DC X-CRM114-Status: GOOD ( 13.82 ) 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:344 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 adds support for setting VHT parameters based on the declared VHT capability bits in the VHT capability structure. We cannot do 160MHz so VHT Channel width set should be zero. Signed-off-by: Bryan O'Donoghue --- drivers/net/wireless/ath/wcn36xx/smd.c | 22 ++++++++++++++++++++++ 1 file changed, 22 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 3f57acfe11bb..a563a30c3a0c 100644 --- a/drivers/net/wireless/ath/wcn36xx/smd.c +++ b/drivers/net/wireless/ath/wcn36xx/smd.c @@ -174,6 +174,28 @@ static void wcn36xx_smd_set_sta_ht_params(struct ieee80211_sta *sta, } } +void wcn36xx_smd_set_sta_vht_params(struct wcn36xx *wcn, + struct ieee80211_sta *sta, + struct wcn36xx_hal_config_sta_params_v1 *sta_params) +{ + if (sta->vht_cap.vht_supported) { + unsigned long caps = sta->vht_cap.cap; + + sta_params->vht_capable = sta->vht_cap.vht_supported; + sta_params->vht_ldpc_enabled = + is_cap_supported(caps, IEEE80211_VHT_CAP_RXLDPC); + if (get_feat_caps(wcn->fw_feat_caps, MU_MIMO)) { + sta_params->vht_tx_mu_beamformee_capable = + is_cap_supported(caps, IEEE80211_VHT_CAP_MU_BEAMFORMER_CAPABLE); + if (sta_params->vht_tx_mu_beamformee_capable) + sta_params->vht_tx_bf_enabled = 1; + } else { + sta_params->vht_tx_mu_beamformee_capable = 0; + } + sta_params->vht_tx_channel_width_set = 0; + } +} + static void wcn36xx_smd_set_sta_default_ht_params( struct wcn36xx_hal_config_sta_params *sta_params) { From patchwork Tue Sep 8 18:24:35 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: 249320 Delivered-To: patch@linaro.org Received: by 2002:a92:5b9c:0:0:0:0:0 with SMTP id c28csp4791403ilg; Tue, 8 Sep 2020 11:24:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzb3fNdc+RS6z1of+g4nx8JwhSacT3gQFbxUVOHRm7UlOg2vEyoCpQ6ZdpSlvQGMzR8Orp9 X-Received: by 2002:a92:6906:: with SMTP id e6mr12285ilc.249.1599589443867; Tue, 08 Sep 2020 11:24:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599589443; cv=none; d=google.com; s=arc-20160816; b=bWOsaQVvtWBoo7hjZNj0LfzMpT6+n1HHEp2BME0n6LQK614cAR9WxxwHZueguLYxLn IISUWQuPutjosq+DincqQks/n5Il1cSpB8ZbU+LhWzI7CiS6YYGUyBUSgEPRHgXdI3H5 BQAzT+uWfB6zfqSvMPf89HIbYGe5n9gvv8qWL4a1ndFksuG0FnUb7RKQEwGZKf+meH6W /VmgH4/2SkLqFfb/cqrQdCD7VCvx6x5XM2KMAuE/GvIsHRoNWqL99GGzhR+wGhdm/B1p PZIBZ3cOiBJHOxdUW+7fF3xBdwSixu5krMaILTgxCcJmGo3KtGXHASpJL4Ta0CrYuBgm tVNg== 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=7mNMrvRHusLK5PKvS4xfE1QIDKkj1K+A0fRoc9pJfx8=; b=lmdZIq6sfh5JibO0UeaeR8ojX6Vk8JcQ6mCS+mku3jIGRO6Izy/lfdrP29h/U0kk5N FL1UqF1NqyNfrT309bZTc/vVRGYJLzxObgmROIBc9VClo9pMo1OhhKEzs0OaneN3vI5/ +wcAZ/C0v1w7nDtK2bXWfMNQY1YUIt5s7IFouovORdhbwvCpL9uxaibTzxjfuOYLU9bm Np1mpIgPysHNylDDswQCkF1Xs2AiiBnkmD3gOyxuYmTZHRtrCelQDTi6ztu++zIbdMcL O+2eUDu71TD4iIGWHlHrs+tk81mXJCcK7pwZQvmrDT5AhyFrAi/DPRilYtrmg8vQOgC5 wtrg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lists.infradead.org header.s=merlin.20170209 header.b=BCCVrKhf; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=Am0e6ABT; 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 e13si17013702jaq.72.2020.09.08.11.24.03 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Sep 2020 11:24:03 -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=BCCVrKhf; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=Am0e6ABT; 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=7mNMrvRHusLK5PKvS4xfE1QIDKkj1K+A0fRoc9pJfx8=; b=BCCVrKhfwpgTpAyM5BskCTiHd 1vAw1eRqcia0Ui28msGxJetFOm+bTZaxe5vA/HtljCF+2KpsgBOa7MeKWDKDMnaNUlwVaA+YAI60F 0tHgRFdbh5NBO96V0i01vSG8TKjwBTkHrz32+y92VW97HkQa8t/XRhDTKPVB0oxH/MHr/t4CEn7/q gHCtqGn8VUTS+SktfvpuupuTbKhLuv9DND/oeIvAkDHq/jNZgHNsZlJzF0ZBV5zsKs3r5+AANkpIm ZWePZlm3QRemI00SjRVeqtJGLIf88C3uV0GTo793xMHCff9xHriPUACpxH4hf6EE+EGIStJ4D0yDu iRyuA6MTQ==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kFiHg-000533-L5; Tue, 08 Sep 2020 18:24:00 +0000 Received: from mail-wm1-x342.google.com ([2a00:1450:4864:20::342]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kFiHc-0004zM-5U for wcn36xx@lists.infradead.org; Tue, 08 Sep 2020 18:23:57 +0000 Received: by mail-wm1-x342.google.com with SMTP id c19so183049wmd.1 for ; Tue, 08 Sep 2020 11:23:56 -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=FIXgUDCAw5H+6nCd7qyCvsfy5qAJIAQL+JK4lt32D9s=; b=Am0e6ABT6mWjoCC+451SwrlPEHFiWuCdQBmfAeUhYsBZEsC2Q02Lsnc7ODIa8tfa24 wtR0ZwWNnFO9BQCurNKzCuwrfO/o1WE5y3KEkXlJ1232Mak+QgxOX2Il2t7oIEwUBbnb BcorjGQutPtrJrnl+tNxqQnIfD/XnGTUL93eLv877RdZIlpnre5z3RACLYbty+g4WWzg 6+PaxqUypYlfk6r33boAmX+gNv7/IRK0702YkLN4LmKOS9+m0puVQDC0e2DJ2ITLWnyW a1idco+6FztxFnfLc/6dPxoit1KFB6VqCRUsXa53vfJ+FjOPaMUSSiBiE7qYN6JXKL2t 1U/g== 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=FIXgUDCAw5H+6nCd7qyCvsfy5qAJIAQL+JK4lt32D9s=; b=A/S1wUpuPpQEBKFO3srmdGtosliPO0vT2KIy9mHzWlE//tVY7ekEqkLDzndoi/Bnw5 JGwvhViHVwgjraZBdIzIwldl+onrPupwAFs7p9Do4mF6qHe/EQVolMLOBViO9xVYkQWX a9j/pl51POj+2YCsMbwzKCM8OGaeivkrDmQM3eNM2LVhbpt3e6IOsc3/tX2gOFu89loY rbsBc92y5IfSCrc4WBRDTRchtJM2GC2Z3xiGAqoc0yrov3l9z4W/snnynHLXgCapd+2r dp8TF68IdqkPNM9c56eFE+odfYo30EubQWtDXaFuZlAOOo4zx0XjkfExBBS/DRap/1we nTeA== X-Gm-Message-State: AOAM532Y3WLCCM35GyRpd63EHckPzbcUBlkV5kx0e79CmnuG0W8UzcWh MFkd6Qni7VPjFAau0cSVbnC7iQ== X-Received: by 2002:a7b:c384:: with SMTP id s4mr383075wmj.138.1599589435367; Tue, 08 Sep 2020 11:23:55 -0700 (PDT) Received: from localhost.localdomain ([176.61.57.127]) by smtp.gmail.com with ESMTPSA id k8sm362516wrl.42.2020.09.08.11.23.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Sep 2020 11:23:54 -0700 (PDT) From: Bryan O'Donoghue To: kvalo@codeaurora.org, wcn36xx@lists.infradead.org, linux-wireless@vger.kernel.org Subject: [PATCH v3 5/7] wcn36xx: Add wcn36xx_smd_set_sta_ht_ldpc_params() Date: Tue, 8 Sep 2020 19:24:35 +0100 Message-Id: <20200908182437.2870281-6-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200908182437.2870281-1-bryan.odonoghue@linaro.org> References: <20200908182437.2870281-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_142356_235963_00CE2899 X-CRM114-Status: GOOD ( 12.57 ) 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:342 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 Adds a routine to allow setting the LDPC bit for HT parameter passing inside the version 1 STA parameters data structure. Signed-off-by: Bryan O'Donoghue --- drivers/net/wireless/ath/wcn36xx/smd.c | 9 +++++++++ 1 file changed, 9 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 a563a30c3a0c..14af98af42f3 100644 --- a/drivers/net/wireless/ath/wcn36xx/smd.c +++ b/drivers/net/wireless/ath/wcn36xx/smd.c @@ -196,6 +196,15 @@ void wcn36xx_smd_set_sta_vht_params(struct wcn36xx *wcn, } } +void wcn36xx_smd_set_sta_ht_ldpc_params(struct ieee80211_sta *sta, + struct wcn36xx_hal_config_sta_params_v1 *sta_params) +{ + if (sta->ht_cap.ht_supported) { + sta_params->ht_ldpc_enabled = + is_cap_supported(sta->ht_cap.cap, IEEE80211_HT_CAP_LDPC_CODING); + } +} + static void wcn36xx_smd_set_sta_default_ht_params( struct wcn36xx_hal_config_sta_params *sta_params) { From patchwork Tue Sep 8 18:24:36 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: 249321 Delivered-To: patch@linaro.org Received: by 2002:a92:5b9c:0:0:0:0:0 with SMTP id c28csp4791408ilg; Tue, 8 Sep 2020 11:24:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyG0GBnaUT6frJC7hefCFKq0naImY2aUaCTf5Gswmk/iUlImOWK2L/N1EkKP4gecWnayZ3o X-Received: by 2002:a05:6638:1448:: with SMTP id l8mr213980jad.83.1599589444133; Tue, 08 Sep 2020 11:24:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599589444; cv=none; d=google.com; s=arc-20160816; b=uhN1y5RvXpGmxtW+lBr7izeHyVu70Z59Yz2rWA52gNeb8H/ZsrgT8MR8uSZw/Nf/ud 7UXDouT5B1yEci9NPIpDxq+RVoXjA5GfhZDmmDXa7uDpT236RXKDLuo7bCrro8zHIn5v bee6hvmjnzySdhF8AJUXQPFNozTq+78z6g+9NEpANOsC/Y2LZl1zgU2intAiNURuhMgA m+tg24P88qJmxon3pOOZoSPB7Wfs1bQnX8owPFam4ydIVOhroY0Cm4SrHN8LX9FYUKcv 7Hf8TFFumppJGqOAugX5mW5W9n4s/jd+zNHKNHQ1O6jHs11be17urFhtxANPaRnw7gRJ fOiw== 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=OoF4O0dmsqj6ZQGvcGV5NapfAjtfjHkgwCWxRUl4QcM=; b=iTFEGuSv5V0zGiiKlUFz8j2/A/hsgs2QamViIARKfAD21TxqrXAU7/PqVWCRSsVyEk gbma/3vhu0saq2NwMNbtDSzS5D9DWzlj74lATulblGsQ+EDBntFxpE6wELqPxWJwz9QY HcXBb3OzcFZddavMkx8jwQ0jJR3qvJdnUQSGBSbGLxO/vtthvDuoi4eYAUTR+oVCq2Q4 1iFJxtDqKy/1HgqZmiSNLM4G/KAiSJIj2uz9O1o1hbA9e0kdK3q1099ogFUg2vO/EzH+ uKKS/RMilDUC3JVMJWKYCg4v06ud8YKlunO/gmWW0fP4jtjkR/cbMRXbAHuVp+OG9fww zCOw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lists.infradead.org header.s=merlin.20170209 header.b=IX8qjEpZ; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=ELL5xuzq; 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 h27si14986311jaq.17.2020.09.08.11.24.04 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Sep 2020 11:24:04 -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=IX8qjEpZ; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=ELL5xuzq; 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=OoF4O0dmsqj6ZQGvcGV5NapfAjtfjHkgwCWxRUl4QcM=; b=IX8qjEpZE9i89fDpZPE2A0ngg eggSuh2134wERvrqApL0ZIT+1I93/4NvqYBLvmcZcFdVOvcVvd1rm+CnLPUxZvI/OtHmZ6f+RuJ/g B3bwCcadi5uoiTb6TyrGLrvASrhtXh0u6myeY5k2MdQ9iysevs2nS80hRMlc7EXhUCMhg5l2bCOzI NTPd0i6Dg6/yXWfWE6CuazWRhz4oYdljSljP3PMlkSdb/rxL3zJLuH34YPZluNlUUUHIkNjL59x/z ZYn9WJ7saN93drfTn8cnU2wByzZxLpD3wi9lEKQuJoiWEniumiCQyx6K/LeTQNzb0oQfH0AHp1ZxE bwk+668Uw==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kFiHh-00053O-7O; Tue, 08 Sep 2020 18:24:01 +0000 Received: from mail-wm1-x343.google.com ([2a00:1450:4864:20::343]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kFiHd-00050H-AR for wcn36xx@lists.infradead.org; Tue, 08 Sep 2020 18:23:58 +0000 Received: by mail-wm1-x343.google.com with SMTP id q9so288647wmj.2 for ; Tue, 08 Sep 2020 11:23:57 -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=Z7Rx0C6d6/7/5yg3uB9kdCw4d9C0cgfMEPvtmg+zlZY=; b=ELL5xuzqWa5q/mb3KbbeH7b1DIUvnFd4gU1GPgji4LIdQxFVLUSsIqvF77f4GSTsb0 xRzUQauUMIParsS3SZiuTzZba7KrcARB1zKYzOpZd4xYgzxpTiOOCHrJygRLhjoewD3M 51OgLZFBO1pd3y6HDpwVpO9PVTP75+UJtHjNv+UynvH3ArKrQyYh0SFsXfgOUGDPIsIL zDqekLyd5RviwKFlswZ7iPR/6MG0cjpZNryTOt4k9mV1LAgdRw8ouynY5k17kmUuwKg/ J2m0Gbo7SkoxJd0S6ZlimPNwNgIjYPOc7AYe6qOiUvRuZe+aOni7e/0xeTZTSkt3J74f lkpQ== 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=Z7Rx0C6d6/7/5yg3uB9kdCw4d9C0cgfMEPvtmg+zlZY=; b=pXGR+KdJzG8KahmHeCRqQHXwVBBA4U7WiaKH/h2UxdBvmfH0ZcE2B6UoKzEZZmRSKf yYKL3axcw9eUefvKktvgkOLfWGXZbKxoSrDmE/nz/RnXyxs3n7aTHCaAUk8eNOiJOlfb YcIw3zbopcjQkzqTU5qevFij/2PPtJalddMbRUCtgKOY3/s4hEkvOscd5rgMm27BBv+o wF2gMX7MxGRP5qO7FSVwwJ9pJprz/tjqwuAtPyI6uopDKtXQIcL/E9oOdez8obwbviNc 0DSgpHorSzVh5qZsKnV2ivUUdss6nk9HlHlhHqwa4RKzgPC8eVEQqRxzAk8EIewKCR3l I1KA== X-Gm-Message-State: AOAM5332pfmg7H/tgg/ySZBNWT2Za1ihTGh4KXHPe1kDioh3pTHi++ny DmmgGD8kthH5cAXjXyixcOX+5SqnFK3J0Q== X-Received: by 2002:a1c:63c1:: with SMTP id x184mr394519wmb.138.1599589436290; Tue, 08 Sep 2020 11:23:56 -0700 (PDT) Received: from localhost.localdomain ([176.61.57.127]) by smtp.gmail.com with ESMTPSA id k8sm362516wrl.42.2020.09.08.11.23.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Sep 2020 11:23:55 -0700 (PDT) From: Bryan O'Donoghue To: kvalo@codeaurora.org, wcn36xx@lists.infradead.org, linux-wireless@vger.kernel.org Subject: [PATCH v3 6/7] wcn36xx: Add wcn36xx_smd_set_bss_vht_params() Date: Tue, 8 Sep 2020 19:24:36 +0100 Message-Id: <20200908182437.2870281-7-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200908182437.2870281-1-bryan.odonoghue@linaro.org> References: <20200908182437.2870281-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_142357_378236_BE8717C5 X-CRM114-Status: GOOD ( 12.85 ) 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:343 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 adds wcn36xx_smd_set_bss_vht_params(). The job of this function is to decide if the BSS is VHT capable and if so set the appropriate bit in the BSS parameter structure for passing to the firmware. VHT Channel width set is not set since we don't support 160MHz. Signed-off-by: Bryan O'Donoghue --- drivers/net/wireless/ath/wcn36xx/smd.c | 9 +++++++++ 1 file changed, 9 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 14af98af42f3..fa6f5943a43d 100644 --- a/drivers/net/wireless/ath/wcn36xx/smd.c +++ b/drivers/net/wireless/ath/wcn36xx/smd.c @@ -146,6 +146,15 @@ static void wcn36xx_smd_set_bss_ht_params(struct ieee80211_vif *vif, } } +void +wcn36xx_smd_set_bss_vht_params(struct ieee80211_vif *vif, + struct ieee80211_sta *sta, + struct wcn36xx_hal_config_bss_params_v1 *bss) +{ + if (sta && sta->vht_cap.vht_supported) + bss->vht_capable = 1; +} + static void wcn36xx_smd_set_sta_ht_params(struct ieee80211_sta *sta, struct wcn36xx_hal_config_sta_params *sta_params) { From patchwork Tue Sep 8 18:24:37 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: 249322 Delivered-To: patch@linaro.org Received: by 2002:a92:5b9c:0:0:0:0:0 with SMTP id c28csp4791421ilg; Tue, 8 Sep 2020 11:24:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyFriRkQ4JVpIGyCYwi6RbOncQpIHh1zi0w2OSQ7Zg00aJAFKWlgEP5W6aIC0CtwPewq/35 X-Received: by 2002:a05:6e02:be7:: with SMTP id d7mr14867ilu.219.1599589444879; Tue, 08 Sep 2020 11:24:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599589444; cv=none; d=google.com; s=arc-20160816; b=Ezp3xThYW75s2/4nzFsHewNq0n1oPFo0VaIho8QSjjvQoEctCG5lzITPLCxm31ABYY kN/xztda36XpLjh/eNjNukq9La+DJS8y2cgZnMr8ic4cpZ+KtLg8DCOOMQLfthnkj+Dv uyTXUSfwGEHBNumgNDvQ7hYs8KvtCmTKmR8+qJGau6s81+upkZCeoJ4CdhmInO/78pax tzFk3ms+emzlDFnekSJmAq4atpiu6x+bMY1nhHaBOIMwsWy1xlwIxqbkLxOCA7GKUVuL +EznFMtT6FK3NAbtjPI1YOaRBqE6vrSUGMk2ZkhZw143cgaIfJHYb7uCJ7soyNMFEa+i TANA== 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=VMmNVFZWRU+zpvuT/erCCg/NctFOZsTKj+YoqNjPfSk=; b=X7fiaddytXOZQSuLA//vBo/syxExrxEsdk9Ufk0/hT7WydfqQ1FhIVHOnmHVV+FDeY xzQuMBvL1r4h+j5atJBwbgXVjzZRz+dehQ1LWTK+1Na8GSQdTNXq46QEaEgLkeqQGDJx gh8Cp8Q1hdG7HQHA4MDYMvpulnls1jgZiDM7lFflIKjzsAiZbuaF3PQ8z5uIWVvnT+FV lsPto6WMIR1hlkTgcsEFePFgE6ulWPYFwXth7gALWqaWHhYY8mrT/DDpVHIC+crZDOqS oA+5cBvl48DSTBWSydiavZBgmddInf845TsG5qeLuAJg7g+eu8HTgc8XdBno7VLn00cO V1Tw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lists.infradead.org header.s=merlin.20170209 header.b=b2GVMt2b; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=P3hedTcY; 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 m63si118909iof.60.2020.09.08.11.24.04 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Sep 2020 11:24:04 -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=b2GVMt2b; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=P3hedTcY; 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=VMmNVFZWRU+zpvuT/erCCg/NctFOZsTKj+YoqNjPfSk=; b=b2GVMt2bvB2Wjnx+PQ0me1dKz WAN7n6hIdpRkcH70Qz+UbeMfv9uL+rGylk38EiZ/yqco6BrRyW0c6+VL+2yYIoZyr2i/SK4EPokSm 7JmVEutq4UNTgnOaf0bTO1BHMd3NKOjmUvf1Ad1jucfAIHHgEZwmwcH5tRgk+MQ5X/1p+A//cx7Hk sztJB/NmrpoVi2/93do3whCm/iU6vvyYi7EKcL328stAZ+CDCc2Jr09STgW3PZ+e5WAVCdBd+IgJi nWY5lDFrI94xoV5kgKxSN3Rbe0tZJs6AmCMC9Gi8Oivo6foeasMBk8CQeo4IibiQobQGq9cAcuCV1 vhzIWfH7w==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kFiHh-00053i-Kb; Tue, 08 Sep 2020 18:24:01 +0000 Received: from mail-wm1-x342.google.com ([2a00:1450:4864:20::342]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kFiHe-000513-3o for wcn36xx@lists.infradead.org; Tue, 08 Sep 2020 18:23:59 +0000 Received: by mail-wm1-x342.google.com with SMTP id k18so291599wmj.5 for ; Tue, 08 Sep 2020 11:23:58 -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=oIyFTjtZqqz1/a9JDLpNoneKVIe4xiF8cj2LgmPKQKo=; b=P3hedTcYIXhIoygbLO9ap57mxbcZf4C1cLkaPFU4XqJCSwQr0eJ3Tvu2n+u0/5mvuB L/UIxs6DyWGSGlZTaPOyPiCqr2+241eJzHIzsGBfYDg2upz6V8M2jG103FNGiVL63eL9 FpGreDD0mwbuyM8JaNRhUsV8ueKxJQbeDedC0Rkx9WOu9azu6S+RY3ZWlcbuc+48Xi9q m3kLnNfDfa+cZoVoNJIWM8OslHniy+keNzdY6VOBdMAgEpsOmpKDp50mvF05gLFF97F6 T3J0/CkVrvO7zcLq0ltOTJN6/Ml1ifMa8VDPA42Fp+L1CwBVNU474tBrq9a3DrZ5OJIo kFvQ== 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=oIyFTjtZqqz1/a9JDLpNoneKVIe4xiF8cj2LgmPKQKo=; b=iitDsfPTC0eEntELRGEEJASF5WNyqJ+LSqmS+jXsKj7Xv3MXZEiC7GANTp/gvXdmr7 3c/0i9gRNjncCdBMsxPe4E7osfs0Xb9hsVsyXyqhNWv5qBz3bBt1NKiEXPL3IxsZxqgb vzYuJn+45rkT8hUmAQPu6seU1JBKmUYIRglWoPpHHbBmQi8GtY6RyajSeOOp5mG6Sgan YhieMQ7B/TxwFkPX2iUPaNGfVMQOKtnx++nFesEJTz8KHFYpOtEOSOsYPpO+HOUKyVHJ /Z+FwPdxhVy1o+pgaOYhDsAXGfPNgUl/guatYkAzKbsTycJQT0Hha0t17op7di8mcRFQ gIAg== X-Gm-Message-State: AOAM533h5dSV4zhuobNu7lqSD6606N4geaWHDZkDJcqvZftoqbo3e84m dL76r6yMwTUL3jIxbuBEnT3pdQ== X-Received: by 2002:a7b:c1d3:: with SMTP id a19mr368649wmj.19.1599589437298; Tue, 08 Sep 2020 11:23:57 -0700 (PDT) Received: from localhost.localdomain ([176.61.57.127]) by smtp.gmail.com with ESMTPSA id k8sm362516wrl.42.2020.09.08.11.23.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Sep 2020 11:23:56 -0700 (PDT) From: Bryan O'Donoghue To: kvalo@codeaurora.org, wcn36xx@lists.infradead.org, linux-wireless@vger.kernel.org Subject: [PATCH v3 7/7] wcn36xx: Add wrapper function wcn36xx_smd_set_sta_params_v1() Date: Tue, 8 Sep 2020 19:24:37 +0100 Message-Id: <20200908182437.2870281-8-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200908182437.2870281-1-bryan.odonoghue@linaro.org> References: <20200908182437.2870281-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_142358_208918_4937BCA2 X-CRM114-Status: GOOD ( 13.59 ) 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:342 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 adds a wrapper function wcn36xx_smd_set_sta_params_v1() which calls into wcn36xx_smd_set_sta_params() and then subsequently sets version-1 specific parameters. Signed-off-by: Bryan O'Donoghue --- drivers/net/wireless/ath/wcn36xx/smd.c | 25 +++++++++++++++++++++++++ 1 file changed, 25 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 fa6f5943a43d..f434c355d32d 100644 --- a/drivers/net/wireless/ath/wcn36xx/smd.c +++ b/drivers/net/wireless/ath/wcn36xx/smd.c @@ -1249,6 +1249,31 @@ static void wcn36xx_smd_convert_sta_to_v1(struct wcn36xx *wcn, v1->p2p = orig->p2p; } +void +wcn36xx_smd_set_sta_params_v1(struct wcn36xx *wcn, + struct ieee80211_vif *vif, + struct ieee80211_sta *sta, + struct wcn36xx_hal_config_sta_params_v1 *sta_par) +{ + struct wcn36xx_sta *sta_priv = NULL; + struct wcn36xx_hal_config_sta_params sta_par_v0; + + wcn36xx_smd_set_sta_params(wcn, vif, sta, &sta_par_v0); + wcn36xx_smd_convert_sta_to_v1(wcn, &sta_par_v0, sta_par); + + if (sta) { + sta_priv = wcn36xx_sta_to_priv(sta); + wcn36xx_smd_set_sta_vht_params(wcn, sta, sta_par); + wcn36xx_smd_set_sta_ht_ldpc_params(sta, sta_par); + memcpy(&sta_par->supported_rates, &sta_priv->supported_rates, + sizeof(sta_par->supported_rates)); + } else { + wcn36xx_set_default_rates_v1(&sta_par->supported_rates); + wcn36xx_smd_set_sta_default_vht_params(wcn, sta_par); + wcn36xx_smd_set_sta_default_ht_ldpc_params(wcn, sta_par); + } +} + static int wcn36xx_smd_config_sta_rsp(struct wcn36xx *wcn, struct ieee80211_sta *sta, void *buf,