Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp478591pxk; Wed, 9 Sep 2020 10:11:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxsBQZ4quwHAAIG/95kIZRtTrX7FD3/rMb/izZpO6MX71j5d9Viw4n4SIejgC9mbgiA2Nrm X-Received: by 2002:a17:906:2cd2:: with SMTP id r18mr4866628ejr.371.1599671479486; Wed, 09 Sep 2020 10:11:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599671479; cv=none; d=google.com; s=arc-20160816; b=Q2jcRNbf5Ym0UKDlWq8TMpZ4JjYXc30n5KRiWq0qtL96+bUQr8bJEqIR2Si0iF3Rho 8r8a6Hu3rYfg9PCMAmk0dC4vQMtnDt2rxn3wXOfxV8BxJ6bdbcyBZG5mWmHSpTEPeRBn kCJiuJurg/6Um0fW+zpsXB/5mBjaWsEjKwBkEZc9h+UwzFaymv3dCIBv+OOOY1qjBwU0 8CHFGq/Afd67kPhd3KWhbEKEIEktY7GLDJBxysR3BpYyEdZNflggnCwjd7CNtbiTWWmY 5aB+No1PF+nalX0XIJt5iA90kSWIC4WiHSY/9V+K9XGBk3ar7IrEJb+6NvUTstS6+OX8 G78g== 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=2HTnn0cKnVp0OVhPjKOxy9H7Cqlzp1+vwQDeRnijNCk=; b=1KRYp6tY+Ez2WAVXmx3E+10VSzeAv7eCObh1SwWOYWsWJsIP4V9WsDU2syH9W4J2D5 ZwjIq8oYsqiE37TK/ALNVUu6FHoAb/L4yXsqXw9sZhqjWvKvkydGKtgiqOOvvUl9KHJV bAIVeDUKx5sWO7vXcjk2Kc7GUGdmRR6xk3tqwQSPY0nWej2LH4ehMtiBBEzEOnJOsUHp fOdxsBrQfnrGO6QPwsuMdE05X3xUZfgEg5XPJzBlS58o3n+W9ZSXQYHpN3XlNrJH/zta EFurvx9JRA5xl7n2NPqKlz/TYgk8PkPEWfx5fsHOdGWZJ3qhCCt/JhQq99r/qgWvYQFT WKmg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=AoomR6vF; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j5si1561677eds.503.2020.09.09.10.10.55; Wed, 09 Sep 2020 10:11:19 -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=@linaro.org header.s=google header.b=AoomR6vF; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730871AbgIIRIj (ORCPT + 99 others); Wed, 9 Sep 2020 13:08:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48324 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730387AbgIIPgw (ORCPT ); Wed, 9 Sep 2020 11:36:52 -0400 Received: from mail-wr1-x444.google.com (mail-wr1-x444.google.com [IPv6:2a00:1450:4864:20::444]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 78980C061347 for ; Wed, 9 Sep 2020 08:36:52 -0700 (PDT) Received: by mail-wr1-x444.google.com with SMTP id m6so3493461wrn.0 for ; Wed, 09 Sep 2020 08:36: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=2HTnn0cKnVp0OVhPjKOxy9H7Cqlzp1+vwQDeRnijNCk=; b=AoomR6vFTgtmQMXBS5//PJ24M/3ZKmKyQPEjcQiFNBtDbR2FCjrTLmHELuiAzxBNvg wOjBFmMT0VYpRSNrY38zWzDCL6bCAtw10+11hmxCf6uihKbzbli7dGnT7J3jK45y4qp4 A1Ph9QbYl3ylfpA9qcgWVBfig2lbJ4j3egKlWeDVlqdQrhjNqSOQKAD9AGrNMZlKnDTW +9YoDga5fId2bet7VwXVpezKEcMawr5z+5ZiqCcbyuXzX9iUJfmmB1WNWWftvzR7q/fY +yWX1BgSCAUg3bEfeVbuVF0g+0hD4TUIOAypIqLns/TTghkfKaWhYBh8rLS3Breo1n20 gxyg== 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=2HTnn0cKnVp0OVhPjKOxy9H7Cqlzp1+vwQDeRnijNCk=; b=TyKuYKy+aAjzt7WoQyW/3oDUZGD179XZM2gIJGGaw7/tUm0zjBk+YwHh0d1nocD357 GH0GPdQfNXI9GLBRTNaMWsvGwWj6+VnXOjht3HumnXy4nqfXzjQA+fl/JkN70bq0ydZK 3XJ51ZRCCm5vqYJ0PDq4cULvLoVtuJGc7Ue0T5aqWIdo8F0vYauChZ2o38RhEF+ij7VI XGOukoXLbst3bzpZcgl+6WkvWDIeaDRQDiY69GADQYKQ/VE0/2rP4XSWEiqzMlCDcFa+ MCJFrHyFAtAQWsPynPdLVgZjzW733sqAlhZSnSPZ/kXxIhcd1LDSi7sRqIammrjItO6W ijmg== X-Gm-Message-State: AOAM53368rGRxbimM8U5H6yYCx1A+9E3hkIUW4cMP1ixBpAdIZ8cbHZO YY1fTBsRCq+18n5w3B2lD1WBdA== X-Received: by 2002:a05:6000:1083:: with SMTP id y3mr4366638wrw.405.1599665811176; Wed, 09 Sep 2020 08:36:51 -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 128sm4470602wmz.43.2020.09.09.08.36.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Sep 2020 08:36:50 -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 v4 3/4] wcn36xx: Add VHT rates to wcn36xx_update_allowed_rates() Date: Wed, 9 Sep 2020 16:37:35 +0100 Message-Id: <20200909153736.2905114-4-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200909153736.2905114-1-bryan.odonoghue@linaro.org> References: <20200909153736.2905114-1-bryan.odonoghue@linaro.org> 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 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 36cfa7043bc3..720d3fa8ddcb 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