From patchwork Tue Sep 8 18:33:30 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: 249352 Delivered-To: patch@linaro.org Received: by 2002:a92:5b9c:0:0:0:0:0 with SMTP id c28csp4797599ilg; Tue, 8 Sep 2020 11:32:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzXJUQ7B9MfK9J+Mso46ONf5txwY4aBdx7+iVHHr+A5tEIK7qHWCtf8CmKaZgZXTDQquKI1 X-Received: by 2002:aca:654b:: with SMTP id j11mr187616oiw.77.1599589972098; Tue, 08 Sep 2020 11:32:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599589972; cv=none; d=google.com; s=arc-20160816; b=UaeLviKH4n30ND3ktcrkCd+s9Ppe3TG6OC4X7Uflo/EF9t/t9Lond1luZAVNgr5hlY v1apbo58rjg9aYVm/784rgzl6qs9QytY438K1vdewT8WPJr9YAfW3/nhW0xKXh2MeHfa lYv9W0+KLDgl9kJU3Fdp3Tb5/dzfO7XwJ/r8LFw+X6iUE26XW/n962W4JzL54XqS0QJc Jx62vPMrcdSx4K9C2oD3gjOW1OsN7PXI02aT2kDB644bVEkgargz6fAzudL7XPz9VPxf T1PUMzUlmPtXykQOpQJfQahTp1vMEDMHBqHc6RqPAsz1BTwnPaGx438p/XKYe2/3PDRY gqMg== 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=Am9cKwo9KQHuef8EnNH3ZZ5iBACJf2f/5dk/TeFUlKM=; b=uHZWIaEuFluqPxdm+jjCEII17jJTE3a7dm0HTcpi6TpPVJiJBxlyxPOCOib1dSk9JG dvN8cwRLOa7h9XvcbGBOGFgvJJpcaq2F9rd8WyzKsOi0YfbbRxNk7PNhM5ccdJdkWVwF epVfjHQ6IZ7lPklcaMqZWR4KT+HiD4XataPXhcdWChcByJ+veGU7zXiwVBq3qUlr+jJa Rpynb9l48JWOrlTDkwZKZpFTNt6aSdAuODgvHgZeheVJly3hZ/qXnh4uD8mzOKB9kvBH gmXTaSlnmDS7f1Z2Y3/HggsBMvzAGJCpUL0IIHbUMHxcKKZt4CA52/NglnF0U1nT4pRZ CGsg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lists.infradead.org header.s=merlin.20170209 header.b=v+kpKjWL; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=IcCMC4zx; 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 c6si755458oot.74.2020.09.08.11.32.52 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Sep 2020 11:32:52 -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=v+kpKjWL; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=IcCMC4zx; 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=Am9cKwo9KQHuef8EnNH3ZZ5iBACJf2f/5dk/TeFUlKM=; b=v+kpKjWL15PV1PKf//BCjBzSk RwaAUg9DYXSwL//rFqx4MoY75LWhZjcDgjPFrrH42k0YGD51uE5KhCjR8umcUveCLUTgpka1Y4Go6 SzY65ePgpibygSgofTq+H4w7BU8LRJwQ25TprC6KFQilFHUc62CmFIzZsDMofC+JkaMvwEngCVlB7 PhyYQScmJh3JMNp1OrRr7l1y8MiSLqLdyhe4Yzo36e0gOkTUOtjZwqW4K+Uk/oSbhd+o5J6qL8NPz p8Y7OQIWHpJl/gR7iWw57/VgmPQ8rIDIL3BDLSwAu1d2YXb5LFh5kAylwd9/rwysZA6dMMOhr90sx 8MGL0JgOw==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kFiQD-0006SK-1r; Tue, 08 Sep 2020 18:32:49 +0000 Received: from mail-wr1-x442.google.com ([2a00:1450:4864:20::442]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kFiQB-0006RJ-6E for wcn36xx@lists.infradead.org; Tue, 08 Sep 2020 18:32:47 +0000 Received: by mail-wr1-x442.google.com with SMTP id t10so273736wrv.1 for ; Tue, 08 Sep 2020 11:32:46 -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=Z6qrCJ1afOzM2JHrlRChudxsJ7Nezg4eE7nOnjz7F2c=; b=IcCMC4zxXnFlX7zX/e8uh5iM/2ZdRiqw7NXIeM/EZveQnoQhIUZeTfFN8/5d/I2NQ7 nxRPdTe0moDgnp7WlOQLtW5JDyUxH63dOAR5LWYBj0jRZFhx/x60e493rjhHaVGwpsja JLiZZTvdehBA9y4ymJmA4BGVwYM4riPNG1NkZb+vJmhO3jA7E2c2fxEIfyNalrPDfs7h rQLBpdNPx/Wa+ENKcd4SnDb7milsIuUrTW+XmVLE5ZMET6mrLwAzdcyQWmPFgR6khuMC 85vUUwYFHptjl6xj6DjU0gRAPBmDtWfiRMkGEIXhGZJOJz13E74iPVlCPfUDOCoB0qB5 WNMg== 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=Z6qrCJ1afOzM2JHrlRChudxsJ7Nezg4eE7nOnjz7F2c=; b=nXywkb4MEopUFI052Mu1Cjnr+IdHSf3tTlY1N2wve+GupMb7YkAuwWvP8dsa3zHFXr 7z5mLT5AgYfqQYvIBr+58SrM8oyWW9zt4r/BtH4+Ks+u3vtsjOko01EbjXIqPSF76Cwo D73riWtDKaVBVq6qi6wqjN6/akK0EfFFK0lVxxKJD1MiiwuwptYLfnzNiSX9wosNyGGe 5dUDwDks9E0oZ8HnlEpQtP+KtWFvxcUwjuZx7eBo3Ub2h969TTIWHedvl3HGY7QedTPM J0UAKEeGpTlx5G90jfMcG20AbsLhfZbhoO+ybLEMzV9OOTCcY1+03vaxEcgLwQ1ZXWe2 vDCA== X-Gm-Message-State: AOAM5329Wj/R3djuzH5JKcfjc3t/oDLiSgT63PKsjV+PrWDhGK9r8jfP svjSRJg+fxS7Yf7xULa5E60n0g== X-Received: by 2002:a5d:51ce:: with SMTP id n14mr11160wrv.8.1599589966213; Tue, 08 Sep 2020 11:32:46 -0700 (PDT) Received: from localhost.localdomain ([176.61.57.127]) by smtp.gmail.com with ESMTPSA id f14sm380267wrv.72.2020.09.08.11.32.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Sep 2020 11:32:45 -0700 (PDT) From: Bryan O'Donoghue To: kvalo@codeaurora.org, wcn36xx@lists.infradead.org, linux-wireless@vger.kernel.org Subject: [PATCH v3 1/2] wcn36xx: Add VHT rates to wcn36xx_update_allowed_rates() Date: Tue, 8 Sep 2020 19:33:30 +0100 Message-Id: <20200908183331.2871016-2-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200908183331.2871016-1-bryan.odonoghue@linaro.org> References: <20200908183331.2871016-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-20200908_143247_237473_C2DB9D7D X-CRM114-Status: GOOD ( 13.41 ) 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:442 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 Message has at least one valid DKIM or DK signature -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 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 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) { From patchwork Tue Sep 8 18:33:31 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: 249353 Delivered-To: patch@linaro.org Received: by 2002:a92:5b9c:0:0:0:0:0 with SMTP id c28csp4797620ilg; Tue, 8 Sep 2020 11:32:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw/PHlpTUYXAVLIV+dN5Xx4rh+LugioOi25I0ihjJOaYiy4WofVVhVQQYbq0JoiNQ9n6qgk X-Received: by 2002:a9d:563:: with SMTP id 90mr256451otw.225.1599589973947; Tue, 08 Sep 2020 11:32:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599589973; cv=none; d=google.com; s=arc-20160816; b=rQOiqSJDlDqQOXsKLWLgO9B+PBSVll2Ajvx5AEpttoWzDa23Y/OrMhV7tdEzkvTIy+ B/GzjvpzvEGFm1flsOL0fTIh9LzVIiO/swJ5N1hyLaDhI3X8WcVB5HCeWFnBtLaIo7+d xHKfLHrM7FyCxgal+Ii1QFDEWiW5e/E7+kSD0EvKyu/bngh17zWQasSgIgKKPq/iJ8ib eSW+lKVLVSKzAK/T1qz7TAAn5klKto9b3pRnQbOf/j2bYzYBIJJvECDthyIbvWxC5cqD SHzx9RJptP4sMVdrkFT+rpIEOwxm6BcDtGoQYkWkRT7alCQoKwBzB2s9YruLuJXCvSpL 01qQ== 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=ropwEJY5vMgpNdQBdyrf2B5iUx/uUPMocSqGjTbU/Xs=; b=aoq8At4IFsPteTVWdsBylLbOY+YHMUCz8s8Sa1WXV/wiqxo57Sr3cArTomJEMt+A6z 9oULEXxuQb3q9s7tkVfLoWX57jCt9ugz0oo2LgdauqXRM7uN6W5Q5XgNsBm42t2/mE1S kPzWYk5VVdAPEVefdj/luJQur5STUynMnrcytNR4WGW2okSg9E+BFlGPUlRY5JWPaWCL G4X7HHuMc40pD6MW0jROOVbz2yW1iY/CLoUn5ckEI9Sg1idKaFYbONU5ehLe6MFBtKw1 eUt1G324rZkkUOdBdjWtzq7clc52EfpWGTHBDGGy9P/mbKizrwisOt9Cikl4ROa95aUt a36w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lists.infradead.org header.s=merlin.20170209 header.b=gq60J9ZW; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b="BX5h/5u+"; 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 b6si10107089oov.66.2020.09.08.11.32.53 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Sep 2020 11:32:53 -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=gq60J9ZW; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b="BX5h/5u+"; 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=ropwEJY5vMgpNdQBdyrf2B5iUx/uUPMocSqGjTbU/Xs=; b=gq60J9ZWfI53OQYOeJdn/mQ4J +bIJPSyvfsKPNdp3ZjAlkIFj1MA3T1Mi0E37Gp3te52dhVUcE/3Ms06MS7n+5dfbmYSj+PGE//GYZ dZ9QdD16c1o4GGUpK3/snFXtfJB1dLDcJxQcwRl9EQui0zAA58of2V/RLJ2kaMIAwYINRrAQidRgm PoJEoNC/e62UFz6XE9HY2/vCVWMZjxVpr1YWYOvqBwqmu55dTZ3nhGgqlyxDBXnQGHU7t0U2ip9j1 iPjH+vH6qiko89mm9xQFZzUOAoHBQXim/xwoQmGY6YFBZiC1DY4EewpQO9BFMt0tjFE3c/c9gtTsm CNkJG3wjA==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kFiQE-0006Sk-Jh; Tue, 08 Sep 2020 18:32:50 +0000 Received: from mail-wm1-x342.google.com ([2a00:1450:4864:20::342]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kFiQC-0006Rl-AY for wcn36xx@lists.infradead.org; Tue, 08 Sep 2020 18:32:49 +0000 Received: by mail-wm1-x342.google.com with SMTP id e11so201895wme.0 for ; Tue, 08 Sep 2020 11:32:48 -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=lRcXSsP0h8e9IS2VQuraEEtCBH2iNJGE784+etRBZqo=; b=BX5h/5u+qTOsYg0C36KXsWJoQcDs6erWyXWVry3V5ZbAJiZ+8rHHd/LDahMsh0Rev3 t3dQSR0UBKp4AfzvhKUCnjnzlc2CjUxt1O59x2Q2rFO2481Y7lm/J33tvDwOLmDQ4KVN hHTJeeN1pOenqNs+tiengnGW7n7eJbYkcIUFdSN8HFLnv5my8WfkmfDpZifoW8bmccm6 g4d9L/Uikhg3LtKcuMoZYv7apqGQycv5OnBoPKp+jIcKt53dNkP3afsIr/Fc9HWF9TqI 3QyKToG9RS73iGFoeKhKaCEs3bjsNCBSoC0qj7JwlRolNuNX855VdlWX/5bybXASPxQ+ 7K2g== 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=lRcXSsP0h8e9IS2VQuraEEtCBH2iNJGE784+etRBZqo=; b=bBHgYNabS8Bn6PnaMMoPXnfhYRJtV27u9woJYwPA6qv0YPU9f3jwWTJ17l+0s9M7wn u4DE0ErWvBeA8hitZ3mQJqaunxmIBXa3zacXnjdpr9YUxZjX36gMuNtKVJIkOJZlEgDP lJEslc/OYOw1hPSIziM3zHtj+ILyA0MoRtoy6ixeqbOIZGdzV/TVdjy/Q0OWZHstG5Kg FFdB6R22LTNCbXk66O8jfiNHCfNmvxAAhI5k7eJMnt8wjz/9PgtmnE69p5MFjT5wBFH6 Rc3q9sAJ4edmeZXmxY2rhNEsgijEBWIi5ZJsglJa1TXD5n2bv0asIrDvggFw0SCcWV9n ylMQ== X-Gm-Message-State: AOAM5339mMosW9qYxDMlS57gd4LS/VH9CYcqcVtzrsGHVYNHe9sxnaXD PlwZMjXwXmWlh53C5YjBebAuvQ== X-Received: by 2002:a7b:c40b:: with SMTP id k11mr391511wmi.135.1599589967227; Tue, 08 Sep 2020 11:32:47 -0700 (PDT) Received: from localhost.localdomain ([176.61.57.127]) by smtp.gmail.com with ESMTPSA id f14sm380267wrv.72.2020.09.08.11.32.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Sep 2020 11:32:46 -0700 (PDT) From: Bryan O'Donoghue To: kvalo@codeaurora.org, wcn36xx@lists.infradead.org, linux-wireless@vger.kernel.org Subject: [PATCH v3 2/2] wcn36xx: Advertise ieee802.11 VHT flags Date: Tue, 8 Sep 2020 19:33:31 +0100 Message-Id: <20200908183331.2871016-3-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200908183331.2871016-1-bryan.odonoghue@linaro.org> References: <20200908183331.2871016-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-20200908_143248_421534_FCDE35F2 X-CRM114-Status: GOOD ( 14.75 ) 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:342 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 Message has at least one valid DKIM or DK signature -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 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 patch adds ieee802.11 VHT flags for the wcn3680b. - RX_STBC1 - SU Beamformee - MU Beamformee - VHT80 SGI - Single spatial stream RX LDPC is declared as supported in the datasheet but not enabled at this time. After this patch is applied an AP should see the wcn3680 as an 802.11ac capable device. Signed-off-by: Bryan O'Donoghue --- drivers/net/wireless/ath/wcn36xx/main.c | 32 +++++++++++++++++++++++++ 1 file changed, 32 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 9c283c110e07..9e97513feeb5 100644 --- a/drivers/net/wireless/ath/wcn36xx/main.c +++ b/drivers/net/wireless/ath/wcn36xx/main.c @@ -1200,6 +1200,35 @@ static const struct ieee80211_ops wcn36xx_ops = { CFG80211_TESTMODE_CMD(wcn36xx_tm_cmd) }; +static void +wcn36xx_set_ieee80211_vht_caps(struct ieee80211_sta_vht_cap *vht_cap) +{ + vht_cap->vht_supported = true; + + vht_cap->cap = (IEEE80211_VHT_CAP_MAX_MPDU_LENGTH_3895 | + IEEE80211_VHT_CAP_SHORT_GI_80 | + IEEE80211_VHT_CAP_RXSTBC_1 | + IEEE80211_VHT_CAP_SU_BEAMFORMEE_CAPABLE | + IEEE80211_VHT_CAP_MU_BEAMFORMEE_CAPABLE | + 3 << IEEE80211_VHT_CAP_BEAMFORMEE_STS_SHIFT | + 7 << IEEE80211_VHT_CAP_MAX_A_MPDU_LENGTH_EXPONENT_SHIFT); + + vht_cap->vht_mcs.rx_mcs_map = + cpu_to_le16(IEEE80211_VHT_MCS_SUPPORT_0_9 | + IEEE80211_VHT_MCS_NOT_SUPPORTED << 2 | + IEEE80211_VHT_MCS_NOT_SUPPORTED << 4 | + IEEE80211_VHT_MCS_NOT_SUPPORTED << 6 | + IEEE80211_VHT_MCS_NOT_SUPPORTED << 8 | + IEEE80211_VHT_MCS_NOT_SUPPORTED << 10 | + IEEE80211_VHT_MCS_NOT_SUPPORTED << 12 | + IEEE80211_VHT_MCS_NOT_SUPPORTED << 14); + + vht_cap->vht_mcs.rx_highest = cpu_to_le16(433); + vht_cap->vht_mcs.tx_highest = vht_cap->vht_mcs.rx_highest; + + vht_cap->vht_mcs.tx_mcs_map = vht_cap->vht_mcs.rx_mcs_map; +} + static int wcn36xx_init_ieee80211(struct wcn36xx *wcn) { static const u32 cipher_suites[] = { @@ -1228,6 +1257,9 @@ static int wcn36xx_init_ieee80211(struct wcn36xx *wcn) wcn->hw->wiphy->bands[NL80211_BAND_5GHZ] = &wcn_band_5ghz; } + if (wcn->rf_id == RF_IRIS_WCN3680) + wcn36xx_set_ieee80211_vht_caps(&wcn_band_5ghz.vht_cap); + wcn->hw->wiphy->max_scan_ssids = WCN36XX_MAX_SCAN_SSIDS; wcn->hw->wiphy->max_scan_ie_len = WCN36XX_MAX_SCAN_IE_LEN;