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)