From patchwork Tue Sep 8 18:25:41 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: 249343 Delivered-To: patch@linaro.org Received: by 2002:a92:5b9c:0:0:0:0:0 with SMTP id c28csp4792154ilg; Tue, 8 Sep 2020 11:25:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxh2Vd9ldl39ZnD7hlezDTeydmTxgE7vSbSpqEeiOXmP36Ylg0gk81idcTrWYwo7jmMC+Rf X-Received: by 2002:a92:894a:: with SMTP id n71mr12643ild.253.1599589504020; Tue, 08 Sep 2020 11:25:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599589504; cv=none; d=google.com; s=arc-20160816; b=ZVeqxcFvn4HcF2I/fNSfrMXcl57nFaF99gjUlDpfNRBmYT8dVSr3Pvoe0z919lBLdE tFIA6b/TQUGTLEZh3gpFsjlhIUswIX+xMt8ysTPmP2pHggWChrq1iNVxA4bHbPYKwb1H lqFqRBrqIf9Al/QpVN7ACH0rkSUq6nB7Ik6FKkjTMpmNV6ugjOC/NgmW/N86D6r5nU5C GooqEx1uONLhmnP7hX6mHJP/rrOVDddS8mP3x+kok7FOuJ7bpuuvjdoamBMhuXYKuaJp ++u56k9GjMa695vT+KLjb0Q2S+mE7aYUy/+vnS0YmyI1ExHRIMjl/2qmpPnavsylPYA5 lkcQ== 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=8GSAy7ZhBcarXQq1TqRLfKFV76NyK/yekv+KDUbo06w=; b=ETQ+zUoHKB6hKe0A9qTjeokPlyZa8ikH+bMKOfaeCFPU3aWVk0/K2S4RhWfp9LU+lq fGpC64OurU/bQXUb6rBNVQDPk7lz+lmgCPYjH/s+v9++7GwLEK64BczyRx4+4UAy7LIH qzxT5pmDuzts05jFQzLYkIB1xh6YxRPkXNilLoggcTPi2AQnpMXT6LqXGj9SPEG7G5rT le8XxSmWEHJ4RlbvYVIFh0m5U7KJ02MH7MhpJBFmX7o0yZVyh1px8e5TUKbw+dov7CBd sweoZMzEvTCmo0ZjFSrJ6CEhVKwN6xX7Wk7TYew6QnNurQbApf5RXNHLmJAYfO+VE7Fk F+Gw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lists.infradead.org header.s=merlin.20170209 header.b=YMOXKkt0; dkim=neutral (body hash did not verify) header.i=@nexus-software-ie.20150623.gappssmtp.com header.s=20150623 header.b=WZCyRBI7; 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" Return-Path: Received: from merlin.infradead.org (merlin.infradead.org. [2001:8b0:10b:1231::1]) by mx.google.com with ESMTPS id x19si10356354jas.106.2020.09.08.11.25.03 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Sep 2020 11:25:04 -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=YMOXKkt0; dkim=neutral (body hash did not verify) header.i=@nexus-software-ie.20150623.gappssmtp.com header.s=20150623 header.b=WZCyRBI7; 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" 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=8GSAy7ZhBcarXQq1TqRLfKFV76NyK/yekv+KDUbo06w=; b=YMOXKkt0ghXquVTawtlxZKJn3 VA6krUPXmoPtXUxQdBhJyArzILEkA0PyDVlaxJ9Ti5uPg9QL7slDa92MLQFFy0dm1cU9efzPsmVLC B1Tc/P/fGpuuLIr+DIvQNAEqSuHcytbt4UHbDElv03UCbxugWPCYucUIYCRzVP3nOOpTKAiZN2zl9 eLgbWwA3lfmioaWP/WjxXst7WKbNc5SHvqBQwIoJL3x481O+PMu3llIbCUTIthSWYmdFDGLVyemjI Y0TQJbmyesNl3z/5tIAJ4MKK9lKXUVBuLG9wOb4gIZlyxlXCWBYl8sZYZrIWo+c/f1cUAQGeguNpS 9qZCmjLdg==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kFiIe-0005Wm-Mp; Tue, 08 Sep 2020 18:25:00 +0000 Received: from mail-wr1-x441.google.com ([2a00:1450:4864:20::441]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kFiIc-0005Up-Te for wcn36xx@lists.infradead.org; Tue, 08 Sep 2020 18:24:59 +0000 Received: by mail-wr1-x441.google.com with SMTP id s12so195775wrw.11 for ; Tue, 08 Sep 2020 11:24:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nexus-software-ie.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=BTCWkwRmuH8PVjJv41u3EUB522Tf7wb2bKFIwOAThY0=; b=WZCyRBI7k1r6YEf9qStznnaywdXgAeKWhpKgffvuEoBG0GSc1U0uZdbVzMfCpNVcId 48SPYOBKez9GDaT0aNWm08ir1ANaXe64vIS5HRTlkE4GJLuIBqaS6+RSnB66Wj/bwJ02 FRqo7Ste9VqBaAQZMWnoJlplzq/5jNz17wyiMAJt8cpcCV+XyKC0KfIYEqCUI0lUR1Md Fiy9LPeKOs7o6WCm+ESSbXKBuFAzV8Zi/w187SrFZeKE49L8RKY/F8NwFtEkQrLtr4Qz Wlq3rLPQgPvlH+siI3C6TMaudFgQHgfH7QOXUQrR4n6xxdHL3x9jmf2trYTK+KQ6X5MH oQgA== 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=BTCWkwRmuH8PVjJv41u3EUB522Tf7wb2bKFIwOAThY0=; b=BFYWo7QEqM7/3rNjbGd4L/HQOqRhF3jjM+HsHFICKyyqnC40FopLVVnXlc8RgkKkpO c2vJAQPguO3YxWNbscJ9z70B+nbsIYhVVjXcbzdbr1b+2DIT3+UZwjGjjGvV81nmZHPO x803uYwIAO0BZHYXg4ivgwpbXEspUL55vdEG75EgD8839dHQH9eoMC8FGhQ7vH5v6610 cu10sZPm+iV+VQd4Q1KhJcPqEPVcz+9St6tXIs4lWmfBiUpp0RYnrA8VUUo2i56BLwdm lOGVEt2eRJ1ViOkC3Hzs4E3+STWPOxAIjgsd7BlE515yLYA3q60JQM0pw4qEh99+znl4 ydig== X-Gm-Message-State: AOAM531ddn+HcfP2TCo2zKRQiFIiqHURmHQaH5u5LimCtl8dsL8QvXu8 P4HzVt7v/4QllTPB/zO1dKmRnQ== X-Received: by 2002:adf:f190:: with SMTP id h16mr942210wro.202.1599589496380; Tue, 08 Sep 2020 11:24:56 -0700 (PDT) Received: from localhost.localdomain ([176.61.57.127]) by smtp.gmail.com with ESMTPSA id c4sm334348wrp.85.2020.09.08.11.24.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Sep 2020 11:24:55 -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:25:41 +0100 Message-Id: <20200908182542.2870535-2-pure.logic@nexus-software.ie> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200908182542.2870535-1-pure.logic@nexus-software.ie> References: <20200908182542.2870535-1-pure.logic@nexus-software.ie> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200908_142458_962829_F43E9A84 X-CRM114-Status: GOOD ( 13.58 ) X-Spam-Score: 0.0 (/) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (0.0 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:441 listed in] [list.dnswl.org] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.0 SPF_NONE SPF: sender does not publish an 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 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 From: Bryan O'Donoghue 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:25:42 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: 249344 Delivered-To: patch@linaro.org Received: by 2002:a92:5b9c:0:0:0:0:0 with SMTP id c28csp4792162ilg; Tue, 8 Sep 2020 11:25:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwwQ75i+C288Si9bGb/1XN5MD6JbKFgYouCkBtmZWgbR7cXDIbzNOBQMcBSa7dNeyTjJAj2 X-Received: by 2002:a92:290d:: with SMTP id l13mr69370ilg.114.1599589504642; Tue, 08 Sep 2020 11:25:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599589504; cv=none; d=google.com; s=arc-20160816; b=Hx3dBsSEKR1QgTjlB8D+0tE/CfHia05eHXvEMJNS5GsZJqbOimhIp1hhPCJKB2XSC6 tNuvq6g/t8xxmsvEMFL0n0Xwjd3vCx2sxoDCo4CRD3pWkjhy2j5yBZivWwiOl1VzsEsU PWnmbsz4i57nTuhNrMJkC/9i7p2kGqKXXinx3YhQ4bR6VGLp9SB2/W9lg35GZW71Le6o aEGnQdb+JQ670ElUK8ukYHDLlRvzuUKtSHxiLYV/1bv4TW9imXXB4aTBUB3P5j46Eias 4MQpz1NmhMw3VirQLJTdA3NSBlJtej+yJWb9X/OH3K2vpZ6KJe7w5K2wVpONBuAK5N5C MYOQ== 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=bvbnFdIUMvHFm5wqaUANOieCfvLZK57jRq2czbQ5Pf0=; b=l5HPEFutuuzIs8o2gAVdYbRUxsOfqAqPC3n+3tUqMXKBTPtz7s2Tbtr+kxu4WhoYe2 KmVm4FAtuC9DlnviQ7LoCGExlYdq3NhkHXbs+IRvG2qJQadciOwzcNPuUPSElPYRBUJf iO97i//lVUHVGqr6OzChmuTz2N27XvTD1dSmUunvlKynIaR6+ClE+gVWY2+qutrR/fLP /cOuO8Hx3lvkx5VmuzkSWH3c0i265NGMxquWpq4AGYjCZt7cq7aSQXWIqiZWh5Q0so8J Z1J/0mGqV1O1WgAunIYafKqIVi1Y1Yj55lqFgKry0sKzNMW+tToKRx4+Fxgpa1286nG5 oJMA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lists.infradead.org header.s=merlin.20170209 header.b=yOrdxzre; dkim=neutral (body hash did not verify) header.i=@nexus-software-ie.20150623.gappssmtp.com header.s=20150623 header.b=BmeQlZuu; 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" Return-Path: Received: from merlin.infradead.org (merlin.infradead.org. [2001:8b0:10b:1231::1]) by mx.google.com with ESMTPS id z28si88915iow.103.2020.09.08.11.25.04 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Sep 2020 11:25:04 -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=yOrdxzre; dkim=neutral (body hash did not verify) header.i=@nexus-software-ie.20150623.gappssmtp.com header.s=20150623 header.b=BmeQlZuu; 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" 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=bvbnFdIUMvHFm5wqaUANOieCfvLZK57jRq2czbQ5Pf0=; b=yOrdxzrefoMXu1WXRAJsEjaNG 3dhUcuC46dtGUe+aRaLDdATnFKD8dks/dKZK7B0SGFM6UC7KCPO1PWbXZqWm54k07XZRb9TvERH50 j1ExfETRoX7zCxihrPQW/6sIY7ZKCymhLyUzRF10kKXHV6xMUb7R30rhIxLMGhMFuZTBmxK6OPNKL zpoTl77Tyn6hPuHYQzx4I9CjP6F5awPNkm7bJictMwLCGFw9MklsbHxc45/yTRXjIelrVZk3S5BRm gVDujhZMH7XAxDNZ29NMq8g6RhLqr27lCgHizlYvorB4yyKeVCKafSVw4n9Zlr+8zP96tTjYqgo1p Gl70uc43g==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kFiIf-0005XL-Lf; Tue, 08 Sep 2020 18:25:01 +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 1kFiId-0005VC-Pb for wcn36xx@lists.infradead.org; Tue, 08 Sep 2020 18:25:00 +0000 Received: by mail-wm1-x344.google.com with SMTP id k18so293914wmj.5 for ; Tue, 08 Sep 2020 11:24:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nexus-software-ie.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=b80YWigxhp2Bij0sjpEU6Mw77SxZ6jTq1LZAsmGVkXg=; b=BmeQlZuuR6UaVzlxK9RT6pnJ5Idmtcj5x+/TTHzd2kQkxaijREoOfMKq+JT5/2qDtC GiGjo0+ndlCRSLR2kVLm3l8DiTAuvUe9bXmAnzTXldNc1nirOwCBhtpt80pmQy6T4DTG 1nw4UJ33xdrxsNYFqOxsT5ACeyRlN6F8HPxHL9YetcHJrXlxJmaf2zNvrcdiuGl2AEEQ G1ZQAfSI3EItDujzlkWmbWgcLprFdduih1uBVaM6DhJ2Qs8AQjF2MTvV3YP7qSLSUzUH etov4Ha2YxpTLbq1AutdxDUDpngNegUcxgcDtm8VsXkz46dRUgaSwhaqxVAzTaDGR1RH aj7Q== 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=b80YWigxhp2Bij0sjpEU6Mw77SxZ6jTq1LZAsmGVkXg=; b=Z64YyfsQctHOORWXrNJdrfKpqcklA53USIXhF6VCymxCTz7pLqBphZipWZMw+j0MdV Tv+VMlDaDlvVq+fzyWzsmxHkXRnnInvNnSZgxh1rAsfjJJXMhLmNDdlQAx/Uc7pfE6mb TON/UPj+GRO3xGXJtTdizpgZP5+vfnrAWMHu7kLshdT4BdvFzWLJge6nVEQODoE/TmBP esVLFiZ1chel1ransH95b/9poQ5VlaZ73BJhQQ+F5CYsABMM/WNZ2Gen6iwH8ZWxgj78 X4hGUw5qq2ciSJ3WfaEJaLdjJkhi1a1KeVAoL2LuMSd7pkM0zGYD1FcY0c+KYIK97P3k kvzw== X-Gm-Message-State: AOAM533HzkrZULO0uFH3TpYvKs3YqIRirGvQx9oP7gDAFGHlFQ0amK9z bOvTEX3dkREvLchb5ep7VTzVEjB0mNPigQ== X-Received: by 2002:a05:600c:2246:: with SMTP id a6mr436231wmm.38.1599589497240; Tue, 08 Sep 2020 11:24:57 -0700 (PDT) Received: from localhost.localdomain ([176.61.57.127]) by smtp.gmail.com with ESMTPSA id c4sm334348wrp.85.2020.09.08.11.24.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Sep 2020 11:24:56 -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:25:42 +0100 Message-Id: <20200908182542.2870535-3-pure.logic@nexus-software.ie> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200908182542.2870535-1-pure.logic@nexus-software.ie> References: <20200908182542.2870535-1-pure.logic@nexus-software.ie> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200908_142459_870660_D1023818 X-CRM114-Status: GOOD ( 14.92 ) X-Spam-Score: 0.0 (/) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (0.0 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_HELO_NONE SPF: HELO does not publish an SPF Record 0.0 SPF_NONE SPF: sender does not publish an 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 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 From: Bryan O'Donoghue 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;