From patchwork Mon Aug 3 03:11:08 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: 247317 Delivered-To: patch@linaro.org Received: by 2002:a92:cc90:0:0:0:0:0 with SMTP id x16csp860560ilo; Sun, 2 Aug 2020 20:11:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzKRMMCb04SxM7HFOpC7J4ceWKuF1s6uKSqNXUfc2dRcUA9GetrylRdtV3Ej2IQmhXlksGU X-Received: by 2002:a17:907:4303:: with SMTP id nh3mr15216015ejb.520.1596424263830; Sun, 02 Aug 2020 20:11:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596424263; cv=none; d=google.com; s=arc-20160816; b=ZSR9syn+O5lyDh7bN33o4QHaXr4uB/GhDotNFLYWTMzKUSIsl/GHJQ5il+u/2Lqe7w rQxAwJDgkA57DwCRfIRHYuYM7VV/vNCoupmVWF35PEZD8m7TAlRp4G9TFEk7UdIL+06G PjN6QkASKO6LOn5lDn1gfZqc92kNTE0C5LCjZnqVub0OBxswbSVdZh3erp8qLV7qBXoe WCpO27pVLCAZZvtUTm8T7rtAIZKrYefa9u2o/7aTpIRWVhejVig/jDSgdELET/xW1bWW YMMSiCBg5hRdqyjTKBm20YXt/KfqMIzpeiQ+ifGXp4+03MH2E/I0Wlm5xH4j0XxRB++J VYSA== 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=HtHey7iAsoGrNcBMQl/5w9ghs+hy8e9VJSTGAKv138U=; b=Y4c5CIqAWYC5gGhDke/H5bOCnsv503ZFHYPyB04tJQw97rDfMxNHM8ZG4PyNgO7Y2V Q+FRCM3wy1MSORNqV6XajeXIOCvS3X3uaDCs0X/yY4CmYJV4stKgtTzP4jDbqf498s4s RgTZtnduXB6Ga6vPuc9eQGyTqXJoPWGnXXW4PnBUaS0JODrYZXwMUvyqK77+psGuypge 7H5xvFm4d2gvNifa8lNMMo8Bhk9afkE62i/lKhibct7mQRsumhQtEbkqK4uUOmsVsLfy CGetBErC3XpM1hn0Ws4LFd5xOmBUh+x0kCXCeqcY98NSK+euNpT/MZuB5ic7Exp7q4fI vqSg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=sHbU4lid; 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 jz19si10235393ejb.34.2020.08.02.20.11.03; Sun, 02 Aug 2020 20:11:03 -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=sHbU4lid; 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 S1727098AbgHCDLC (ORCPT + 2 others); Sun, 2 Aug 2020 23:11:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41532 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726534AbgHCDLB (ORCPT ); Sun, 2 Aug 2020 23:11:01 -0400 Received: from mail-wm1-x342.google.com (mail-wm1-x342.google.com [IPv6:2a00:1450:4864:20::342]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 806B5C06174A for ; Sun, 2 Aug 2020 20:11:01 -0700 (PDT) Received: by mail-wm1-x342.google.com with SMTP id 9so12987120wmj.5 for ; Sun, 02 Aug 2020 20:11:01 -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=HtHey7iAsoGrNcBMQl/5w9ghs+hy8e9VJSTGAKv138U=; b=sHbU4lidjcxZEGX9NBT70jWaIgwINlY8OFLsSCYKwoflkizeLRilTZFlI74xFu2mNh 84goftO4U82tK1bmEAQQigC7qJrKut7NH0yRPpnykug/zvTYk62onVcMFYYkfo/ZE+05 Qsy8LxX3r3JrcBSVcm4ELAwrZR7+XVLnZjn7bYB21Ai+oGigY9/DLE3UFxkKusl8vBvz 9ebf1bvnZuMqNwdZitvh1sxXeg+uk1GD7xUBbl9SAYeSVlTQF3/ufVGRrGSAgjhoBQBF E2jB6LHpedJwNMuMgh2+/9x8HAniqWkuMIiB7eUfTbjyI7bmBBcA3U7vxNz4GPjHkWVM rrWA== 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=HtHey7iAsoGrNcBMQl/5w9ghs+hy8e9VJSTGAKv138U=; b=DINmKMYnZkQL1xcqebNDxLcYQ8HJfQQGMYv7m6phNdUIw6UA0LPMkSfTC9kqzJHiad OPV8I7X0QwNtU7+cZalxfiYirb1Kvn12NJJrkWslQj5Vr35rde+MQMLpwAM/5+4afX7K Hoy/YKOgJCwGpAUWTmBn6EtlwYvL1FVIyHm1KS8PSdigWjmq23xkHinRs2WwngiJeHQJ L/GndAvHJ68XFitp6xNluWkv+eXzXJlX92KI3wcePyaPqMHOR3pGN5OGDHIld00zCsCr YVST+PmDomtIshiEWuT04Ut6TD3Ajxk9ZaW0NGSjjZiP/HJduYDX8uV5VSJRlg4yYz/g zN+w== X-Gm-Message-State: AOAM531J7GWQLxvg+ZHDehhcCym+oyPZ0U2SnxS5ALSC1y0Y3gA/9zFv fvBIe7H7YiuSbKS1zzsXop/rFA== X-Received: by 2002:a1c:9942:: with SMTP id b63mr4632698wme.12.1596424260000; Sun, 02 Aug 2020 20:11:00 -0700 (PDT) Received: from localhost.localdomain ([176.61.57.127]) by smtp.gmail.com with ESMTPSA id q2sm21956857wro.8.2020.08.02.20.10.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 02 Aug 2020 20:10:59 -0700 (PDT) From: Bryan O'Donoghue To: kvalo@codeaurora.org Cc: wcn36xx@lists.infradead.org, linux-wireless@vger.kernel.org, bryan.odonoghue@linaro.org, shawn.guo@linaro.org Subject: [PATCH 12/36] wcn36xx: Add VHT rates to wcn36xx_update_allowed_rates() Date: Mon, 3 Aug 2020 04:11:08 +0100 Message-Id: <20200803031132.1427063-13-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200803031132.1427063-1-bryan.odonoghue@linaro.org> References: <20200803031132.1427063-1-bryan.odonoghue@linaro.org> MIME-Version: 1.0 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(+) -- 2.27.0 diff --git a/drivers/net/wireless/ath/wcn36xx/main.c b/drivers/net/wireless/ath/wcn36xx/main.c index 9f56f1af6dc4..6a85bb699d10 100644 --- a/drivers/net/wireless/ath/wcn36xx/main.c +++ b/drivers/net/wireless/ath/wcn36xx/main.c @@ -758,6 +758,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) {