From patchwork Sat Aug 29 03:38:37 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: 248664 Delivered-To: patch@linaro.org Received: by 2002:a92:5b9c:0:0:0:0:0 with SMTP id c28csp1602355ilg; Fri, 28 Aug 2020 20:38:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxH7MzG24oz/Hu9nTELs1WmFg6Vy7IlbxqCeKE/4wB3067eMZX7VCQ5xGSXWbAcBSFTFTmd X-Received: by 2002:a6b:bb43:: with SMTP id l64mr1417458iof.191.1598672292623; Fri, 28 Aug 2020 20:38:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598672292; cv=none; d=google.com; s=arc-20160816; b=gDrbUWmL0KMDeFOlUB7EhXWYHj/R1bt/+XBplTEveZfr2vIfckqlT5rQGXHJfiKwr3 UjAAKrVvGAzSY4uF2KCXPd5lspso9mFVNeeAshhflaVUcnPguGXHrTiu252YQ9o6ntF1 d19yDST36OdDtujmYYbjmYSg99++2CoB0C0WP6kbHoDFmXLVfncyaD5qsffFTXLMHjay dls4VaHVYxIKLsmFUFuGgZv1/0y6xbLsvjMxDOk7SsPGn/4pkrCU3/HhK8u1ka3RAz94 Z4mhQgcPGW20Z9CWO/UL+qRaxnNFxIhqqoAVibnvik8qOKkXkR/gOW/AqDr+yVPBRA6w CyGQ== 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=KJfaeetV/K4eTYqIh0IOfv/92WqqR+05vUZkG12Rs1g=; b=vd1A3S3OIodyCczDlvIlNFb1zzUHt1VbGaIKUcU+VUGEzAGlz4qWhsMrsLXf3uFBX2 nWDLHHbD772XNcFGqJ06iBJewpTVHWLjxEitY8gf96sbp1Cx24jHsKO5vCU0n4lvC3q0 ERxHBfrcoMkNU7web9riSxb0vo3VcKKgVbxpb2lcEVWh7YhdCBjgsKKhyNj3Fv3a0R80 fcSafva4ON978UFLX/qkzDxV9F3wwP+vIVQ93iBAQ7rPNrfej+UosskR3o3uzCEl7R/1 wwtXIohvZIMgSQD1CWK+VtyRt/k6dHLPH0VyQAJIXYbyLo1AcIxE/wTKPiymevr3tbE2 e9Yw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lists.infradead.org header.s=merlin.20170209 header.b=JvKPYVaC; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=me3BugrB; 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 g2si1117719ilc.2.2020.08.28.20.38.12 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 28 Aug 2020 20:38:12 -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=JvKPYVaC; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=me3BugrB; 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=KJfaeetV/K4eTYqIh0IOfv/92WqqR+05vUZkG12Rs1g=; b=JvKPYVaCwfY1c3Be9v2hZOUAD q0Wd7lrrWnDbYGMZnQZxnQ/rjocl5A2GcZl4hKLgUKLA1+9xO402kM5fcBZUUe8cXdq1Kas40qipm 4ZnULEqdGhGSaB7CdcqbBd2RIpmu32ZAKANaHb2OJDeEBqeRdhyCYQ5AuswHXvBZLya6EPYeGr806 Y6nmQH65PFrk/IoiVRe+XSrH9wHegytt145y4YaSsLPd7YGJHIfhVqfhscJidBt1k8WEJmhsqIT2D boGclHXNgQMz7g54Itjw2ii0WLI8zXGyP7NcZKdqTYzF2WyV70b3ta++xL8V/bw5LMmfm3XWsompP IZ9EgbZ2w==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kBrgv-00026g-7C; Sat, 29 Aug 2020 03:38:09 +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 1kBrgs-00025B-WB for wcn36xx@lists.infradead.org; Sat, 29 Aug 2020 03:38:07 +0000 Received: by mail-wm1-x342.google.com with SMTP id u18so876170wmc.3 for ; Fri, 28 Aug 2020 20:38:05 -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=fNiRhwwJnyA0HvHB3u89nvaZihjCiD7YGV/okY3OW5A=; b=me3BugrBOWQV+U6/VJGef1fddYUJf7bH3pdjQjOn/eOkhKniFHu7/9wc+zXVr4VN6G zyXO5OVMKbO7Fzuy0RjSKmXYu+RCCZ07S1ophjow7zYMVz8iHJ8LtKk5m11/tm2Zsdus nOX2ESe90GjPdhL4wFDRgDxg8/+k5JIJzRRdLiy9g+saIyeuMOLdyIATP+2noLvlWCtT lX1+mdOofQH900EC/JI3TPWVzs56niK+Kn16yFD4VpeR010xlvI65RXlSi+jzljsMlsh ImfzWUKYJ0D7qwP0MqmNzDqCFU+dPh72KVK5c5NnCD0NT1Rq6DqTv0WLCeJ0SzNFRlDF Vz6w== 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=fNiRhwwJnyA0HvHB3u89nvaZihjCiD7YGV/okY3OW5A=; b=ZQQwqgBXtMh5+MlubZ8MVTIRnImN/9eKZlt0QF0CQVwNPim8A8rQhlhli0RpjCsLAR CsXFTwxp7RdckhCa0YQtA8WGVCV2nrq2Vc5qBwkKNz7JXX+ZAv2PNDLpnwZPLd2hHqH2 ELdAG1bWQB2eNobF/RW9YaJS7RS+p2EO+x4MsRK1lGK8M48ok/PKq2h8050uOvwqiGdU v8P06AxM0tIp385APQuamVVhH6hVAB4DRekko34TXT0LnIHZOg0IikyhviqQDZWsVgrK x4l8R2iIB2LMJcMQugNdGWJRDVd63MluaJDOxVUXHwaRAp6Yl64qKteexw5PQa/4pGIM orjg== X-Gm-Message-State: AOAM532hy916Vf8lm8bka2HntTf2+ziq8SRm4ICHooo3zjOlsyDaloap OVpIw2mDFCJp9dZ3mkE9lNbVyQ== X-Received: by 2002:a1c:105:: with SMTP id 5mr1570159wmb.83.1598672284491; Fri, 28 Aug 2020 20:38:04 -0700 (PDT) Received: from localhost.localdomain ([176.61.57.127]) by smtp.gmail.com with ESMTPSA id v29sm1827545wrv.51.2020.08.28.20.38.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 28 Aug 2020 20:38:04 -0700 (PDT) From: Bryan O'Donoghue To: kvalo@codeaurora.org, wcn36xx@lists.infradead.org, linux-wireless@vger.kernel.org Subject: [PATCH v2 01/10] wcn36xx: Add a chip identifier for WCN3680 Date: Sat, 29 Aug 2020 04:38:37 +0100 Message-Id: <20200829033846.2167619-2-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200829033846.2167619-1-bryan.odonoghue@linaro.org> References: <20200829033846.2167619-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_233807_063195_B0FAF256 X-CRM114-Status: GOOD ( 12.38 ) 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_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 The WCN3680 has some specific behaviours that we want to capture to distinguish it from the WCN3620 and WCN3660 respectively. Add an identifier for this purpose. Signed-off-by: Bryan O'Donoghue --- drivers/net/wireless/ath/wcn36xx/wcn36xx.h | 1 + 1 file changed, 1 insertion(+) -- 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/wcn36xx.h b/drivers/net/wireless/ath/wcn36xx/wcn36xx.h index 719a6daf9298..342ca0ae7e28 100644 --- a/drivers/net/wireless/ath/wcn36xx/wcn36xx.h +++ b/drivers/net/wireless/ath/wcn36xx/wcn36xx.h @@ -92,6 +92,7 @@ enum wcn36xx_ampdu_state { #define RF_UNKNOWN 0x0000 #define RF_IRIS_WCN3620 0x3620 +#define RF_IRIS_WCN3680 0x3680 static inline void buff_to_be(u32 *buf, size_t len) { From patchwork Sat Aug 29 03:38:38 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: 248665 Delivered-To: patch@linaro.org Received: by 2002:a92:5b9c:0:0:0:0:0 with SMTP id c28csp1602370ilg; Fri, 28 Aug 2020 20:38:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw6DvBlXSAVtKD+mthNolicCtuUMG0xh6kHgggB1VhU1oJbyH/5WeN5clbGu9fiKHHXAJor X-Received: by 2002:a92:d1c4:: with SMTP id u4mr1492320ilg.295.1598672294582; Fri, 28 Aug 2020 20:38:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598672294; cv=none; d=google.com; s=arc-20160816; b=iexuFgnsFjRABFxPT94CCQXYtjyYT4IJc9ffkFHsAAQQsO6VrUAcDupiC9wUAIAm8T ecyMaqyOcn6+zYZYz0qrzeVsB7RNmV3JiJh7nQgBak3uX05mYAPNryQmdlkgPEEsoSZr RA0EomIRxv9iWKCT5pTT1YJ3FSnpQK8zwoJRrMEoEL/Df9EM2QOzPOyXBhlN4Al0MjGX 9nwPtG/Sko75F0bvxe9OyCQcLM5L0Bws4gCk1ypC+U0KOgrLO7Z3xRlswHH/L6hYRyiW UK6noXpdSAlFqFFegxpoxUEQx5VVT8Oznu9nXEC6PZSmG/rwsNngvY5WqGjrQyDrIoVQ HdXQ== 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=SQ2XUAxMFrGPR8+4xq5lzwWv+fHjiQ3evIY5exIhg74=; b=OMoG0O0o/RaZgrN4UO/sQ5e9FDjb32fJQrmITI0sE8bUN+9DT5LOJX+DF2fxhWPmao e7+4ds0kx2R54U7yoZ+Ul6OanIGzR2DUW2IoWw6mSIgLGu132XTgNTUuR9z5BsT0uu11 8cTbz7dUlIWJjq8RgBkBqHNgz9LxUpgEblVsVS5Nn+NTchU9OF9Y0qCCSSPxNhYivSjR gB11bQ9jdfOGB9DoGMEvqmxwNW93Fkee4Z0Z0UViuYZVCSxIlADwLabcUZ5ZcXt3s8ij lZKOHTHx0jc0+YeyElv59ua8bBZ6rcvHriiTLYQc2lt9dANybiuFagOplgUsuuNNvt+m br3w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lists.infradead.org header.s=merlin.20170209 header.b=hjyGNaOP; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=zkoSQL7W; 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 b7si732031jag.98.2020.08.28.20.38.14 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 28 Aug 2020 20:38:14 -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=hjyGNaOP; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=zkoSQL7W; 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=SQ2XUAxMFrGPR8+4xq5lzwWv+fHjiQ3evIY5exIhg74=; b=hjyGNaOPydzDll71pIWrbsocU Gx3/IxTLnVrAuM03mzcBgurdZHaiuiZbBJjZVGPDXgGYYOe8TA0fcJRo3qxEoEyv7GYT83Qs4a2Oj nP40lIgWffKqtIda8Fsg2DZvWU/dL/2aX3+IDC/ISWYBj9WQwTfplU7S0BgYmzED87ztw9UJnQ3uD c0prUgeArqm5gsF1qIueZ0Tb7zW/Xe9mCWuSIuoqW9W/4mmf3PiS5KuBxdbomhzQrqtvVeKAcxY0W ZVM3myX/p8K5BrzjK/bAXOTCDIClVnCQueNlh8VNnUxrgfepUf9ZNqA5RZT5kxIkExWkQidUYUOv1 TMnechqfg==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kBrgx-00027m-5d; Sat, 29 Aug 2020 03:38:11 +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 1kBrgt-00025F-CX for wcn36xx@lists.infradead.org; Sat, 29 Aug 2020 03:38:08 +0000 Received: by mail-wr1-x441.google.com with SMTP id o4so905652wrn.0 for ; Fri, 28 Aug 2020 20:38:06 -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=vXKEi/HoMMsHZxH4yOeDvKa0RuCCtL95AFd9xgH5tmA=; b=zkoSQL7WX9g1fDWQx8gKsqkXSmOkkyl2rUtJC/8+ekwNenOYXPwZWnYqU4b6yRMmaW YSGzXNGuxrbGGv43NWMJkycrNayItjj1aCJtllCOepPVKC8Nkv/ur3DO57l0J2sRPCz7 y1r7AewhrxW5X1QkS/h0hnEb9pyqa+5/DjRp7oelBHRJglhAchi7SOor7qJ86EXENH4V KTJR3rEusaAxO9nWENfhc23pkD6xPijqEmGSQc6KS5+pVyrqWYbwP/h14iL6R5udoJF0 aPwBOCklO79YhsyHY5RoNrTkqjy2U71DYKvW0RAUXARt9ZePDt+sFWDXAqe1IOqDkqGE Pyrw== 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=vXKEi/HoMMsHZxH4yOeDvKa0RuCCtL95AFd9xgH5tmA=; b=LXDHL4VM0Na3Isrj287dkSmDvjR+yQa7KY5c/HRPp11kDd+Y/84unu9DFoyL572SSy esG+aUF0yuV7I9KyZozAaSIXIRCN//b5RK8f6mH2XRUXjktB3XQ45a7hk5AxoVgzrgMj owNdIpnz7tQx0jyCEQVp7cP2iiujk5uh3XeU0zwfNYWFjghNq7ENgskXTz0sIxRXZDMT LX8wyAWNj3lwvZLxDWn6gGvexPoLFSLC9AfgbA+bkZrUDPd6Vg41fopjHfJBRGaeH+Rw mxfquoQZHxLgN2UXbQcshc9lLLhMIPKlqoKCSebmJpnn80tOItvx1LatOL84B+OkF9Zq Iuww== X-Gm-Message-State: AOAM532XkfxO8cdUH5FcIOP3wvU1OHgxblbJXfWXWAMH6Sbw3plRm6ZV e+xzs4DYCeNn3FWP/a/Sf6xBQw== X-Received: by 2002:adf:81e1:: with SMTP id 88mr1831849wra.57.1598672285502; Fri, 28 Aug 2020 20:38:05 -0700 (PDT) Received: from localhost.localdomain ([176.61.57.127]) by smtp.gmail.com with ESMTPSA id v29sm1827545wrv.51.2020.08.28.20.38.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 28 Aug 2020 20:38:04 -0700 (PDT) From: Bryan O'Donoghue To: kvalo@codeaurora.org, wcn36xx@lists.infradead.org, linux-wireless@vger.kernel.org Subject: [PATCH v2 02/10] wcn36xx: Hook and identify RF_IRIS_WCN3680 Date: Sat, 29 Aug 2020 04:38:38 +0100 Message-Id: <20200829033846.2167619-3-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200829033846.2167619-1-bryan.odonoghue@linaro.org> References: <20200829033846.2167619-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_233807_475687_FDE55024 X-CRM114-Status: GOOD ( 12.48 ) 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:441 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 If DT indicates we are dealing with a WCN3680 mark the rf_id field as RF_IRIS_WCN3680 allowing for further chip-specific logic. Signed-off-by: Bryan O'Donoghue --- drivers/net/wireless/ath/wcn36xx/main.c | 2 ++ 1 file changed, 2 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 44b8707d3fe9..eb518bd88870 100644 --- a/drivers/net/wireless/ath/wcn36xx/main.c +++ b/drivers/net/wireless/ath/wcn36xx/main.c @@ -1309,6 +1309,8 @@ static int wcn36xx_platform_get_resources(struct wcn36xx *wcn, if (iris_node) { if (of_device_is_compatible(iris_node, "qcom,wcn3620")) wcn->rf_id = RF_IRIS_WCN3620; + if (of_device_is_compatible(iris_node, "qcom,wcn3680")) + wcn->rf_id = RF_IRIS_WCN3680; of_node_put(iris_node); } From patchwork Sat Aug 29 03:38:39 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: 248666 Delivered-To: patch@linaro.org Received: by 2002:a92:5b9c:0:0:0:0:0 with SMTP id c28csp1602372ilg; Fri, 28 Aug 2020 20:38:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwsSkoMB+zewmHkCvz8Ne0SBCcNp53YJK8O5Wc0k3cYVwsoeJKvT3gPjfgYyfa+r0cWlaAx X-Received: by 2002:a02:840f:: with SMTP id k15mr3909465jah.100.1598672294837; Fri, 28 Aug 2020 20:38:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598672294; cv=none; d=google.com; s=arc-20160816; b=q8SgbrGPU6kyzExlLyYY+h0Y/0J/gWLyAF5jAht2iMHeH+L416Aq4CclSxjZrCtwQa 3EsnViflazBQuoksj36L3avT5SayzA45DYqQcRmMccyk3MBJKHDkpWdSYZTGE3eDwvrh gUB56Vo5w47vEx/iQFfai/Thqz7QYXm96TJIlGeRsl36VeCAKiG5FH37enPihEgpSsFV uxq4BPgBbf23bjyXNV9W4KQClMxZG2/0dwOyTsvx4tNFCQQP2RPpfsI55Pz7F9Hz5YqS dw3Iy10ocFF2z0MfPTl14jkBkRgZNLny3aOXx29DcKDz4Uw7RKsJo+hJhhV9kvMR5kWO d+xA== 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=qEYwDBxFtjgDBo8cdTTadTPTiiZkaaf8KzWZR4/unL0=; b=JTJBs97dERtZjWdy9duGU75LG8y3WgMOPwCz0t01F2py8Zo+jgJxSRtd92i4ukFyaG ppy3EdfYan3YjCedLSEq7ZXy3D2UgdocTVnsc2tLwdQj8yOcmsTwkGAV2iT7mVA3YT2W WoDbC2thwqabVQUTG4yg4Lt2Nt+lOWgVT33Fx7LcQbwDehxJVm+1UUCkxH0FOiVxQFnZ y51/jHd7b1PHyzdFapzXARnLdCBNQcVYqKEtp+mS+UptvXIu5OnYMjORqqOH+g+L7XEW yMhLrMesKMgMbzSFNR/PuU8qahdQy2S+uHi7f2K1d59j0XigeNll/HKLmf4BS5wge2cy dl5g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lists.infradead.org header.s=merlin.20170209 header.b=kbK6PydX; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=MEatZ4qk; 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 x20si2078122iog.82.2020.08.28.20.38.14 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 28 Aug 2020 20:38:14 -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=kbK6PydX; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=MEatZ4qk; 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=qEYwDBxFtjgDBo8cdTTadTPTiiZkaaf8KzWZR4/unL0=; b=kbK6PydXiCTUTqrm692qTj+en pW0jo90aq8MgGrPSxmYb4LCYXu/Yir/C5rwtIBUFecYcSM4UTpkN6JNZC38BZytaIXW1r0sxrO3rK jBEXe2236UvkM6k/nLCqO7JXuPbDmLh3SZhVlaRqBnK3ShBL1NJhK44D447ToDX1fQcdjBGeKAsOK E1xnCdDqaeBFp3slWXwKSxWdeUHh+153KKoT8S8jhj8KJF0oZB5aR3daY1Gbtpssq5HfN96NVCYeD 7ZroXTWZ0go61plP4MzVaZoP0AIBjRJewY3fUMBeBFTMKro4GwvGe+74afHxsLfP2lJ63IJ4pi38j 6xELPC91g==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kBrgx-000284-LC; Sat, 29 Aug 2020 03:38:11 +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 1kBrgt-00025U-LB for wcn36xx@lists.infradead.org; Sat, 29 Aug 2020 03:38:09 +0000 Received: by mail-wm1-x341.google.com with SMTP id x9so849402wmi.2 for ; Fri, 28 Aug 2020 20:38:07 -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=eyueDL1HpZcFmjns3DJaD8rZWh8gy/SLzoJpbodUmaQ=; b=MEatZ4qkA3Q5ErPunm5qnR+0+uYbnen5AD2b3OXNCtfvC7vCDCWns5XLYdaoQauP0s jEpTEwuv8b6M0HTTgulbRXzg9B+++8FgB2u1sAXzawA0Uwl2ikDVW8azUFyTYm82kBy8 0O87/yKp73EnZKcTPv350uJSJOwi4ciMPcSiFNtb5ivqbQM9WiRNoDYlk6/6LgIhM4nO hbRJZlk48wrX1wzn32kTHCDfxDDnSKIfpY6n99HpE8vQbb5Q6Bn2mT8mjAnBM6ahVPXF ZBT0WGJ1R/DZZGyhOVr2KwS4akt516nmokgOSf5ODC4V6sCWUdyRbn4pMVYsJd+OUDzs JHaA== 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=eyueDL1HpZcFmjns3DJaD8rZWh8gy/SLzoJpbodUmaQ=; b=gTdl8HgHWYAIktirzC69OJic0uERme460K8zd8RolybgLAGeB82AnqmDJVi7b5YS/l 2drqYzqMApKfCnCUXDMbs77yoIOiqySbcyEH79CwpfW2J+oMlW4JEx10JfLIHtWM8UyR L8gfgpzvhHVImbWYBUis3xvAJkQWdHQitrhdv1og1bwVe3K03qhbEEO5G9HHMmr117Sy RIFOYygeqN1vjj7Tnu1PCNpKLSgnYSzZzZRrmIhraiJUtfYvBJItme4voCozEJSyD3CF vOT9YZegpQfH4WwjGYwmfPKOuCufmmfV6bL1AyISHLScuy52eCg8LzfiNLf/8KwDp94A Lpew== X-Gm-Message-State: AOAM531J73CIUFG8EAQq5qscwFIY33Rscsg9zOAmaRlOJWIS3ivEMIFB PwjAv7QSWyww1Ic/UwmV0RAZxw== X-Received: by 2002:a1c:1904:: with SMTP id 4mr1431433wmz.119.1598672286424; Fri, 28 Aug 2020 20:38:06 -0700 (PDT) Received: from localhost.localdomain ([176.61.57.127]) by smtp.gmail.com with ESMTPSA id v29sm1827545wrv.51.2020.08.28.20.38.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 28 Aug 2020 20:38:05 -0700 (PDT) From: Bryan O'Donoghue To: kvalo@codeaurora.org, wcn36xx@lists.infradead.org, linux-wireless@vger.kernel.org Subject: [PATCH v2 03/10] wcn36xx: Add ieee802.11 VHT flags Date: Sat, 29 Aug 2020 04:38:39 +0100 Message-Id: <20200829033846.2167619-4-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200829033846.2167619-1-bryan.odonoghue@linaro.org> References: <20200829033846.2167619-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_233807_733914_F361DC22 X-CRM114-Status: GOOD ( 13.65 ) 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_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 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. 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 eb518bd88870..08e23dbb60fb 100644 --- a/drivers/net/wireless/ath/wcn36xx/main.c +++ b/drivers/net/wireless/ath/wcn36xx/main.c @@ -1184,6 +1184,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[] = { @@ -1212,6 +1241,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; From patchwork Sat Aug 29 03:38:40 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: 248667 Delivered-To: patch@linaro.org Received: by 2002:a92:5b9c:0:0:0:0:0 with SMTP id c28csp1602380ilg; Fri, 28 Aug 2020 20:38:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyQRLfJUMEAvSIqdMIGhRKW1JUY4FfAemJUTYbr9RqZLuIA/fmefZnYOaPbFyg4q5lh6+oQ X-Received: by 2002:a92:de43:: with SMTP id e3mr1475205ilr.124.1598672295748; Fri, 28 Aug 2020 20:38:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598672295; cv=none; d=google.com; s=arc-20160816; b=wLIaV3xjuG6+6FlyaBKqReP3dP37dQZPWFAf/w8sAmMjlPCb32ITxSECesDa9PQgji GeKU6wnG/dsJL3VoXv1MyJBSNUbs71HSJKPtt2QQU8fB3QcjBA7IoadFUvKuWm4vz2Lu eWO5q1laHqC6l7qYd/HqI8twB3739ZOcwdoRwH+RO0eArdo8RK79NlUC3MGEkRY7h7GC 6WA05DBBbUQ+jq6GkzU26cMZ3GqnlTFI/2VwsSDhtWJQoOEeqX7GGGJMx0C/BLSH33gV jvQYe7mOl76o46k826Cf3ebQO7iJrv2eYf9HPLPkGhTSeSz6wL6rigVBwcN6ybdpbMPw Be3w== 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=vLy8BJIytSl2hSR7/G5fEPfa3y7HfCr7Izepdmhjusw=; b=m3H+O98FiPWgIr1K6/eAuvTVbJzxjDpXUHRmzXArSfqpXxdiB9/FMvK+mwFWhXyMEG N6+TDkOJJO1k01KoAbvZlTwfTxwle6yIuCrY+yvJZwN1qgg6kTuy7F3XxauSS/DcIw9E QOJ0Fg61atgqthB9MN2zllIjxToJuLrUk8fvrWaKxyr+LHgX5teKZApyowLSBbmP9rKS RbeR2keNLXBf6VimK29sqMKjY0xRGb5ru1FE+avNZOpF7zZCWpQOP4CeXXEg8qXBQmYO sbWkavRoQUrRWogKpFon9dF+rv/owot4b1PCLBzcEF5bBd0yk8MiyqUpvyIqhgaSDyBW MGRw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lists.infradead.org header.s=merlin.20170209 header.b=DzguFG31; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=Ug6KpVaQ; 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 z3si807500jas.21.2020.08.28.20.38.15 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 28 Aug 2020 20:38:15 -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=DzguFG31; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=Ug6KpVaQ; 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=vLy8BJIytSl2hSR7/G5fEPfa3y7HfCr7Izepdmhjusw=; b=DzguFG31yXtIZpGkJvsbDeRX4 qAenKFEDSQpmnzxXovP1QnH5CtmVotdhjxWKw6qCLEc3NTHqrCtjG2t2gCLMG30IfRI91jK+pJncV 2JhJRrqnO/NPVHk8+6SBGbOZZQ4l7az+ARvhGh1JPFlQ2pvW6nH3Mnl1KFNELE43d1ByGzA0ircM8 C3Ni6qLfty0HQNMOjQCQipXPjqI/xi4hPTqbl2MPJyqUhZRbjQW9ZC5A8aZoZbr3VniLXNrZtZLx3 YpUIYklEh2jRfZx280gxPsrZWv38iCxJzAg+fvn8cSnagoH7RRGR0nQSGkM8egH90htQxZx+BznKx cOpzsYtnw==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kBrgy-00028Z-2z; Sat, 29 Aug 2020 03:38:12 +0000 Received: from mail-wr1-x443.google.com ([2a00:1450:4864:20::443]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kBrgu-00026E-Mc for wcn36xx@lists.infradead.org; Sat, 29 Aug 2020 03:38:10 +0000 Received: by mail-wr1-x443.google.com with SMTP id b18so872032wrs.7 for ; Fri, 28 Aug 2020 20:38:08 -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=WZEQmynoQoGqql5uWz9R80ak6n6NCB+2pwYHU1F/YXI=; b=Ug6KpVaQEsn9IqxnjJSB/dU0b2hStJjSEx1mpkJAm3huL5fWGENXCX5gu7UKvHmzvE uRWE0ETy7awWup2LWk2FkwD1pOseIR+dpv8ocy2rlvasUqJmcAaDZCvZT8z49iKlfk6Q DIvuHrPfbpNOIrGdUXcifOCWCuIcARpr9+m0nCMgBZH8DXLoo5csz80QPulHQRGMqVYF frD//UDx9QOYf1Nwy3CanXLRslsx8TNIoKL/GUZgMrnCfRDEYYI9TpGQtdwYA8Ftj1Ny BIM6CmwpAXHSqvwNafhHh7BjB0B2ZD/6r79kF3DFA3Q9AIKZN+BJNn11C19imKPqsISq bouw== 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=WZEQmynoQoGqql5uWz9R80ak6n6NCB+2pwYHU1F/YXI=; b=DKeSIgNGWQt7yqZaD5v/CpGFsb5HvPGB2NC4M25RI+GBX5wMTi+HZurpuYFSa3Z4fv vmmfWqXkA+SC++g3JiGKHFibsK+wXGjlIfKJ6CnUeEWCVpQnX8gqcDHCLsEfINfj1c2p c/Pbqv2n3a99gsnN56eY8D1I9/GlcfMZOE46uOGM5PJ7QOJWMd5oudnR0pnOSoXavTgA hbrvFH0R8xQFFx7LuA7+l5oy5TYcsOC6UlTdLvSaNYNXi/3uwwQgf/YO6WDsRyZXG7Zr gaEKStRxyioXLUSUZKbcLDbko/YnbLhJGQex9fYAao5R5Lv1CyVuBxfxaTRfqiFJmYcX ZfXg== X-Gm-Message-State: AOAM532mUHalYJCwS7/NiRNPHgdbEjeBiq/BOY98LHAWln+AmnXZwnq4 9xjEUh482wFKj7299udz1K576hTfWb1DGjxp X-Received: by 2002:a5d:54c1:: with SMTP id x1mr1600087wrv.231.1598672287438; Fri, 28 Aug 2020 20:38:07 -0700 (PDT) Received: from localhost.localdomain ([176.61.57.127]) by smtp.gmail.com with ESMTPSA id v29sm1827545wrv.51.2020.08.28.20.38.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 28 Aug 2020 20:38:07 -0700 (PDT) From: Bryan O'Donoghue To: kvalo@codeaurora.org, wcn36xx@lists.infradead.org, linux-wireless@vger.kernel.org Subject: [PATCH v2 04/10] wcn36xx: Add 802.11ac MCS rates Date: Sat, 29 Aug 2020 04:38:40 +0100 Message-Id: <20200829033846.2167619-5-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200829033846.2167619-1-bryan.odonoghue@linaro.org> References: <20200829033846.2167619-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_233808_788227_D4893904 X-CRM114-Status: GOOD ( 12.69 ) X-Spam-Score: 0.6 (/) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (0.6 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:443 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 0.8 UPPERCASE_50_75 message body is 50-75% uppercase 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 incorporates the 802.11ac table defined in downstream into upstream wcn36xx. Signed-off-by: Bryan O'Donoghue --- drivers/net/wireless/ath/wcn36xx/txrx.c | 109 +++++++++++++++++++++++- 1 file changed, 108 insertions(+), 1 deletion(-) -- 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/txrx.c b/drivers/net/wireless/ath/wcn36xx/txrx.c index 564130d6b8cb..80e96c2296af 100644 --- a/drivers/net/wireless/ath/wcn36xx/txrx.c +++ b/drivers/net/wireless/ath/wcn36xx/txrx.c @@ -114,7 +114,114 @@ static const struct wcn36xx_rate wcn36xx_rate_table[] = { { 1215, 6, RX_ENC_HT, RX_ENC_FLAG_HT_GF, RATE_INFO_BW_40 }, { 1350, 7, RX_ENC_HT, RX_ENC_FLAG_HT_GF, RATE_INFO_BW_40 }, - /* TODO: AC rates */ + /* 11ac reserved indices */ + { 1350, 6, RX_ENC_HT, RX_ENC_FLAG_SHORT_GI, RATE_INFO_BW_40 }, + { 1350, 6, RX_ENC_HT, RX_ENC_FLAG_SHORT_GI, RATE_INFO_BW_40 }, + + /* 11ac 20 MHz 800ns GI MCS 0-8 */ + { 65, 0, RX_ENC_HT, 0, RATE_INFO_BW_20 }, + { 130, 1, RX_ENC_HT, 0, RATE_INFO_BW_20 }, + { 195, 2, RX_ENC_HT, 0, RATE_INFO_BW_20 }, + { 260, 3, RX_ENC_HT, 0, RATE_INFO_BW_20 }, + { 390, 4, RX_ENC_HT, 0, RATE_INFO_BW_20 }, + { 520, 5, RX_ENC_HT, 0, RATE_INFO_BW_20 }, + { 585, 6, RX_ENC_HT, 0, RATE_INFO_BW_20 }, + { 650, 7, RX_ENC_HT, 0, RATE_INFO_BW_20 }, + { 780, 8, RX_ENC_HT, 0, RATE_INFO_BW_20 }, + + /* 11ac reserved indices */ + { 1350, 6, RX_ENC_HT, RX_ENC_FLAG_SHORT_GI, RATE_INFO_BW_40 }, + { 1350, 6, RX_ENC_HT, RX_ENC_FLAG_SHORT_GI, RATE_INFO_BW_40 }, + { 1350, 6, RX_ENC_HT, RX_ENC_FLAG_SHORT_GI, RATE_INFO_BW_40 }, + { 1350, 6, RX_ENC_HT, RX_ENC_FLAG_SHORT_GI, RATE_INFO_BW_40 }, + { 1350, 6, RX_ENC_HT, RX_ENC_FLAG_SHORT_GI, RATE_INFO_BW_40 }, + { 1350, 6, RX_ENC_HT, RX_ENC_FLAG_SHORT_GI, RATE_INFO_BW_40 }, + { 1350, 6, RX_ENC_HT, RX_ENC_FLAG_SHORT_GI, RATE_INFO_BW_40 }, + { 1350, 6, RX_ENC_HT, RX_ENC_FLAG_SHORT_GI, RATE_INFO_BW_40 }, + { 1350, 6, RX_ENC_HT, RX_ENC_FLAG_SHORT_GI, RATE_INFO_BW_40 }, + + /* 11ac 20 MHz 400ns SGI MCS 6-8 */ + { 655, 6, RX_ENC_HT, RX_ENC_FLAG_SHORT_GI, RATE_INFO_BW_20 }, + { 722, 7, RX_ENC_HT, RX_ENC_FLAG_SHORT_GI, RATE_INFO_BW_20 }, + { 866, 8, RX_ENC_HT, RX_ENC_FLAG_SHORT_GI, RATE_INFO_BW_20 }, + + /* 11ac reserved indices */ + { 1350, 6, RX_ENC_HT, RX_ENC_FLAG_SHORT_GI, RATE_INFO_BW_40 }, + { 1350, 6, RX_ENC_HT, RX_ENC_FLAG_SHORT_GI, RATE_INFO_BW_40 }, + { 1350, 6, RX_ENC_HT, RX_ENC_FLAG_SHORT_GI, RATE_INFO_BW_40 }, + + /* 11ac 40 MHz 800ns GI MCS 0-9 */ + { 135, 0, RX_ENC_HT, 0, RATE_INFO_BW_40 }, + { 270, 1, RX_ENC_HT, 0, RATE_INFO_BW_40 }, + { 405, 2, RX_ENC_HT, 0, RATE_INFO_BW_40 }, + { 540, 3, RX_ENC_HT, 0, RATE_INFO_BW_40 }, + { 810, 4, RX_ENC_HT, 0, RATE_INFO_BW_40 }, + { 1080, 5, RX_ENC_HT, 0, RATE_INFO_BW_40 }, + { 1215, 6, RX_ENC_HT, 0, RATE_INFO_BW_40 }, + { 1350, 7, RX_ENC_HT, 0, RATE_INFO_BW_40 }, + { 1350, 7, RX_ENC_HT, 0, RATE_INFO_BW_40 }, + { 1620, 8, RX_ENC_HT, 0, RATE_INFO_BW_40 }, + { 1800, 9, RX_ENC_HT, 0, RATE_INFO_BW_40 }, + + /* 11ac reserved indices */ + { 1350, 6, RX_ENC_HT, RX_ENC_FLAG_SHORT_GI, RATE_INFO_BW_40 }, + { 1350, 6, RX_ENC_HT, RX_ENC_FLAG_SHORT_GI, RATE_INFO_BW_40 }, + { 1350, 6, RX_ENC_HT, RX_ENC_FLAG_SHORT_GI, RATE_INFO_BW_40 }, + { 1350, 6, RX_ENC_HT, RX_ENC_FLAG_SHORT_GI, RATE_INFO_BW_40 }, + { 1350, 6, RX_ENC_HT, RX_ENC_FLAG_SHORT_GI, RATE_INFO_BW_40 }, + { 1350, 6, RX_ENC_HT, RX_ENC_FLAG_SHORT_GI, RATE_INFO_BW_40 }, + + /* 11ac 40 MHz 400ns SGI MCS 5-7 */ + { 1200, 5, RX_ENC_HT, RX_ENC_FLAG_SHORT_GI, RATE_INFO_BW_40 }, + { 1350, 6, RX_ENC_HT, RX_ENC_FLAG_SHORT_GI, RATE_INFO_BW_40 }, + { 1500, 7, RX_ENC_HT, RX_ENC_FLAG_SHORT_GI, RATE_INFO_BW_40 }, + + /* 11ac reserved index */ + { 1350, 6, RX_ENC_HT, RX_ENC_FLAG_SHORT_GI, RATE_INFO_BW_40 }, + + /* 11ac 40 MHz 400ns SGI MCS 5-7 */ + { 1800, 8, RX_ENC_HT, RX_ENC_FLAG_SHORT_GI, RATE_INFO_BW_40 }, + { 2000, 9, RX_ENC_HT, RX_ENC_FLAG_SHORT_GI, RATE_INFO_BW_40 }, + + /* 11ac reserved index */ + { 1350, 6, RX_ENC_HT, RX_ENC_FLAG_SHORT_GI, RATE_INFO_BW_40 }, + + /* 11ac 80 MHz 800ns GI MCS 0-7 */ + { 292, 0, RX_ENC_HT, 0, RATE_INFO_BW_80}, + { 585, 1, RX_ENC_HT, 0, RATE_INFO_BW_80}, + { 877, 2, RX_ENC_HT, 0, RATE_INFO_BW_80}, + { 1170, 3, RX_ENC_HT, 0, RATE_INFO_BW_80}, + { 1755, 4, RX_ENC_HT, 0, RATE_INFO_BW_80}, + { 2340, 5, RX_ENC_HT, 0, RATE_INFO_BW_80}, + { 2632, 6, RX_ENC_HT, 0, RATE_INFO_BW_80}, + { 2925, 7, RX_ENC_HT, 0, RATE_INFO_BW_80}, + + /* 11 ac reserved index */ + { 1350, 6, RX_ENC_HT, RX_ENC_FLAG_SHORT_GI, RATE_INFO_BW_40 }, + + /* 11ac 80 MHz 800 ns GI MCS 8-9 */ + { 3510, 8, RX_ENC_HT, 0, RATE_INFO_BW_80}, + { 3900, 9, RX_ENC_HT, 0, RATE_INFO_BW_80}, + + /* 11 ac reserved indices */ + { 1350, 6, RX_ENC_HT, RX_ENC_FLAG_SHORT_GI, RATE_INFO_BW_40 }, + { 1350, 6, RX_ENC_HT, RX_ENC_FLAG_SHORT_GI, RATE_INFO_BW_40 }, + { 1350, 6, RX_ENC_HT, RX_ENC_FLAG_SHORT_GI, RATE_INFO_BW_40 }, + { 1350, 6, RX_ENC_HT, RX_ENC_FLAG_SHORT_GI, RATE_INFO_BW_40 }, + { 1350, 6, RX_ENC_HT, RX_ENC_FLAG_SHORT_GI, RATE_INFO_BW_40 }, + { 1350, 6, RX_ENC_HT, RX_ENC_FLAG_SHORT_GI, RATE_INFO_BW_40 }, + { 1350, 6, RX_ENC_HT, RX_ENC_FLAG_SHORT_GI, RATE_INFO_BW_40 }, + + /* 11ac 80 MHz 400 ns SGI MCS 6-7 */ + { 2925, 6, RX_ENC_HT, RX_ENC_FLAG_SHORT_GI, RATE_INFO_BW_80 }, + { 3250, 7, RX_ENC_HT, RX_ENC_FLAG_SHORT_GI, RATE_INFO_BW_80 }, + + /* 11ac reserved index */ + { 1350, 6, RX_ENC_HT, RX_ENC_FLAG_SHORT_GI, RATE_INFO_BW_40 }, + + /* 11ac 80 MHz 400ns SGI MCS 8-9 */ + { 3900, 8, RX_ENC_VHT, RX_ENC_FLAG_SHORT_GI, RATE_INFO_BW_80 }, + { 4333, 9, RX_ENC_VHT, RX_ENC_FLAG_SHORT_GI, RATE_INFO_BW_80 }, }; int wcn36xx_rx_skb(struct wcn36xx *wcn, struct sk_buff *skb) From patchwork Sat Aug 29 03:38: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: 248673 Delivered-To: patch@linaro.org Received: by 2002:a92:5b9c:0:0:0:0:0 with SMTP id c28csp1602383ilg; Fri, 28 Aug 2020 20:38:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyge86iTPQiA5dD4A1RILG2heFZRlHHluQAWJZYiXfirLh7B+NicugxeCXfz+a34ONHd0S/ X-Received: by 2002:a02:cbc7:: with SMTP id u7mr3986672jaq.74.1598672295932; Fri, 28 Aug 2020 20:38:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598672295; cv=none; d=google.com; s=arc-20160816; b=Pu7R6EG2kbVfvuOtia1kSyh7/x9SGZtfiJPMAgezeW6n/A9JNYb7YA0coXF4cwjzjU ReLdaIWvnKUN1t2i6ubPP3SYFlargJIuKk7POp4Uz+vBYzIszoC2HV2ywsPCC/gW3TzO kDN9TnEUlr5jMcEm+CJj4bRayt0N/2SZPSOER26MP0ewuZpuBzVe8Hv6uyLdRSRRHqFH xgJKNw6RHhQNFPoU3Bq36Uedc1cFVrurQCD3QijEbpE+irXi3kPcuVWaFBgsuh08ZMjQ PX+36BkPodksKUOzS3eQckNQjchWW2lClaYjEXVPa4FJyfAJe8ezgAk5Q2DgmBI56EVD Jz2g== 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=rN+z6NzdK6xIN6AbvEfETzjCvRNqbcBkSdTL1Dgfvwg=; b=0bv2Fyb0i1UdgbMCinu4qTcaTM9RlPonZbdTEYolUXf9LRoL4/A5vJ/vwlI6RbO1jj QrE7Kcb3VpP/AnuLz9gMbboqYBeVkGQFPAHYUhcUSWYd1bZU12hx4PTUpSYbDTRKRYlz BvLunO9ZL2UYVjTkcUpv2uY5EJRQ4uyX4/uRi+/mFmglbBCX0wG4YK617mZNVCPeE+w7 v9cxifEYsFVMgNs8xR0KFoawQCCkQEDQ6QiezlKq01NnJEv2S4t3zgY6xPS6UjXBsn86 duvrXlHwG0U83uEPho4jl1El4h27aBe4dNw3S3jD4Vc8Rg1FiU6umvZDREYjG9mMc8WW x3KA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lists.infradead.org header.s=merlin.20170209 header.b=ufeSU6NP; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b="BTOXWD/U"; 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 l9si994417jaj.48.2020.08.28.20.38.15 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 28 Aug 2020 20:38:15 -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=ufeSU6NP; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b="BTOXWD/U"; 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=rN+z6NzdK6xIN6AbvEfETzjCvRNqbcBkSdTL1Dgfvwg=; b=ufeSU6NPMznpnW+TXV6b9Z6nV gsoyl1khE+6Vfb6jjiksoNr2p++iD6e/XnWxSgWYIurdl/GU6Xln4jfCspLceOztB8uUxQaZQpoCT MwXZy/ewSis7AicFUfhg/YCkwXhBx/Qu9FrkDIM+Xj3Clu3QZBZ2E6Zju+t0yaY72Lq6oQBv7gWux wLZBis1AgIaooAaOIWGG46B7zT4vpw8UY7P6wISUMOXFt+fXkO78o6HsQrSzf9rcW5l6l0/y8oSof qHigIEh/bP6wyuvuOFxLoSheHPWcvB5Uzv6AjlTrtS79ZnCAE4uvscHcvvOAyehwAVAbjmkZDCYaS tBgviqOwQ==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kBrgy-00028m-GT; Sat, 29 Aug 2020 03:38:12 +0000 Received: from mail-wr1-x443.google.com ([2a00:1450:4864:20::443]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kBrgv-00026e-Ba for wcn36xx@lists.infradead.org; Sat, 29 Aug 2020 03:38:10 +0000 Received: by mail-wr1-x443.google.com with SMTP id w5so867316wrp.8 for ; Fri, 28 Aug 2020 20:38:09 -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=rfxnSLFpws95ZzTiN2qtFlrCYz6/oakRsVyvq/HcoY4=; b=BTOXWD/U3EBW10PEULQgKuppUzxzpqwMLd1PFkYrGZxjdvFELVtGb6a095Ep6a3G0O 6zY6dna0rwjkqN0qJs+yA1Qb3qTuhwztHV0FIR+Wg1R+JusLIbtZsdBESwvjt1aI6Ep5 mdaEHRKUAbWNKihjqS/4omaemGaGzKHHDMuLDztE1+CN66qn0cJAkLujj+W7qv8zmtvF YLymhRAAIGnHoB6NC7hYym9FrUQlaYslPMrDoNfUojEqdJ7/PvrPKaiqBgWpMz8pmbMw cb7HgdSu2eygYcgKX/9B26oeSjODezaHp6OlAaHUVs8dN/kyVjUE6Ql0KmVs0GQ61wgO GKZA== 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=rfxnSLFpws95ZzTiN2qtFlrCYz6/oakRsVyvq/HcoY4=; b=cYJPPIwq4mjj69lVFdiP0cbE6ATJ5opA++V1fbcy3dv1KQ+x1YN4+DhpVEGkj3qy0D b5zS55FPV2bwInyNLxF62tfzcwk2bOAUyjhP1MaxjvkU9N0x+W3WcODMaTsl2o5lfL37 wJuwjD3uATk9XFhajJC7b/+Z93Yd9Ehp7XAiVYJ4ReaysMpZI752qP84g26KJkx9UVSi N6PSgzdfz2UTsQfjwYsDKoKbTdqT79RYTPRT7Bvbx0KeH5J/spORp03zrPCKEAsG1ng8 86A1beqYS7JNszbEspbEiDn2Wcb/F5WKD09OuCXTF5dvx7AUxpsx2dPzB04NqmFbdPa2 29UA== X-Gm-Message-State: AOAM532Dl93FAFVX9WzBk+LBQGC/8TN5G32AQoSdc3EWYm1efpinpfad RL+d7+uRqgLv6RhIS96AZLpX/A== X-Received: by 2002:adf:f507:: with SMTP id q7mr1708154wro.343.1598672288484; Fri, 28 Aug 2020 20:38:08 -0700 (PDT) Received: from localhost.localdomain ([176.61.57.127]) by smtp.gmail.com with ESMTPSA id v29sm1827545wrv.51.2020.08.28.20.38.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 28 Aug 2020 20:38:08 -0700 (PDT) From: Bryan O'Donoghue To: kvalo@codeaurora.org, wcn36xx@lists.infradead.org, linux-wireless@vger.kernel.org Subject: [PATCH v2 05/10] wcn36xx: Fix warning due to bad rate_idx Date: Sat, 29 Aug 2020 04:38:41 +0100 Message-Id: <20200829033846.2167619-6-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200829033846.2167619-1-bryan.odonoghue@linaro.org> References: <20200829033846.2167619-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_233809_452039_01D94670 X-CRM114-Status: GOOD ( 13.83 ) 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:443 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 From: Loic Poulain The rate_idx is the index of the bitrate in the supported rate table. However the 5Ghz band has a smaller legacy bitrate table than 2.4Ghz since it does not have the DSSS bitrates (1, 2, 5.5, 11). So in 5Ghz band the index should adjusted accrodingly (-4). Signed-off-by: Loic Poulain [bod: Made sure fix is only applied if the rate_idx > n_bitrates] Signed-off-by: Bryan O'Donoghue --- drivers/net/wireless/ath/wcn36xx/txrx.c | 9 +++++++++ 1 file changed, 9 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/txrx.c b/drivers/net/wireless/ath/wcn36xx/txrx.c index 80e96c2296af..05a84f82584c 100644 --- a/drivers/net/wireless/ath/wcn36xx/txrx.c +++ b/drivers/net/wireless/ath/wcn36xx/txrx.c @@ -230,6 +230,7 @@ int wcn36xx_rx_skb(struct wcn36xx *wcn, struct sk_buff *skb) const struct wcn36xx_rate *rate; struct ieee80211_hdr *hdr; struct wcn36xx_rx_bd *bd; + struct ieee80211_supported_band *sband; u16 fc, sn; /* @@ -270,6 +271,14 @@ int wcn36xx_rx_skb(struct wcn36xx *wcn, struct sk_buff *skb) status.enc_flags = rate->encoding_flags; status.bw = rate->bw; status.rate_idx = rate->mcs_or_legacy_index; + sband = wcn->hw->wiphy->bands[status.band]; + + if (status.band == NL80211_BAND_5GHZ && + status.encoding == RX_ENC_LEGACY && + status.rate_idx >= sband->n_bitrates) { + /* no dsss rates in 5Ghz rates table */ + status.rate_idx -= 4; + } } else { status.encoding = 0; status.bw = 0; From patchwork Sat Aug 29 03:38: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: 248668 Delivered-To: patch@linaro.org Received: by 2002:a92:5b9c:0:0:0:0:0 with SMTP id c28csp1602400ilg; Fri, 28 Aug 2020 20:38:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwe+JjBcBrsRla/FfDP8DyZTJlQQQCl6mn/t3EHHpAxTQc89xsUlM4j5nOipG6ZZ/tXBh4w X-Received: by 2002:a92:c502:: with SMTP id r2mr1588954ilg.223.1598672297244; Fri, 28 Aug 2020 20:38:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598672297; cv=none; d=google.com; s=arc-20160816; b=kz/FDt8N2PtTwdeuP0fW1Tm5e25qaZbmABFzgVQDY63xjMEE5v9tIN8WeynFf+QTVy JrxH1xlpTYtySAzMj1jXSY6ZOmwBuFA/bI71dVWsZwAy8rvaUoVInfcQPTV2gf1I2xh4 HIZcyLKlGeBcw3PVp2zJ8fM6DbwmXyGV2hHxQv86WhlJOvdyO2Ke7JkH2KBw7NIvzUOG WRPFvLB7OBTMfSLsffq3YinlkcQfFhUO83Kz+TTXNjKfqISI5W1k2BX0kBZMo7AwWfTC jFRfBXajjMfxr1tlpLutDM8+FisXhGu41ZnLORhboKqNlg4TYJgjF+BLrVWqxwD7MB3K CcSg== 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=jlHjaTKGw3XPwLRXFkchpVknFmMKJiegSteokpUvfUY=; b=grA2CkV+Att5CoRoaI0l7v/Z/5keKFhyWy40C16nXXE4Grlk9MCE6HMvaNMbs05OTA SDGXGoiP76cp82at3suIy5JoWcxWX6K6GQT5MK3O5STBEiBO+PcQG0Sc+Q1fNGhnIAAb lbsHuDK+WBn5VzlyotsEOA+Y7RjwfYxUvLgRmb6C6xHOBgCc13OLY2kt3DF/biTE7S8I 1pfbejLhxU9Js7V5lVuQCrWvLzkYYiHJikySCI43wv0/Egb4h6eY9B1eJByflWsqbAzu 0bqlbJxxEKnLdbHsUz6Key1h0VN9nZtGX/Ydk6Yq38AciImLuAhAuhKrVVcLNzgOzM/O 9E/Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lists.infradead.org header.s=merlin.20170209 header.b=Df82vhSR; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=IMCX8icD; 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 s9si2067448ioe.75.2020.08.28.20.38.17 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 28 Aug 2020 20:38:17 -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=Df82vhSR; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=IMCX8icD; 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=jlHjaTKGw3XPwLRXFkchpVknFmMKJiegSteokpUvfUY=; b=Df82vhSRd0z3Jv5RZadnz8Hwv viMQnG+BbEcFPZzP9DbkzD6VO3RAX5ThO1Nvn7h37LV81m/24WCPIpjU7kWm2aAnB9MB2PPw7D0Lc BfxviJBTw8VmLWU6syWF3mYeE4p3kpneEvBx+sgklkjBHdFH8dOCji9BHX8XB7IVwEIH6mMfyq6Io bmgMLimjRA0ZUgQlPTeeQm4SWwew8Rj/B9wp22c9ghGHXv0xuwSdhY0N96Jwpu4FAMP+QZKMQflra lGrMVJFuecnNL6SlITpkXzsfMAUolERfhsmiymzCtN1MltntFxBDxo7krQ/aeGUIRAfH/1mRnHOul rreKwl9nw==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kBrgz-0002A0-Tj; Sat, 29 Aug 2020 03:38:13 +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 1kBrgw-000275-Ih for wcn36xx@lists.infradead.org; Sat, 29 Aug 2020 03:38:11 +0000 Received: by mail-wm1-x344.google.com with SMTP id s13so870490wmh.4 for ; Fri, 28 Aug 2020 20:38:10 -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=3ombPAKmNa4Z6zut9RJcKKY/F0yxtyCaqxLuyUzdePk=; b=IMCX8icDForxzG9FE+bBTFQyGhkCMFVE0MKRM+c5KrhIacr5VdhHjw8tWi6LwK6qdB rzaRms0G/00jSp4Sbx0ZrGMa2lEfxUQJVQ+SJ/G0t2wwGePXX4QfhQcU+3Nrcp8seegt r+YEsTwJXHGWCtEy244gzhoBGDPvcQOPtnMSC3dIDLnb3mUdwwiNAysSiT0XyyGiHcYx MSsp9loY2yFCfZO71WSazI7pvwLHQEFzgv21ZFROQyyEwFY4OHjFVg+7OMMFeHEIvg8p boo0p2o7Srsh71HEE6V7O83aPfvyuhgfRf6HgUMBHs5AJO/8eZ5fvF/ZoUqcUYYZCjJW Gxww== 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=3ombPAKmNa4Z6zut9RJcKKY/F0yxtyCaqxLuyUzdePk=; b=iUZXEghsRZHAAqqjOf/kHhq5aT9oGlcxVt1i9MjQ/KMCg8TqX/b1xvWpHAenwF77qg tcPwvXzmvdhBrMhYSrSUqn4DIKHzSZxHOy1Yry7HOXASV0GNRu0VoIHHcg4PBDvWa8bp XsZGpoqqPjeVmjKHK+orv7wGY+x9nFsgi2+4L4WTvCOOKiIF9yCq3h0GAuekdFkmF7+g Jp+vVmVxMqHhCSfEWOqSNnlIQChV3YixVfJILXYQ5d8s8FMh9WtNQOSanf0108a87JpL 0hqI9tEinYY1DZVAL4PSw+enx1rfNzZ4AbfWyz7dx3htSNoxaRr2IKx2cUHLf9fAjI/j gYGg== X-Gm-Message-State: AOAM532VkI3Xi+bSGDmh0BuGN1Uvzj2raCoBugmu+O5CoYWyzF+zZweC wYfEtx++Nf1vIRh8GJ1Mbb8onQ== X-Received: by 2002:a7b:c116:: with SMTP id w22mr1509152wmi.149.1598672289482; Fri, 28 Aug 2020 20:38:09 -0700 (PDT) Received: from localhost.localdomain ([176.61.57.127]) by smtp.gmail.com with ESMTPSA id v29sm1827545wrv.51.2020.08.28.20.38.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 28 Aug 2020 20:38:09 -0700 (PDT) From: Bryan O'Donoghue To: kvalo@codeaurora.org, wcn36xx@lists.infradead.org, linux-wireless@vger.kernel.org Subject: [PATCH v2 06/10] wcn36xx: Specify ieee80211_rx_status.nss Date: Sat, 29 Aug 2020 04:38:42 +0100 Message-Id: <20200829033846.2167619-7-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200829033846.2167619-1-bryan.odonoghue@linaro.org> References: <20200829033846.2167619-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_233810_714738_5EA79A2D X-CRM114-Status: GOOD ( 12.10 ) 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 Specify the number of spatial streams in ieee80211_rx_status. For non VHT data-rates the wireless core doesn't care about this field, however for VHT data-rates it does. Every version of wcn36xx has one spatial stream, so specify nss for wcn3620, wcn3660 and wcn3680 now. Signed-off-by: Bryan O'Donoghue --- drivers/net/wireless/ath/wcn36xx/txrx.c | 1 + 1 file changed, 1 insertion(+) -- 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/txrx.c b/drivers/net/wireless/ath/wcn36xx/txrx.c index 05a84f82584c..903b47b55728 100644 --- a/drivers/net/wireless/ath/wcn36xx/txrx.c +++ b/drivers/net/wireless/ath/wcn36xx/txrx.c @@ -272,6 +272,7 @@ int wcn36xx_rx_skb(struct wcn36xx *wcn, struct sk_buff *skb) status.bw = rate->bw; status.rate_idx = rate->mcs_or_legacy_index; sband = wcn->hw->wiphy->bands[status.band]; + status.nss = 1; if (status.band == NL80211_BAND_5GHZ && status.encoding == RX_ENC_LEGACY && From patchwork Sat Aug 29 03:38:43 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: 248669 Delivered-To: patch@linaro.org Received: by 2002:a92:5b9c:0:0:0:0:0 with SMTP id c28csp1602414ilg; Fri, 28 Aug 2020 20:38:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyelQJ4FijAv92N/GPUI4uo+T/qFurNtOyAc3oSN5TJ9BWR87Gb8Uhand1BQsXzS8EiGiPV X-Received: by 2002:a92:c8c1:: with SMTP id c1mr1540365ilq.175.1598672298512; Fri, 28 Aug 2020 20:38:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598672298; cv=none; d=google.com; s=arc-20160816; b=IPfXIIY2kOCIKs9clTSKHpgRwOs2COYANL1l4z9VwgmI2EbjeN432XCcEL6pGwbgsS 3DgiEbhBr69AF9dQILi+yU0iVvUt83GZVoYSwnOLQYmaaJd0w9bOvaLU7xnPuuIgNbPb v0TIiv8Rdi2sfdErY/kncg5BE6fLTNvZ5vRw9GkqYhGneiVlU2Io/SdKIqddf3rE3qNd 0ylHf5rwvGLA9OCe9RiGBfQ0whPU5lXm3QaKdeu1a3NJYSzEqEd5Rh2xats4iy1ym8df 1Gpq3Z2ZljGqcjFM9ylJ7EPU2L0OzGLnnahvjwCZMaZveaTmDAJfmJ7GHbKHQREKA8NK twMg== 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=WY6A+XQuy8zBDJ0nwB/ScPjgIkWqjw3/JwYbgbf4aDM=; b=yvtA6heEiKUbHggBE30cm/HkbJ47DpIqUSmiQJWoGel2MQgjdQrAz97aJZnyR5jVbP wXhnoOq1zm8/CnZPtn224VB3r5XatrzkAbEFdwlYtHh36nQ6MHCNQZ3XuiW+eICoBE8n wDx71h4Kj/0j9zKjoj+o14tkkCxzH/Qbjw8O/GL9AzPU6TndPU9DXiDD/oN8sacrCi8c AGhtuLGBqsd2XMEFEPXwJZJHEnbJ/mt6VSskC9lg1znqruLP66UQLKMwakz/svm4qCYx pED1WwmRfu76ViTQ23Lj3feHYhA7JSCv/t0cj2xfVI98ADW2uwB5vYYwWgI+/1GcHOSX 8m/A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lists.infradead.org header.s=merlin.20170209 header.b=Khdk0eCx; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=vvG6htBB; 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 r10si1130377ilg.84.2020.08.28.20.38.18 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 28 Aug 2020 20:38:18 -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=Khdk0eCx; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=vvG6htBB; 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=WY6A+XQuy8zBDJ0nwB/ScPjgIkWqjw3/JwYbgbf4aDM=; b=Khdk0eCx1Cf0aA398nzdqI2dO IQnSvFrr94qCV5VM6fdj/L9Qn9KY3oSrBwA3HFuneLKo/MTDIT5Qf9hreC+SIKVnSsellxJ7Ze/AN /b6H0qUKAy6DFnODxKlTMmmOKcJ8ln322H2eW9xe8wWVzbbEiFiRy5okbyHi4D5AjwVeA7OHssx6W H3YvjZBZWP+9rqSmBtacovoVgwWmfNVXR33UnCyW0fVrivXQYDM4Tvx/Y9sKnFRGnYAcR1c013V2s Cqvo5Tt46h1DMYHoZKgLYDByZZoi4WOkfvpcVQluDo6ur9KF/EGHZ4Q9yXg1eGwpk5oRrRP83EQX0 dLiW+ND/w==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kBrh1-0002BC-IT; Sat, 29 Aug 2020 03:38:15 +0000 Received: from mail-wr1-x444.google.com ([2a00:1450:4864:20::444]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kBrgx-00027l-Pf for wcn36xx@lists.infradead.org; Sat, 29 Aug 2020 03:38:12 +0000 Received: by mail-wr1-x444.google.com with SMTP id w5so867352wrp.8 for ; Fri, 28 Aug 2020 20:38:11 -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=x14bAIQMwOQ/wd1IM8KwbT5bU9D+bQ8R4vcYDwgbN5g=; b=vvG6htBBheLhm1ujXdXNj0loUhvt/Xo9DHfkOqPTTdzFQBlyza61Q/FdBGhBCfB0bF SYVFOMH1wVjVtek7wzr+jY326+atNrg1iRqvnX1TAGjKvczHgR+tQoce/DuHvbaPXYHq B6TghRyXDsKUnLvgopI4f1UA/KYsof9ZK9awUTqL+kUT9bRgbBol1aiz+SGHts230k/l N3CBORCoutU435tD5Z/GBOaNHq8dPWj8sQWIXvq+67S9n+XEgZVsvjF3+mSxr6NQDYz1 BD8GkP1zF1C5aNmniy7J51RsceFN5sccwGPighaL68EF5Ur+M2iFEk8mQ11JVamU4xxq jXMA== 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=x14bAIQMwOQ/wd1IM8KwbT5bU9D+bQ8R4vcYDwgbN5g=; b=WiNbXHT8UX8JbtTbihskgBN4vBS94eXf+8IQtF27w3cpPG0RK4XG8BquwCXYIUihIc nPdbn9zutVEZsHm6+RiNcb/LouW43sKGWcvcuTEAvdM9DZ4nkJcqBYiUvdEK+NIb5D1p aPtAqJJgnpeu/OqskSZkraoWdROm/4YB5pg+ySrrCGhb01ZBVMT/zmOCeLixGIFOqhXv MjUOeiueHJ/sUpKHVxKtVqxA/4XxYTuFw92a4kDwrLEZlM8tde7VuZ65625XSXu5j2bT n6BI/5JygNzp3otKAYBpp/gd2+cKSwtoM37CfuXqXRyZNt1fsu+060umlNZkvSUAb1UE yb/g== X-Gm-Message-State: AOAM533gUzJJdiTLUiyRsBes3JRb7bXAogfdjKZsjECcSngpsaChZuvz 9ywHnJNENT96Tgz0vZhXHiCxAw== X-Received: by 2002:adf:fcc5:: with SMTP id f5mr1700858wrs.126.1598672290496; Fri, 28 Aug 2020 20:38:10 -0700 (PDT) Received: from localhost.localdomain ([176.61.57.127]) by smtp.gmail.com with ESMTPSA id v29sm1827545wrv.51.2020.08.28.20.38.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 28 Aug 2020 20:38:10 -0700 (PDT) From: Bryan O'Donoghue To: kvalo@codeaurora.org, wcn36xx@lists.infradead.org, linux-wireless@vger.kernel.org Subject: [PATCH v2 07/10] wcn36xx: Add 802.11ac HAL param bitfields Date: Sat, 29 Aug 2020 04:38:43 +0100 Message-Id: <20200829033846.2167619-8-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200829033846.2167619-1-bryan.odonoghue@linaro.org> References: <20200829033846.2167619-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_233811_877892_FB15E1D8 X-CRM114-Status: GOOD ( 12.07 ) 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 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2a00:1450:4864:20:0:0:0:444 listed in] [list.dnswl.org] -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 patch enumerates four previously unused bits in wcn36xx_hal_config_sta_params_v1 describing - HT LDPC enable - VHT LDPC enable - VHT TX BF enable - VHT MU Beamformee enable Signed-off-by: Bryan O'Donoghue --- drivers/net/wireless/ath/wcn36xx/hal.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) -- 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/hal.h b/drivers/net/wireless/ath/wcn36xx/hal.h index 30476f857d23..c7661fb50c10 100644 --- a/drivers/net/wireless/ath/wcn36xx/hal.h +++ b/drivers/net/wireless/ath/wcn36xx/hal.h @@ -1515,7 +1515,11 @@ struct wcn36xx_hal_config_sta_params_v1 { u8 p2p; /* Reserved to align next field on a dword boundary */ - u8 reserved; + u8 ht_ldpc_enabled:1; + u8 vht_ldpc_enabled:1; + u8 vht_tx_bf_enabled:1; + u8 vht_tx_mu_beamformee_capable:1; + u8 reserved:4; /* These rates are the intersection of peer and self capabilities. */ struct wcn36xx_hal_supported_rates supported_rates; From patchwork Sat Aug 29 03:38:44 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: 248670 Delivered-To: patch@linaro.org Received: by 2002:a92:5b9c:0:0:0:0:0 with SMTP id c28csp1602425ilg; Fri, 28 Aug 2020 20:38:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy0VIKqrBwNXb4+3+2E0toitBCrKOcf0cTXBy1dlqTbjUG6d5AStNPPombOPTC55YT051+H X-Received: by 2002:a05:6638:1685:: with SMTP id f5mr3952780jat.48.1598672299396; Fri, 28 Aug 2020 20:38:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598672299; cv=none; d=google.com; s=arc-20160816; b=j9bQwnB6Sglp4zoK7vueWrOb8zd/V+vy0v/MNvzGLANSOHIBSx4R9i/KyUzE5S4aMW w7MyzHCRMLv6mxiV1VECeJ0Qi8CG2sW5v+m9CDiUzOBlocuE24jlZyMOJOuP1TL8iido KccKEJRGx6jp7GLAGsjQAbHNrGJ6OYNQiUC37EA1EIGua5JRFRtLdxFzP7C8nqk7a1RN /ubfzxrRsZv6g5oTDb5AtjC7S1PN4Fwh3vl2onYLAC2OtvZo4G0AG2NEWiz19tssIfkK ameTNv0xYGV90uAO/MpO8BuEnxocqxinKIOcbbYgUSomYqCqTeg5qh7DkFShcNyACAk/ tR5w== 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=gHqQDN5IxrvJjBLiAnLnro0T+QurMeVLyTG0lkRsIQI=; b=vPrwJY3zCFmXeG2d9R9YI/4pE67djxsbHwspO/JsnLB8JK8Zdzwk9Dl8Pebh1iPywu OdpJIXKCrUWEnCzm79Ac48oEEjP4gwrV+M05bCOFUnhu/LCmgVuu5JjyYq9I9Lnp4aJQ pVg/qzYTAz9FyFajSmM/9fplf96uBiH/c2/Q9Vp0jPgc4ZIlQVM8cTJ6hLpfBKtf/gAk DyREgZCaivtwKTAea3BCHDLJQPjqpb8udVRQqoTt4knIjqPiypXg7uDbzpz100Dhb4ZZ ZovbNrGe0ImtY+SWPvD5zPJPkZbLn1xBUNbxZc2LvjB2rDaGS2t96ciJ/BX3Imw/HoG9 G9UA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lists.infradead.org header.s=merlin.20170209 header.b=EixrOi48; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=kv5UYtoW; 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 y8si1059895ilj.140.2020.08.28.20.38.19 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 28 Aug 2020 20:38:19 -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=EixrOi48; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=kv5UYtoW; 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=gHqQDN5IxrvJjBLiAnLnro0T+QurMeVLyTG0lkRsIQI=; b=EixrOi48NqlzCeSD8VrvCd65F SvL/PFAS37G7QZ070ZKG+ah3LOV7JpG5kxz8g3FA2L9FcGO0ZebCidtNNb8w2ltNz9UyKYiJtympY gXQrK8NqQqagw5iACYBQjLcU2+QZawBVttze+LAzUWByexol7DJY2DoruTTyWSBBt14TzQVGsXb0d SV/H5x5Q0hvsvoyd0aqvSQSCWtZiH53IOR2KdlSky7fX2g/o6UE+kghcaCkk+JjgnKKhj7PV6qTrc dYFradXwV23mJWSr1CoSyNBwQXOVdThHRyENaMTqrFLQewfRnzel4DJzCYmococ4c5xx3g4ELqikQ HnEYNckBQ==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kBrh2-0002BV-48; Sat, 29 Aug 2020 03:38:16 +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 1kBrgy-00028C-IU for wcn36xx@lists.infradead.org; Sat, 29 Aug 2020 03:38:13 +0000 Received: by mail-wr1-x442.google.com with SMTP id b18so872111wrs.7 for ; Fri, 28 Aug 2020 20:38:12 -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=OrUSz+1vWHM3urmxg+gRDOL5sDh0IwWl1lMxkmx+/w8=; b=kv5UYtoW73TpFJamx3FmTdr9yf22LZNZwnNzYkMmBwJTDzwSmbUuqAWF4t0seCeyIa qILTgixj8EVNwAIyIZ9kQJuW2uKUnx6oH4KChF/ude7m79fvzPzgSiIQxyJfhFnw+amh 4drFrrVFXTgru/A88Tdf773cW7usGhnDbln2JQv1+T5lhwJjMMsGDvdeZymBIyHNqzCR f6IRRndbGe98Zo0/yprgfwXcB73xcID0UV4gRLMjlZ49V54TsZzZeJzo+XVXctl2A61u RdGZQkzR/36FB6x/FXiHcN87nYj9yKxXoCVhQCF3KfEUNBLRdVnvtb9Nb2HwiCE0uMYJ UXJg== 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=OrUSz+1vWHM3urmxg+gRDOL5sDh0IwWl1lMxkmx+/w8=; b=WvLjs+BnpyA69zENdyGwi225DyZVpXq5rtSebB8t7AneA+iciwwNKEtoB83R595op3 jE/jQU6081oA02rRebpeg1J1IBUh9zee0dahZSLLfqqKe3i0bZmGSd4036ufZLEkaND8 rVW73+VjCzi+oooUGn0fOiS4m3fq+x3pKLNZN8phqTXKZBT3HxL76RsjHuz0xeLh33w6 jd+JWefri81HNx4aBkVBabljWmS9EgfAAtlqrAf5GqIgylslhbohIvIWjEnn6GSue3Bs 1IYrO1Hyzr/pbfjoDfTNUvp1ZFRPSuORooP3NHDCjCyaqQcYa81VPvqKFdJIaHWe+3Nb YTYQ== X-Gm-Message-State: AOAM53236tTQ8Gv+QNuRi8O9muGxGC3IANNohN4oZ+ThENainwxe/Ah1 fENsfrtY2LGUmvvaIFnTIbEr/Q== X-Received: by 2002:a5d:4352:: with SMTP id u18mr1752280wrr.239.1598672291473; Fri, 28 Aug 2020 20:38:11 -0700 (PDT) Received: from localhost.localdomain ([176.61.57.127]) by smtp.gmail.com with ESMTPSA id v29sm1827545wrv.51.2020.08.28.20.38.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 28 Aug 2020 20:38:11 -0700 (PDT) From: Bryan O'Donoghue To: kvalo@codeaurora.org, wcn36xx@lists.infradead.org, linux-wireless@vger.kernel.org Subject: [PATCH v2 08/10] wcn36xx: Add Supported rates V1 structure Date: Sat, 29 Aug 2020 04:38:44 +0100 Message-Id: <20200829033846.2167619-9-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200829033846.2167619-1-bryan.odonoghue@linaro.org> References: <20200829033846.2167619-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_233812_714435_DB826A7F X-CRM114-Status: GOOD ( 15.69 ) 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_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 the supported rates V1 structure as defined in Prima riva/inc/wlan_hal_msg.h Signed-off-by: Bryan O'Donoghue --- drivers/net/wireless/ath/wcn36xx/hal.h | 70 ++++++++++++++++++++++++++ 1 file changed, 70 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/hal.h b/drivers/net/wireless/ath/wcn36xx/hal.h index c7661fb50c10..573799274a02 100644 --- a/drivers/net/wireless/ath/wcn36xx/hal.h +++ b/drivers/net/wireless/ath/wcn36xx/hal.h @@ -1413,6 +1413,76 @@ struct wcn36xx_hal_config_sta_req_msg { struct wcn36xx_hal_config_sta_params sta_params; } __packed; +struct wcn36xx_hal_supported_rates_v1 { + /* For Self STA Entry: this represents Self Mode. + * For Peer Stations, this represents the mode of the peer. + * On Station: + * + * --this mode is updated when PE adds the Self Entry. + * + * -- OR when PE sends 'ADD_BSS' message and station context in BSS + * is used to indicate the mode of the AP. + * + * ON AP: + * + * -- this mode is updated when PE sends 'ADD_BSS' and Sta entry + * for that BSS is used to indicate the self mode of the AP. + * + * -- OR when a station is associated, PE sends 'ADD_STA' message + * with this mode updated. + */ + + enum sta_rate_mode op_rate_mode; + + /* 11b, 11a and aniLegacyRates are IE rates which gives rate in + * unit of 500Kbps + */ + u16 dsss_rates[WCN36XX_HAL_NUM_DSSS_RATES]; + u16 ofdm_rates[WCN36XX_HAL_NUM_OFDM_RATES]; + u16 legacy_rates[WCN36XX_HAL_NUM_POLARIS_RATES]; + u16 reserved; + + /* Taurus only supports 26 Titan Rates(no ESF/concat Rates will be + * supported) First 26 bits are reserved for those Titan rates and + * the last 4 bits(bit28-31) for Taurus, 2(bit26-27) bits are + * reserved + * Titan and Taurus Rates + */ + u32 enhanced_rate_bitmap; + + /* 0-76 bits used, remaining reserved + * bits 0-15 and 32 should be set. + */ + u8 supported_mcs_set[WCN36XX_HAL_MAC_MAX_SUPPORTED_MCS_SET]; + + /* RX Highest Supported Data Rate defines the highest data + * rate that the STA is able to receive, in unites of 1Mbps. + * This value is derived from "Supported MCS Set field" inside + * the HT capability element. + */ + u16 rx_highest_data_rate; + + /* Indicates the Maximum MCS that can be received for each spatial + * stream. + */ + u16 vht_rx_mcs_map; + + /* Indicates the highest VHT data rate that the STA is able to + * receive. + */ + u16 vht_rx_highest_data_rate; + + /* Indicates the Maximum MCS that can be transmitted for each spatial + * stream. + */ + u16 vht_tx_mcs_map; + + /* Indicates the highest VHT data rate that the STA is able to + * transmit. + */ + u16 vht_tx_highest_data_rate; +} __packed; + struct wcn36xx_hal_config_sta_params_v1 { /* BSSID of STA */ u8 bssid[ETH_ALEN]; From patchwork Sat Aug 29 03:38:45 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: 248672 Delivered-To: patch@linaro.org Received: by 2002:a92:5b9c:0:0:0:0:0 with SMTP id c28csp1602440ilg; Fri, 28 Aug 2020 20:38:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwABwyE/XboNDsu3DdgSBSsTO3IEnU2UGkzdaxkJXu2Hr3W6rmKVFBVCTohIGRm2j5KaNCs X-Received: by 2002:a02:cce8:: with SMTP id l8mr3842252jaq.67.1598672300603; Fri, 28 Aug 2020 20:38:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598672300; cv=none; d=google.com; s=arc-20160816; b=ku1dAiYXl/6KUwD6KhseGcM9vAME8Dh7dsnJj6kS4go+Vq7bMmGC6dTsDLjk3XV6co E0s3O+XOVMf6i0Rt2t8O7O1p+WX2SlG/n+OUEi9MieC3raFZxML/ackmxv1utoxI95xe Z65VKWsuANHLwJIUs3SuxyrPhjk85YD675vrLWDaCZsdTIXPgjP6fojWy7oC0ktmIEoz B5f5HKXtiSAlyoNxf5NDPxmC2o0L16AiV1SquXG/JfiIRNHM/pVkxDdz4ZwL/K2keYib EbQ1xPY4kVcWiyqhbt0OsWBeYiCDAcY8KmBs2azmbpTIVTaZWpPPSiPRawc2oueh6XbV Gl2A== 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=wh4cZwzxv24hO1ZSjhp7anYP/B5vN6EmH2Yza/kvDU4=; b=tBJ/BQS8UUoC3RhLMlXilo3qQcIlswJsq0GY2YlOgrvHnrpXgxoovBNyISsxBMD64o H8LDnhYq39jLdjGDcDrOHVNeFBdPeOQpagcrE0QlEOCI6K1BJVM8TmDdPDEx88AYf2VJ ooBHwgUy9B09qSSUHlHaudVRKRXjXjCseaOZ/Sm7HvWw/i0P9ryQfUcpDUk42W1lv0bS JJj+ywqxUmHP6ChkUfxn3NZuID3d/5zEF5oG9KLIsTTDMB+p9S33+m4lF6hPAvRKuoYa wzqCQC2eQfYnU1B0FFcjVRSuw8fN+KKZFr4vio/zhFY++YfYiKsh1TaeoMN7NBqzA8b8 sqhw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lists.infradead.org header.s=merlin.20170209 header.b=hB54bS10; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=VXGiSsso; 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 g12si1596320ilq.1.2020.08.28.20.38.20 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 28 Aug 2020 20:38:20 -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=hB54bS10; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=VXGiSsso; 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=wh4cZwzxv24hO1ZSjhp7anYP/B5vN6EmH2Yza/kvDU4=; b=hB54bS101BNbcNid4nzSmWYEi qJkhnUA1MSQn6ntrphlBkZHvPJ88OUMnYynU1I0Nw2eHeO2THnlF9Zj43ZglwFoHXN/psp88EI6bc pJ8KZR6vH334yFXDPCEmG6XAh2OiaP/jDkboQLY3rxrdK8zODHPEVkVdpHUK4heJgwF/xwDGsCmLc d2aUzEMHEESDI0tljFM2yCvXkC6rVIuc79jsqCkrtnnMHfnrPk8mi1DF0GX2aEGw9fUPaUussunpJ d8lzl90w+MFeJ1ljR/U9c4KgRV1kICoefAGKx9QQfnQ8ToWgm+mIWvwFIAOgkFhrNlJOd8RU22jWk JJhj934wg==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kBrh2-0002Bn-IP; Sat, 29 Aug 2020 03:38:16 +0000 Received: from mail-wm1-x343.google.com ([2a00:1450:4864:20::343]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kBrgz-000298-Cj for wcn36xx@lists.infradead.org; Sat, 29 Aug 2020 03:38:14 +0000 Received: by mail-wm1-x343.google.com with SMTP id w2so887119wmi.1 for ; Fri, 28 Aug 2020 20:38:13 -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=snHNh5lKS2G0FTSISsFMGrkG2Oau7dqOyX8GcYHpHKE=; b=VXGiSssovhD85ZzX6cPZxqcb3woNczAD5mY0J+oiwZoAuDoFrqkaE/gWoQrtHpfTbY uY5tM+HqU58dWR523VrERY6qBdNRYW1oumhl4CwU3zdYj5pEn7Zj9zHj6UMLQA4jywgb ivl5GAEt1VrzfNN/nXTiT3ycxgD9AvsurXuB13mVqnWVhnOtTWRYzrJTweX3cblx6Grb LsHBeemlhHXc4xIZm1R1BPIJq5irfnKJyNpAwbQKdVJ/aFeqMDyidh0JsARITMbCohdD X6mZ7nYsCfeFs+atK7YFPeOKrLn3/j3AmbdC4md9tRwa/XlL2RWxCt+zP/Ckza2fk6TF 2fgw== 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=snHNh5lKS2G0FTSISsFMGrkG2Oau7dqOyX8GcYHpHKE=; b=anYQ5vzgaqDn1vVdmh7Fa/h27To6m/Zb4kpFTJQMZYBzHk/bzL5FC2aLDre8MFoWlm wyCuHz9l/akYQ//KLJRxHfUCPHs5dkgs869g98THHVZhklLSpIEhYI+QO6MOfDF+flci U3cU1Q7TCUiA/e4bitgRfQ8h1Pn2UzJ8A6VZAbyLKu5M+PUJuyaVUYAdhJevoylrgwLj EMRsdU8yEgJ/olpiqTbs16Bdb4Oftdr2/p64xQx+pL14D0yEhqUskkX4RJhyZxM+SC5B Qv2uMd0WPjN9yEIfdG85b9eoyQ2J2C3OLdKfTCqOiVK4DqbUshraEu5ohUb+qjogIqE1 k4xA== X-Gm-Message-State: AOAM531diqkGqfg5LqyJRIMH6gwOJ69mTt959xLO8OjSESTHb5FZ1a2X ZUCCIuqoyWQD4pxryqVB0nyQ9WZgZ9R9LxZG X-Received: by 2002:a1c:9a47:: with SMTP id c68mr1493787wme.33.1598672292408; Fri, 28 Aug 2020 20:38:12 -0700 (PDT) Received: from localhost.localdomain ([176.61.57.127]) by smtp.gmail.com with ESMTPSA id v29sm1827545wrv.51.2020.08.28.20.38.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 28 Aug 2020 20:38:12 -0700 (PDT) From: Bryan O'Donoghue To: kvalo@codeaurora.org, wcn36xx@lists.infradead.org, linux-wireless@vger.kernel.org Subject: [PATCH v2 09/10] wcn36xx: Use existing pointers in wcn36xx_smd_config_bss_v1 Date: Sat, 29 Aug 2020 04:38:45 +0100 Message-Id: <20200829033846.2167619-10-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200829033846.2167619-1-bryan.odonoghue@linaro.org> References: <20200829033846.2167619-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_233813_581423_FF7C5EA7 X-CRM114-Status: GOOD ( 12.22 ) 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:343 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 Two pointers are already defined in this function "bss" and "sta" which point to fields within msg_body->bss_params. We can substantially reduce the amount of extraneous text in this function by making use of those pointers. This change makes the code easier to read and modify. Signed-off-by: Bryan O'Donoghue --- drivers/net/wireless/ath/wcn36xx/smd.c | 110 +++++++++++-------------- 1 file changed, 47 insertions(+), 63 deletions(-) -- 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/smd.c b/drivers/net/wireless/ath/wcn36xx/smd.c index 92ae77523115..9490b1bf4e05 100644 --- a/drivers/net/wireless/ath/wcn36xx/smd.c +++ b/drivers/net/wireless/ath/wcn36xx/smd.c @@ -1299,87 +1299,71 @@ static int wcn36xx_smd_config_bss_v1(struct wcn36xx *wcn, sta = &bss->sta; /* convert orig to v1 */ - memcpy(&msg_body->bss_params.bssid, - &orig->bss_params.bssid, ETH_ALEN); - memcpy(&msg_body->bss_params.self_mac_addr, - &orig->bss_params.self_mac_addr, ETH_ALEN); + memcpy(bss->bssid, &orig->bss_params.bssid, ETH_ALEN); + memcpy(bss->self_mac_addr, &orig->bss_params.self_mac_addr, ETH_ALEN); - msg_body->bss_params.bss_type = orig->bss_params.bss_type; - msg_body->bss_params.oper_mode = orig->bss_params.oper_mode; - msg_body->bss_params.nw_type = orig->bss_params.nw_type; + bss->bss_type = orig->bss_params.bss_type; + bss->oper_mode = orig->bss_params.oper_mode; + bss->nw_type = orig->bss_params.nw_type; - msg_body->bss_params.short_slot_time_supported = + bss->short_slot_time_supported = orig->bss_params.short_slot_time_supported; - msg_body->bss_params.lla_coexist = orig->bss_params.lla_coexist; - msg_body->bss_params.llb_coexist = orig->bss_params.llb_coexist; - msg_body->bss_params.llg_coexist = orig->bss_params.llg_coexist; - msg_body->bss_params.ht20_coexist = orig->bss_params.ht20_coexist; - msg_body->bss_params.lln_non_gf_coexist = - orig->bss_params.lln_non_gf_coexist; - - msg_body->bss_params.lsig_tx_op_protection_full_support = + bss->lla_coexist = orig->bss_params.lla_coexist; + bss->llb_coexist = orig->bss_params.llb_coexist; + bss->llg_coexist = orig->bss_params.llg_coexist; + bss->ht20_coexist = orig->bss_params.ht20_coexist; + bss->lln_non_gf_coexist = orig->bss_params.lln_non_gf_coexist; + + bss->lsig_tx_op_protection_full_support = orig->bss_params.lsig_tx_op_protection_full_support; - msg_body->bss_params.rifs_mode = orig->bss_params.rifs_mode; - msg_body->bss_params.beacon_interval = orig->bss_params.beacon_interval; - msg_body->bss_params.dtim_period = orig->bss_params.dtim_period; - msg_body->bss_params.tx_channel_width_set = - orig->bss_params.tx_channel_width_set; - msg_body->bss_params.oper_channel = orig->bss_params.oper_channel; - msg_body->bss_params.ext_channel = orig->bss_params.ext_channel; - - msg_body->bss_params.reserved = orig->bss_params.reserved; - - memcpy(&msg_body->bss_params.ssid, - &orig->bss_params.ssid, + bss->rifs_mode = orig->bss_params.rifs_mode; + bss->beacon_interval = orig->bss_params.beacon_interval; + bss->dtim_period = orig->bss_params.dtim_period; + bss->tx_channel_width_set = orig->bss_params.tx_channel_width_set; + bss->oper_channel = orig->bss_params.oper_channel; + bss->ext_channel = orig->bss_params.ext_channel; + + bss->reserved = orig->bss_params.reserved; + + memcpy(&bss->ssid, &orig->bss_params.ssid, sizeof(orig->bss_params.ssid)); - msg_body->bss_params.action = orig->bss_params.action; - msg_body->bss_params.rateset = orig->bss_params.rateset; - msg_body->bss_params.ht = orig->bss_params.ht; - msg_body->bss_params.obss_prot_enabled = - orig->bss_params.obss_prot_enabled; - msg_body->bss_params.rmf = orig->bss_params.rmf; - msg_body->bss_params.ht_oper_mode = orig->bss_params.ht_oper_mode; - msg_body->bss_params.dual_cts_protection = - orig->bss_params.dual_cts_protection; - - msg_body->bss_params.max_probe_resp_retry_limit = + bss->action = orig->bss_params.action; + bss->rateset = orig->bss_params.rateset; + bss->ht = orig->bss_params.ht; + bss->obss_prot_enabled = orig->bss_params.obss_prot_enabled; + bss->rmf = orig->bss_params.rmf; + bss->ht_oper_mode = orig->bss_params.ht_oper_mode; + bss->dual_cts_protection = orig->bss_params.dual_cts_protection; + + bss->max_probe_resp_retry_limit = orig->bss_params.max_probe_resp_retry_limit; - msg_body->bss_params.hidden_ssid = orig->bss_params.hidden_ssid; - msg_body->bss_params.proxy_probe_resp = - orig->bss_params.proxy_probe_resp; - msg_body->bss_params.edca_params_valid = - orig->bss_params.edca_params_valid; - - memcpy(&msg_body->bss_params.acbe, - &orig->bss_params.acbe, + bss->hidden_ssid = orig->bss_params.hidden_ssid; + bss->proxy_probe_resp = orig->bss_params.proxy_probe_resp; + bss->edca_params_valid = orig->bss_params.edca_params_valid; + + memcpy(&bss->acbe, &orig->bss_params.acbe, sizeof(orig->bss_params.acbe)); - memcpy(&msg_body->bss_params.acbk, - &orig->bss_params.acbk, + memcpy(&bss->acbk, &orig->bss_params.acbk, sizeof(orig->bss_params.acbk)); - memcpy(&msg_body->bss_params.acvi, - &orig->bss_params.acvi, + memcpy(&bss->acvi, &orig->bss_params.acvi, sizeof(orig->bss_params.acvi)); - memcpy(&msg_body->bss_params.acvo, - &orig->bss_params.acvo, + memcpy(&bss->acvo, &orig->bss_params.acvo, sizeof(orig->bss_params.acvo)); - msg_body->bss_params.ext_set_sta_key_param_valid = + bss->ext_set_sta_key_param_valid = orig->bss_params.ext_set_sta_key_param_valid; - memcpy(&msg_body->bss_params.ext_set_sta_key_param, + memcpy(&bss->ext_set_sta_key_param, &orig->bss_params.ext_set_sta_key_param, sizeof(orig->bss_params.acvo)); - msg_body->bss_params.wcn36xx_hal_persona = - orig->bss_params.wcn36xx_hal_persona; - msg_body->bss_params.spectrum_mgt_enable = - orig->bss_params.spectrum_mgt_enable; - msg_body->bss_params.tx_mgmt_power = orig->bss_params.tx_mgmt_power; - msg_body->bss_params.max_tx_power = orig->bss_params.max_tx_power; + bss->wcn36xx_hal_persona = orig->bss_params.wcn36xx_hal_persona; + bss->spectrum_mgt_enable = orig->bss_params.spectrum_mgt_enable; + bss->tx_mgmt_power = orig->bss_params.tx_mgmt_power; + bss->max_tx_power = orig->bss_params.max_tx_power; - wcn36xx_smd_convert_sta_to_v1(wcn, &orig->bss_params.sta, - &msg_body->bss_params.sta); + wcn36xx_smd_convert_sta_to_v1(wcn, &orig->bss_params.sta, sta); PREPARE_HAL_BUF(wcn->hal_buf, (*msg_body)); From patchwork Sat Aug 29 03:38:46 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: 248671 Delivered-To: patch@linaro.org Received: by 2002:a92:5b9c:0:0:0:0:0 with SMTP id c28csp1602437ilg; Fri, 28 Aug 2020 20:38:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy8G027DnFSRT/egI1z90k7xVExuPcvyXPXTS9ar3eyu1abDaPDriDRixzEboMyi57A5yIt X-Received: by 2002:a92:130c:: with SMTP id 12mr1553897ilt.263.1598672300427; Fri, 28 Aug 2020 20:38:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598672300; cv=none; d=google.com; s=arc-20160816; b=MWmypFmcW49lQh7sj8Rd05xYlIeTcXRoRJU+DqOR3B0lmgBhAa0pnLsvagu7RYwtrD xGD5klpFjT94F0U+nT0LbZSd5hW72eqZEUWvTazNXa9v6IPx043rkdpuAz3qqWP5ww3q HbuJEozWZzoqKSyJYSJc1VCDXcHzSEdeaIRNmncpxRvEvi76rCAQh3iTZkUjxV3FLkpR nDOHJJ3aGQvE4b4AGKOL8VB4Aem4QqrpDmWSZbYOJ8gyAHmLOK9mFmcY3DJZFTiyKrDt ym/PqBPZ5pk8Td+B1/okHbmZ1ZeH3qMIaXz9zS/zxjWBOf76LFtmsaQKZll9RfBS4gLX KVGw== 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=Ekhi0Q7Tq4mBzqRGJLH0YFI57sOyNcGXBGqoVOyCAog=; b=QulXXjbSEBtBO535lgwUFTKD6XzVa++dKczuraRgib+S52xKga6UZXm6PUsaodNs+z 545qtwuphVOFEPtju/R1RAxgApEVLho7VBj7OYOkfOnu76dJaBxmZuqrCn5Z4sbWjsVb Qz5USm5BKq0904MguRGYULxIppakl8RZr0Swrh48IqaL6GKTtP3rN1XOKEps4wHKGQu/ AT2VIQn5GcTjzFrZ8gzpc+Bvm0zBG0boift+eVEuM+TNXY0dQTR9wgglHegqGgJ7Mhh7 0rHbKJCtLnYbL7edUwcVef8+1YCIETVdX+8C/0/sXVea3PkpYffLavjtz+7yqNAVGiov 7zKw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lists.infradead.org header.s=merlin.20170209 header.b=R5GbZyCi; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=MWweZxH5; 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 v20si959870jat.24.2020.08.28.20.38.20 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 28 Aug 2020 20:38:20 -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=R5GbZyCi; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=MWweZxH5; 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=Ekhi0Q7Tq4mBzqRGJLH0YFI57sOyNcGXBGqoVOyCAog=; b=R5GbZyCidwfS3bDzPOYdkBbkN L9u+Y1/YqosxC4Mo+8sxIJUmkidQmuoc6fBVpmsU1OFrILNK+kBgxZNFjTOb80F9kDDNm8ygJkfu+ R58W7k3EuBlCiL+bef3SZPC5sLnsMNcXij7LKR1ncIeM4xaQirAy191wKww9c/+0yfo2eYY1FdvFi /R1+tIBszFw5qouyC2hukRaBgOdj+u50L9fGoDj/twKVctezg35fc+VQT1vUw/V3Tl2q4gbfkDdQQ 1IIazRXaMMoICp8y9zvW9swoFNbr22egOb1IA/EkJJqOCPbiXZ+uzvQ5CyQ/RyNpaYYHijfCFcSLL JVMGlJOaQ==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kBrh2-0002C4-UJ; Sat, 29 Aug 2020 03:38:16 +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 1kBrh0-00029w-Ad for wcn36xx@lists.infradead.org; Sat, 29 Aug 2020 03:38:15 +0000 Received: by mail-wm1-x342.google.com with SMTP id y8so802648wma.0 for ; Fri, 28 Aug 2020 20:38:14 -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=ECKlC4vLs4zIz+kTN0kAbndn3GkZ3/BNt24XyoyX1hY=; b=MWweZxH5QAlm1G+GpzRhGqLNbmtshK4QotzqtYaGmRdy7Xn3WQ44Bexs5Z/o7bLGxb nZMughlCJanGGaw1hVBCodrl2MaZgIyI24w1We2s2TpeLZQSsIB7xN94d5GnP1bl1gYO jl3wA9iDPW0VTO508EVGCIoLg//JnexjLS41XngXe3rhl8s8+t2OfpsNI90HlnxdBzW2 JCTesGjcwJAiF9vExbDcG2UfmpbD1cln4ZDRdUEvJ8+4xZVRV2ZJrDrFc13deyRE6yf5 CIKL5niYEiboptRur55NqmHvYMRd6jAgcI8OtITKQGuTNkhJWUIaoIIOt/xmYcwffl4F 7hLA== 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=ECKlC4vLs4zIz+kTN0kAbndn3GkZ3/BNt24XyoyX1hY=; b=rkWmZ2W8WlWqfu1nYy3W6S8v3vQuXy0WMw2GGWYRAgeIuid8QwfId3pxMbxwOWejkd NayHJzi+TB6B09pBKCY/0MVs5yQCAKsgqaW7QqfJAkPVNYdGWMnu5ycNC7IGUZTsTwk4 K2LaaQ8268moSaNfmiNzGiQ+hh6g6OhX8PNx7CPUpZbwvj5UDm5ot8JrvIyqztZOTxWu s2KnwXstZDEwBT1UA72XTdPBTYL9lSk7RAlwc5EgJo+i0dDx+3H+AswXSfqM00FD5a1k n8Dh/Ux98uoGvlocT6yLK29XLmDlbxiTBy21pKPF0z8NjAbfYB5iNYvS1jvvdFYkqSNf 91HQ== X-Gm-Message-State: AOAM532Tmpo6j+DRhMw6+4oE/+5nz9Z6z9Fgd2E5jmd9wd+UVVwmHr0t CG6NlGn6YpdWVgefv6X49rCHUA== X-Received: by 2002:a05:600c:284:: with SMTP id 4mr1505635wmk.48.1598672293409; Fri, 28 Aug 2020 20:38:13 -0700 (PDT) Received: from localhost.localdomain ([176.61.57.127]) by smtp.gmail.com with ESMTPSA id v29sm1827545wrv.51.2020.08.28.20.38.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 28 Aug 2020 20:38:12 -0700 (PDT) From: Bryan O'Donoghue To: kvalo@codeaurora.org, wcn36xx@lists.infradead.org, linux-wireless@vger.kernel.org Subject: [PATCH v2 10/10] wcn36xx: Set feature DOT11AC for wcn3680 Date: Sat, 29 Aug 2020 04:38:46 +0100 Message-Id: <20200829033846.2167619-11-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200829033846.2167619-1-bryan.odonoghue@linaro.org> References: <20200829033846.2167619-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_233814_412273_1866DC57 X-CRM114-Status: GOOD ( 12.49 ) 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_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 In order for the firmware to process extended V1 parameters with the addtional VHT fields added we need to first enable the feature bit DOT11AC. Once done the version number in the HAL message header will be acted upon by the firmware. Extended V1 parameters are a prerequisite for 802.11ac speeds since we cannot communicate VHT parameters to the firmware absent the extended data structures. Signed-off-by: Bryan O'Donoghue --- drivers/net/wireless/ath/wcn36xx/smd.c | 2 ++ 1 file changed, 2 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/smd.c b/drivers/net/wireless/ath/wcn36xx/smd.c index 9490b1bf4e05..4c30036e2e56 100644 --- a/drivers/net/wireless/ath/wcn36xx/smd.c +++ b/drivers/net/wireless/ath/wcn36xx/smd.c @@ -2084,6 +2084,8 @@ int wcn36xx_smd_feature_caps_exchange(struct wcn36xx *wcn) INIT_HAL_MSG(msg_body, WCN36XX_HAL_FEATURE_CAPS_EXCHANGE_REQ); set_feat_caps(msg_body.feat_caps, STA_POWERSAVE); + if (wcn->rf_id == RF_IRIS_WCN3680) + set_feat_caps(msg_body.feat_caps, DOT11AC); PREPARE_HAL_BUF(wcn->hal_buf, msg_body);