From patchwork Sat Aug 29 03:39:00 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: 248678 Delivered-To: patch@linaro.org Received: by 2002:a92:5b9c:0:0:0:0:0 with SMTP id c28csp1602542ilg; Fri, 28 Aug 2020 20:38:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz37N//LeAQw9+rh5EvEjyMq70cFWTwcbS8LIno7xewXMBkXHKqUVM9tzpbbELv2Xpi29pS X-Received: by 2002:a6b:8b8c:: with SMTP id n134mr1465583iod.204.1598672313636; Fri, 28 Aug 2020 20:38:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598672313; cv=none; d=google.com; s=arc-20160816; b=NNmnF9xNrR3U4bO1D+l2kOIJqNRJjgjzP7osNROyFQJdqXDIo/34m9MTL/uQLwkEbp 3XH02Zt7rgiVakb46OVKMGM9jXCzweFREmxWOUVKzfZXLjMP1B89nCwH11SIl59zmcSJ Q44t25Toom6FLpwlx2Sa/XnWUnl7WFwC2S9hSGNDE4y9OOZZMmRcxto+TdRn+tmYMHuG Aey6xsOd0+VvX+GWZZ/3dgESZRe5MuNLMhZl3S7Enzyywb+SeS5sTpVHd2SGNt7uzygU bzXTp+QWrbLU6mSiG0YCYNeJolcbVU6wsfjkdiowcFFxUmQC0/glhZ5NGATU2sUJf7Nw vZgA== 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=ZyK5ha6J33fJ9Fbjbpe/HsceftD3nHuHN0IzFaNoWTk=; b=Vi8E7VzmUlZ7sOGWR/dbuTp6V+3pECNDmyHH1ig2ycyKET1ixzJWMQx6Co/4SRlJTm cUXaIUrxi+UGjhdJ0noWKEQTkValQOkVnwoSfTFh+9/0yWFrPTSIjRk5019/WwGmmnjq Ptb/MSKD22PUATWWXadXmSe8Ph6094DdLZUuE9H1XKxMTmsne5TMiWZgmf8Mk4z8UMPJ ArDqDezW56P0gAIFbnThVi/F/DIKPAX+RophfLz75IvCWoLC/rxAbvgOhPgcemyDTxWM ARWS2Q0+OGqGsC8o8lTBDbfPmevAX1U0ibUEs7t1x9L4MQ5KQhNLySwQyl1cuFZgb7Ac atvA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lists.infradead.org header.s=merlin.20170209 header.b=JfTruSwb; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=csGKY3VO; 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 r6si975502iov.56.2020.08.28.20.38.33 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 28 Aug 2020 20:38:33 -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=JfTruSwb; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=csGKY3VO; 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=ZyK5ha6J33fJ9Fbjbpe/HsceftD3nHuHN0IzFaNoWTk=; b=JfTruSwbSxry8OSB66+qAL0Eg sojLB2NOORk1O5ollHtJM5pnzN7kWyzq5WDxgRC8rXuDJ6Xd5L+11Z9UQxhp96emCbMbEqFZ6KM4j 8WRNN5W28sAXjVtzIUqiRfskNb/Uek7eocQtKfH1lrcGUtp9VDZy6Wut5Em3Xh3lReY2pYlg7tktH 3DQK7OoG3s6EhMYz0f7c9K8kcXo0AUDVK1NHcaiWy2QdR/O3hMP+S503L0+0DoF1YJUwF8BZH1tV7 QDedbWt5OMf7obJKfaq1E4CajFD3bpmbo82hCXv162Ii3bXPQbaoPcDj9BRR35ZHDizbYJcrpZe1d M/0CKbF8g==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kBrhG-0002Ib-GU; Sat, 29 Aug 2020 03:38:30 +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 1kBrhD-0002GM-FU for wcn36xx@lists.infradead.org; Sat, 29 Aug 2020 03:38:28 +0000 Received: by mail-wm1-x344.google.com with SMTP id e17so742249wme.0 for ; Fri, 28 Aug 2020 20:38:27 -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=rRqKSMYLkOaKma6hces3R6ozgO9nu1SFFWnxLHLzpL8=; b=csGKY3VOY9JXG15H2u4jrtOYlIQk776WhWvFofhzxxiSCkgWBkL28SQMcxyI6srSdS eZEOMmswzv6cOe4kp8l2fmRkk5HOUIMnrEpj5YeqYcYD0yQCmIfkJpXSdLO2t6eC7YrL Mh6LRpBYM4XvNiqRRAXP0TxGywBqhrqVcxB1re+dqHtjtF3PDRj5wtOqxHStVZW0rtj8 YNCEI2buzQwdDjoBIi8XHbksbK47Mkd4ndALhJgu9LMsRd3i+YpI/H6YMTBoxGw+AMxT o530JDYGpcamEmZuti06r7ZFIf14ShN9LcOWeXl9koBG8j3thj8yGVRh9NAKQy99PW6G nXmQ== 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=rRqKSMYLkOaKma6hces3R6ozgO9nu1SFFWnxLHLzpL8=; b=OBL60PZIo+NyTDfsPRoWdCK3Ia3e6cbEY6b9U3Y+QhFuTpZHHgB66YRMYn3Ymi62Pn ZVuZHFuDAkLvnK4pwZDfBzknwi1kLUN3ZTEXgKEbvxWW998sADUBaCzktt2JtJma7Ci0 NxEuFxIwkcnEMOEosjdxtDKbLTtqTFRFAnWVKKZUkN0K/cgB0Ihj1TDx2qTHCpaSvD6o f6KZjVvE8X5tqZlem2uFwMUQeUyR/Wf31IzPpEJ9ZDJ2hc6e9C8/BIPWiJ201CmG/NCn 8+TFp0gcyMYeG4mDu0Ck+n+ZQyx8xwOLkW1PUuWfKdTDFFHeS7W04RPxs8ihJVfuxtj9 1L0A== X-Gm-Message-State: AOAM531dx8AMjeAdvuguGkAYtcd/nUWZ09dB0Zqb74vv0KMsUv4Hm5HL 9u2HmAtuzFQXF7PuwUs7pECI6Q== X-Received: by 2002:a7b:c397:: with SMTP id s23mr1544014wmj.174.1598672306206; Fri, 28 Aug 2020 20:38:26 -0700 (PDT) Received: from localhost.localdomain ([176.61.57.127]) by smtp.gmail.com with ESMTPSA id t9sm1649179wmj.47.2020.08.28.20.38.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 28 Aug 2020 20:38:25 -0700 (PDT) From: Bryan O'Donoghue To: kvalo@codeaurora.org, wcn36xx@lists.infradead.org, linux-wireless@vger.kernel.org Subject: [PATCH v2 04/12] wcn36xx: Add VHT rates to wcn36xx_update_allowed_rates() Date: Sat, 29 Aug 2020 04:39:00 +0100 Message-Id: <20200829033908.2167689-5-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200829033908.2167689-1-bryan.odonoghue@linaro.org> References: <20200829033908.2167689-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-20200828_233827_638078_CBB6CC7E X-CRM114-Status: GOOD ( 12.93 ) 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_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's 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 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 _______________________________________________ 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 d589a00d901b..e92907a33443 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) {