Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp4136640pxk; Tue, 8 Sep 2020 11:35:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx9pXJDtL+fviwD56FbDhma5ws3chuM6aGTyo7s+tQwa3IQ0T44KfV/oqkyyQ5XQqm5xkxH X-Received: by 2002:a50:bb65:: with SMTP id y92mr311314ede.53.1599590124370; Tue, 08 Sep 2020 11:35:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599590124; cv=none; d=google.com; s=arc-20160816; b=oXv1CyjODGPfRFkJwd9zpuaQLfnoW+Cpf0Dmbw89Pn5TOtbdDZ7bv1td7f8DyL4/Gi Dx97vyjrXJHQpPNPD6/1Mw92tvu4ovU9NXk+/naJuaeuGM+r7SH9Q6hBSlhVY64Q07Zk EIwkqG9gjebuS4Yv7erMDx+BvrW5MmQBkAUEEfvXYA4nU7jquNpYS9uiyJpJShflvDOF L+ZoyEo/V8fnBcKkF7qxIazU9Y90H3cs/+addxaB+UPWMIKPQN3LV1sDfgPB5d4A1kjs g7RAHxdQIvsJiwYMeDIT6pU2CY0xXnHIqqv4YqwHVuuX9dQABx1tKtsPQ7ffLyuHX8Qm pB+g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=BTCWkwRmuH8PVjJv41u3EUB522Tf7wb2bKFIwOAThY0=; b=rDajwfNe4RCOAAurr0R/EMyxCLHZuqI67SieYsd2U84pcyfJE6HOhI8ittEEvTbqEV HMg4eg6lZZzz2uPUp5ZgvPxfrlAJMy+akmhK3VcNLGCoZFvWLXdrolRpDEjiW+GLjddj vjhpLPZBEEtV15YH341BThjkyCa8NDplyNpRtrGlUJNa4bJTi17swlfKV44kqE++cWTW dbQmRi3BHc92fXld4uxyvNFVOwJJeKNrbVbyof2sFPNe1JGUAu0uZqnTDslDlXkZ8vrR h9FiJHTvToD0bOUltBXU6i3OV98Yg/sb8CdSjcfnWsbYJT0DgTZDRgMXUsWT50epHL+9 2JWQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nexus-software-ie.20150623.gappssmtp.com header.s=20150623 header.b=WZCyRBI7; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u19si11281881ejx.710.2020.09.08.11.35.00; Tue, 08 Sep 2020 11:35:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@nexus-software-ie.20150623.gappssmtp.com header.s=20150623 header.b=WZCyRBI7; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731737AbgIHSeu (ORCPT + 99 others); Tue, 8 Sep 2020 14:34:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50332 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731857AbgIHScq (ORCPT ); Tue, 8 Sep 2020 14:32:46 -0400 Received: from mail-wr1-x443.google.com (mail-wr1-x443.google.com [IPv6:2a00:1450:4864:20::443]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A27AAC061388 for ; Tue, 8 Sep 2020 11:24:57 -0700 (PDT) Received: by mail-wr1-x443.google.com with SMTP id e16so243468wrm.2 for ; Tue, 08 Sep 2020 11:24:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nexus-software-ie.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=BTCWkwRmuH8PVjJv41u3EUB522Tf7wb2bKFIwOAThY0=; b=WZCyRBI7k1r6YEf9qStznnaywdXgAeKWhpKgffvuEoBG0GSc1U0uZdbVzMfCpNVcId 48SPYOBKez9GDaT0aNWm08ir1ANaXe64vIS5HRTlkE4GJLuIBqaS6+RSnB66Wj/bwJ02 FRqo7Ste9VqBaAQZMWnoJlplzq/5jNz17wyiMAJt8cpcCV+XyKC0KfIYEqCUI0lUR1Md Fiy9LPeKOs7o6WCm+ESSbXKBuFAzV8Zi/w187SrFZeKE49L8RKY/F8NwFtEkQrLtr4Qz Wlq3rLPQgPvlH+siI3C6TMaudFgQHgfH7QOXUQrR4n6xxdHL3x9jmf2trYTK+KQ6X5MH oQgA== 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=BTCWkwRmuH8PVjJv41u3EUB522Tf7wb2bKFIwOAThY0=; b=o3fYPEmpD9As0EuAZVSBz2h8cmWPWZy9hj23Vd0gEsX6WAMHnTDkR9OiW3zue0Sh+g LVcP1zhy2I27PWhMPteZ3nc7BP/nJJk2DwsRDqPJ+3KITxXLDGtoaxmsRb7KNf7Y0h3Q Pn3hvFkzRWD1k8DucB2mnIwoUS6D87QXN+A9nO9wNMV7/D0AUdTpSnnqetqoPFM3OcCc 3kux5La+RnGtLfmr+PtzMZpCBedsm6LB37ofjHjjTrV86DEEymcij6N2hZe25KKct1m8 8Ctpvs7DpqfrnHJo8tfCDe3n6GLdMy3WmiDk5+b2hF8+V+N2YHYzMo0Cb05H4iYIHOGX W/UQ== X-Gm-Message-State: AOAM531CHvdu82dpsgg2gOJAlmp6gYT5/74e1MjQu6cTei3sJ8N+8e9K yx78DFpWrssiDRYCGmuv9UlSaQ== X-Received: by 2002:adf:f190:: with SMTP id h16mr942210wro.202.1599589496380; Tue, 08 Sep 2020 11:24:56 -0700 (PDT) Received: from localhost.localdomain ([176.61.57.127]) by smtp.gmail.com with ESMTPSA id c4sm334348wrp.85.2020.09.08.11.24.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Sep 2020 11:24:55 -0700 (PDT) From: Bryan O'Donoghue To: kvalo@codeaurora.org, wcn36xx@lists.infradead.org, linux-wireless@vger.kernel.org Cc: bryan.odonoghue@linaro.org, shawn.guo@linaro.org, loic.poulain@linaro.org Subject: [PATCH v3 1/2] wcn36xx: Add VHT rates to wcn36xx_update_allowed_rates() Date: Tue, 8 Sep 2020 19:25:41 +0100 Message-Id: <20200908182542.2870535-2-pure.logic@nexus-software.ie> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200908182542.2870535-1-pure.logic@nexus-software.ie> References: <20200908182542.2870535-1-pure.logic@nexus-software.ie> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org From: Bryan O'Donoghue This commit adds VHT rates to the wcn36xx_update_allowed_rates() routine. Thus allowing the driver to latch the declared rates and transmit them to the firmware in the same way as other 80211.n rates are. Signed-off-by: Bryan O'Donoghue --- drivers/net/wireless/ath/wcn36xx/main.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/drivers/net/wireless/ath/wcn36xx/main.c b/drivers/net/wireless/ath/wcn36xx/main.c index 2c2b6178c8cd..9c283c110e07 100644 --- a/drivers/net/wireless/ath/wcn36xx/main.c +++ b/drivers/net/wireless/ath/wcn36xx/main.c @@ -766,6 +766,14 @@ static void wcn36xx_update_allowed_rates(struct ieee80211_sta *sta, sta->ht_cap.mcs.rx_mask, sizeof(sta->ht_cap.mcs.rx_mask)); } + + if (sta->vht_cap.vht_supported) { + sta_priv->supported_rates.op_rate_mode = STA_11ac; + sta_priv->supported_rates.vht_rx_mcs_map = + sta->vht_cap.vht_mcs.rx_mcs_map; + sta_priv->supported_rates.vht_tx_mcs_map = + sta->vht_cap.vht_mcs.tx_mcs_map; + } } void wcn36xx_set_default_rates(struct wcn36xx_hal_supported_rates *rates) { -- 2.27.0