From patchwork Thu Sep 10 15:08:21 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: 249659 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:ecf:0:0:0:0 with SMTP id i15csp827730ilk; Thu, 10 Sep 2020 08:07:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz6DSdbZerHuNiVWsXBsDpm0G7qOn7zuJ4dTOWXEI2xL04OvFsFKuT8FfqIi0jkgMyO9Joc X-Received: by 2002:a6b:8e8d:: with SMTP id q135mr7991551iod.52.1599750464603; Thu, 10 Sep 2020 08:07:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599750464; cv=none; d=google.com; s=arc-20160816; b=L0jzXhnHAN5X/WbIirt+hFI8i/yIvo23nwbcaNZpHlIeU+I324cr+5LuxFItDApCAo XGI57czV+l/zNHO6aFlXk/VOsRTkGWOdiPAddT9atyDRquSJTqWW6OuVYyViGM6C7yLp nt98XKw2b0fJS8QBJCXlt/MKqwx/a3l2lx90rCMeukojZrnlp/BzzY5nl9TdZFVm7ZEv inbuaf+nCOP+cbMEJ6Cp2BwaeIJMuQNCWDSPVxLBD4vCHFb2UWUPu0gny+AdmbsqvAN5 jfd1YLOHYad5Xo7YLMGpVau+2O271bEBCj7FuUNRRRRR0Rk1pfnm/cWTMkNyo728Epme d4DQ== 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=OGUcK4vvt0+veuw+SRWIwqt5mpeR5wM/OfqsXUl69io=; b=w1AWFagymGnLJLr0R4asyocoQN2MHmpJjKSX8OA/W18TvEPSx1+WHQksoK9WqeRDF0 BRpR4rfKpMNzxlYzXHJNjzK6SvkNLlcUB5I57h+1T99xsMhdJhrHmjWq3ruM7pvrrFnn v9fxJXqVksyLrf0O8+ikTXQmqKYIwpg45z1fgSt+4pHfKC+NMNYyRW0vsIGt4xgKj53G gjKHfkmmot/SQoX85fbJBl2Vu6F+cjAAnu83be8QidAxnrUja739k54L5c267ekUtM2/ j+0dDSvq3pp+8eoHCieS5FN3SZPv4uxm2vQAUOA8sfqc6IBHK7POTMxePga5Ecbjdxpe HaMQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lists.infradead.org header.s=merlin.20170209 header.b=OwiqC8yp; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b="Udk9i/A3"; 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 y3si4236067ilb.37.2020.09.10.08.07.44 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Sep 2020 08:07:44 -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=OwiqC8yp; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b="Udk9i/A3"; 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=OGUcK4vvt0+veuw+SRWIwqt5mpeR5wM/OfqsXUl69io=; b=OwiqC8yphtFSxkRhmARfC2bAR QwbOzP6+fbeEzBMagpHNOuioEf7+6N8vTpJ4lBkOIawyOB1EpoR5b9R/Ky1s7NPghX9lVt8kiUbWp /jdsnENOaKtj48TE491L77e4Q31l147LNOqYhe6vWeg96HID1weDzUOQKBiQRotKmd+MkEqTIF0Vf Akr7yngz1lhuagU3sOcSMxBUrbjz4ixcFjbfZraddlzlk7xFfMa3QUGyFWpv/intcc88OAufAvFDA JoKBhA3IETqxxMkujn1TwmWIRUcZkEE7B10IqsmyKr6l6Vv7AlT2sq3UpuzS3oe8p9U51WgsINhtu yIkAZNrPw==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kGOAm-0008Bt-Qb; Thu, 10 Sep 2020 15:07:40 +0000 Received: from mail-wm1-x341.google.com ([2a00:1450:4864:20::341]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kGOAk-00089u-6L for wcn36xx@lists.infradead.org; Thu, 10 Sep 2020 15:07:39 +0000 Received: by mail-wm1-x341.google.com with SMTP id x23so378912wmi.3 for ; Thu, 10 Sep 2020 08:07:37 -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=Udk9i/A3q4l8EyDrosQNtzW5i1Tl7gMR62Dmd1N6E/F+bH6NAhG/bTLZo6/7hbjBu7 tZrRbOI8Om1pjmZvRVsIf7QW0Hkrafu7QKJIrjAM4nniBClNnmgb0LNm2WnvQtSlyNuh lwEjeJncEjtFuo12YjDw63l2n53N402POxvBVE+m79SdOZpWh2vzlSq3GA8H9nX3o63K O/ejxXkp1ES/NFRK9QqS2Df7M/h2RBGI4jdcSvvPnTo4LBy2EeyI8AvEkw+zau5AiOIK qaDvJ+QmskmzZ5Lv523afDWfvrg1AtYnI/2ZuAXxWUk1mIM0ZylOnHEBaWzOAkAytjQb V+xw== 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=aiGZcR04mjX5sXpSruSrWCRAb8uPr1op8/jKCc8xsGJhOUihFZ013jAsbyDNQgP5mT lqK7E76Ea9E3tCopMnr8dd/1tzsdtxJPzzoITkLdQ6FVjmvjxieOhlbkmhZQKHdvUDfS nVcqOAYbYLDC//Ok9dflJFVqoljhcm3y9I7TJJrpsptWsi/jBy1MOLWHxRaFUFso1ff/ PutuKs7eA9XluQUCSlhwjeEPd6epkEjP+oO3wl7zTOj59KuL3Nq4+XD01xdKItIUqci6 zoY4xTtUSlxn4xkI7+dXX+WkGnSCA99DsYlHLKmq6XsC5JYU2NTwJzJH2EloKrr4UWjQ yoaQ== X-Gm-Message-State: AOAM530xjNbSN5GozC1ffmj5KJTtHJ7iOUPrprwotvEJ3sVJHHrv2TRc F83oxeShh8JBI9Nf7W6YCrfpmA== X-Received: by 2002:a1c:dec2:: with SMTP id v185mr440365wmg.1.1599750457145; Thu, 10 Sep 2020 08:07:37 -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 o128sm3895678wmo.39.2020.09.10.08.07.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Sep 2020 08:07:36 -0700 (PDT) From: Bryan O'Donoghue To: kvalo@codeaurora.org, wcn36xx@lists.infradead.org, linux-wireless@vger.kernel.org Subject: [PATCH v5 3/4] wcn36xx: Add VHT rates to wcn36xx_update_allowed_rates() Date: Thu, 10 Sep 2020 16:08:21 +0100 Message-Id: <20200910150822.2179261-4-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200910150822.2179261-1-bryan.odonoghue@linaro.org> References: <20200910150822.2179261-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-20200910_110738_268435_FAD97D49 X-CRM114-Status: GOOD ( 12.52 ) 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:341 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_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 -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 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 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) {