From patchwork Sat Aug 29 03:38:57 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: 248674 Delivered-To: patch@linaro.org Received: by 2002:a92:5b9c:0:0:0:0:0 with SMTP id c28csp1602493ilg; Fri, 28 Aug 2020 20:38:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxk3FByg4I4eISDgCP6Zl70ULSfz4Exilfq7GZvO6EwzUPaUppKDEvX56RcpySYnkxV00B0 X-Received: by 2002:a92:4995:: with SMTP id k21mr1553475ilg.30.1598672308503; Fri, 28 Aug 2020 20:38:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598672308; cv=none; d=google.com; s=arc-20160816; b=QP6iLH9HDVWg3LQ6JY5OjdUVr9a6znPAQss5s0OE3USmH3x3/Dc6X6HF1Lf+LcgXqM PAy/8eRUTmxLSETyyDUqCuJ+qfgj7S9s00hMRa6dLOWqPmAz8SsrO4MF2POJ+nIzUH+z YEvkun0edglUmgyPJRlt0uMqqFq1G5aq0gZ5rbqq+sIM/6iEkxr0nec7MxuX/XtEzXOI JPUxueOAaECJz3U8CmxWeqo2yDmGsa+FZEdXpY5BubVW5FtPQ4ROisXGaaIhg7Rh+QNG 5OSFU2PskyCsEHTzs0rPUWv9AiEbKvP6fwMgAa/c1Y2Fys9518r5WLenvcGZ1WnGn6cJ vFXA== 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=Sf0qB8YQslHtovKKXBKeBD4WM+axeuomJjG9Pfu5KRw=; b=QSPijf43OGkw3jJymepAqmoCKppO6jOHvTsh4PO9HBp/iXoSlJDG88ltsyP5ti8c7f VkY8xtGun/of+GrULTokbwsfB7jAtrogfAHAIfie/K5m5EDmObT4UtKxRHcmXa8fOzIE 2JsazcFxmQ7WdP17dUDs2XkEqMzK4rRwgDbyEsE9lI88IOqly3zFOwSBUwlk8t0uFM3/ oSeLqsqlIumAynlgrF+dI6N8Xy3ZeZ/wlG+yx3zcWfEH8SmuUcY2Q7faRppw+TiK9QWY YiXRGW54kbJFqQVMWfO1GkqllfQx+VHn4efLQsb6+XZHAJoOKeF4LQ6NOdC01WenjNef lRXA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lists.infradead.org header.s=merlin.20170209 header.b=e0MgHpWx; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=Bwwm4eyg; 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 l24si742812jaq.10.2020.08.28.20.38.28 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 28 Aug 2020 20:38:28 -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=e0MgHpWx; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=Bwwm4eyg; 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=Sf0qB8YQslHtovKKXBKeBD4WM+axeuomJjG9Pfu5KRw=; b=e0MgHpWxFo/47O36IRl/Fq6cR 4avLMjQMve8lJ/oWee8Lx7XB9QV6ZoUvilwpuVeAYAm7vWCGq7yESx8RuK71c7s+uaUb/KTfW+vIq kB5HrHOzd8suZBQLiElNltQW6fHC+BOKdg3gNAjl++d71nokcsW5+XAg3R+g0aOie712BQTF7QgbW d2GR1rU97zxnsj52KzWJiZcPuovKnFD2bLxwNAEKPT3e+9UI6+SyNphdHm9e/RI4bbtotKTcn+2zu sdtHTUGArZKSWRagagiYlPBzVhagMulM8GVE1YYITwp7WqQBs2xpjQB0OZyyl7+CayFyho9INzfM5 1cHmOyX4Q==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kBrhB-0002Fd-KK; Sat, 29 Aug 2020 03:38:25 +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 1kBrhA-0002Eg-61 for wcn36xx@lists.infradead.org; Sat, 29 Aug 2020 03:38:24 +0000 Received: by mail-wr1-x442.google.com with SMTP id x7so890557wro.3 for ; Fri, 28 Aug 2020 20:38:24 -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=QqDt11mrhmiC3IjI/UjDrW3b5x9edV6yQCJKabdElZ4=; b=Bwwm4eygLWjAmmtikit2YuIr/6cNiQeVC3PE7wt6HWj4QyY/skq+bv6NJY1COURw7N iV6dIQGzFXnuo6enxxIfu2gwMHUIlrIlPLH/QCRVx2ZwjPVWbZjYoEqNQD7xm7u9HeDC xPEaMw5HOnvBs71OAOdIqvVqijCXywiaPljSR/A1HjDB90u5PhlSZx59/Gj6vCp9+KOD mulfAj8MHQ82v00Oc8ZNESviG7joVGHmoku7ztOKxUiqK4SaqqHTXxp0lhZj9L1Wt5/y MK89fRPM1/WnXhyuWHMclqPTzP19TDxEPGxtkDjfxUWcvBI8/OmQL/yxbpmN4y3xUA8Q /T5Q== 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=QqDt11mrhmiC3IjI/UjDrW3b5x9edV6yQCJKabdElZ4=; b=PSQIha3rkgxpULRv86ujsQ5A/03ZqDov25cS2jj3I6/wOu4QwStDVfACnV7xNOmMTZ OTtbCsvoGUVjmTmObOdVAPxh4NY+DdDhOYVdHuqSXq2qIMF6qZ3C7HuXp2NN7XabWfMh vuroymSgXEZNSyU/mrsuGcoKZN0bkQBLnk75eCRXaaEYxpbLuq1FY+MabxNRtBSegGqB O3V6m2pXH5bZuGYLLubuIv+sR9rh2yvHjJEw0xwx0whKIkmKG0o4so0VAKTmKYZpvMI6 V2pusrWohQwcqfTimqDQDj6GEtyNuJVSWPNK3elKipZU1aaOcoWjFKcM4AKoOcZIReFk CaYQ== X-Gm-Message-State: AOAM533XpNLsiTWbetDeYbbq2Sbb4qBPW+eMvKCOzdBVQ8sbTxm6cT8U TBdOqJFPGWXa+o3pzlAMUOAYaQ== X-Received: by 2002:adf:c983:: with SMTP id f3mr1675278wrh.348.1598672303342; Fri, 28 Aug 2020 20:38:23 -0700 (PDT) Received: from localhost.localdomain ([176.61.57.127]) by smtp.gmail.com with ESMTPSA id t9sm1649179wmj.47.2020.08.28.20.38.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 28 Aug 2020 20:38:22 -0700 (PDT) From: Bryan O'Donoghue To: kvalo@codeaurora.org, wcn36xx@lists.infradead.org, linux-wireless@vger.kernel.org Subject: [PATCH v2 01/12] wcn36xx: Add VHT fields to parameter data structures Date: Sat, 29 Aug 2020 04:38:57 +0100 Message-Id: <20200829033908.2167689-2-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200829033908.2167689-1-bryan.odonoghue@linaro.org> References: <20200829033908.2167689-1-bryan.odonoghue@linaro.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200828_233824_271042_24C14A90 X-CRM114-Status: GOOD ( 12.86 ) 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 In order to pass VHT parameters to wcn3680 we need to use a super-set of the V1 data-structures with additional VHT parameters tacked on. This patch adds the additional fields to the STA and BSS parameter structures with some utility macros to make calculation of the structure size easier. Signed-off-by: Bryan O'Donoghue --- drivers/net/wireless/ath/wcn36xx/hal.h | 14 +++++++++++++- 1 file changed, 13 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 573799274a02..3cceeaf0136f 100644 --- a/drivers/net/wireless/ath/wcn36xx/hal.h +++ b/drivers/net/wireless/ath/wcn36xx/hal.h @@ -1592,9 +1592,15 @@ struct wcn36xx_hal_config_sta_params_v1 { u8 reserved:4; /* These rates are the intersection of peer and self capabilities. */ - struct wcn36xx_hal_supported_rates supported_rates; + struct wcn36xx_hal_supported_rates_v1 supported_rates; + + u8 vht_capable; + u8 vht_tx_channel_width_set; + } __packed; +#define WCN36XX_DIFF_STA_PARAMS_V1_NOVHT 10 + struct wcn36xx_hal_config_sta_req_msg_v1 { struct wcn36xx_hal_msg_header header; struct wcn36xx_hal_config_sta_params_v1 sta_params; @@ -2015,8 +2021,14 @@ struct wcn36xx_hal_config_bss_params_v1 { * "STA context" */ struct wcn36xx_hal_config_sta_params_v1 sta; + + u8 vht_capable; + u8 vht_tx_channel_width_set; + } __packed; +#define WCN36XX_DIFF_BSS_PARAMS_V1_NOVHT (WCN36XX_DIFF_STA_PARAMS_V1_NOVHT + 2) + struct wcn36xx_hal_config_bss_req_msg_v1 { struct wcn36xx_hal_msg_header header; struct wcn36xx_hal_config_bss_params_v1 bss_params; From patchwork Sat Aug 29 03:38:58 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: 248675 Delivered-To: patch@linaro.org Received: by 2002:a92:5b9c:0:0:0:0:0 with SMTP id c28csp1602506ilg; Fri, 28 Aug 2020 20:38:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwB29Ou9TEyoR433iwxlpP8woEINgNSEdZcMnhJwOrM9T0p75o0FzJdnI5ioJIXuZSqq2aI X-Received: by 2002:a6b:b98a:: with SMTP id j132mr1451181iof.67.1598672309918; Fri, 28 Aug 2020 20:38:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598672309; cv=none; d=google.com; s=arc-20160816; b=UbqiMcbfVrUPn//yplcpA28FSIv1GEcyiFFUEFcwsrUur50CwHq94hEKlDgZ8W6a/4 YyCn8SFgVdP9rsJZ0ALeFcYVFfKIhGclCv9TASeDcSADIa1x4zESThOEXZtkUVF3YPoC DoOL7oMmF8Q3RcJRxK+Yia0hvcbaLReTXr5kx9ZQnGRZSHR1+EqLCQOKkLd2T6mKjMW7 B+KJMqAhe+X4R3cUYohFcUbgZ206nywDHeHlaaE0DXYp8vOoB1krvMcrFz5Zw6DUN9G1 JD1AelZptSZFc8iwPH3KALenAJx8KFQvod+M0hl6jtssi9Bk/9NRv4z1A9ZKZDYR8HfW 3Fxg== 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=+NpXKR11w2XDfEUcNQcuYlcAPEs0gg6GbLGp1kpbq9E=; b=fCIAxNICGt58xZmPvSRw/9RGDJSzz/ZECNjtlEhHoctPqUdYmxxCeEyiZlnK69x5UO 5hQ8V5bq6PUN+/D8CGTDIcw5AQhFQRwPNRGNWcNvPSb3aLXlpJhFas3s2HfnvEMC+oRv idnC0zSmRA7slPMchpUyqPd69NzekrzOg/pZYJBYNgdLr3W0dHpJj9Lrl+C7obpEyx2D gvXnLtZRlLMmbyo/BG52dbguRwNDA/mnYRelMnO4qE41o2Q2lpDEh/AHKZ+PF805d8Zw a4hSWYFQ9gc8RNKYy9AZs8a7Lz8UiJX3NmlfWj5vFtJvElF9fdXE5aoPcs/f9ocYh3aj 97Sg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lists.infradead.org header.s=merlin.20170209 header.b=GB2iDFQw; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=I2ght7KY; 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 w17si1036814jad.33.2020.08.28.20.38.29 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 28 Aug 2020 20:38:29 -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=GB2iDFQw; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=I2ght7KY; 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=+NpXKR11w2XDfEUcNQcuYlcAPEs0gg6GbLGp1kpbq9E=; b=GB2iDFQwvtxjIP4GXz6a0tGZa U1mWDAIkwAoqSeoioXzBmZNG1/xwgtQUrBXauzH9XDdaWtDWkr+KY/xNwnObbEO7RQ5KV22WYXG+t QVFz2GkSvzX6Ulp/Ypgd1to9oL75RhY7dwWxildsES0c6TK1XzG/QGCCUY0YUmpBhciDNEdqIut1s F4JLYpqIA1Lu1cXxV1ShXXp4gQSY1yLHOfvD8qBSR4pkcFhjzFRf79UKteAHsh9EJW8OuW/L1kdcQ NLtVUphkOSJ5LNFU/oLmWZa3JxSUdd6jJ11MDLByRQ8q2oXi2ENSPAkRTvUdQA4JyX/vIKsIlHNZV AlSgcLVFA==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kBrhC-0002GO-V1; Sat, 29 Aug 2020 03:38:26 +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 1kBrhB-0002F9-8P for wcn36xx@lists.infradead.org; Sat, 29 Aug 2020 03:38:26 +0000 Received: by mail-wr1-x444.google.com with SMTP id x7so890571wro.3 for ; Fri, 28 Aug 2020 20:38:25 -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=VWQ4Mgj5nJFptUvhPYJTMNqJmysjiQoavD7tKrDaEsk=; b=I2ght7KYE/B5nH2d5bhSaDOCKvd0k1yBR5ZhLE/yT9OApX7QSRPgs0E+vJjKJEvRQ1 zRoM6Sah/TVJaU0BsCI02iIEipZ3Koj3JQdREkIirjjNY6B1mePBDQDwMhTjJOVmlq2h INg01W10mTrQolzhIy4Cd2MG8Z6Bc8lsxbYnX8h3JhzVMuaZJaN7jqfQB1TX5OzlVs96 DnT6Rg1O6721xBAbeyh72wDZww9UwDK2nWOhAQwyNWXn2YXTuG4mZ1II/8e5Cvz32VCZ iKUNXLKSmyEdN7XEhHboVcwjG1PwBaAEHer6ksDhxQc6x0c+Dpb9UDtxEqrJn8AEjTDC oyhg== 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=VWQ4Mgj5nJFptUvhPYJTMNqJmysjiQoavD7tKrDaEsk=; b=HN1tWGz28GshAAvzO6oorCzTRXYWPCGysR7pi1CocyubutexFRvlMMAZ9xYpibFw6s i0pFUVuH6cWCVqAzm+Z6ZOuk1te8Xhg3yJC3P9z8CYA8NQblIhlYuO3fr0y368RAMYRK yqdXt1Lm+P3zpM3gewRDCNhQFO3nxCuioq6SaUAY/GHBXb/QQMKeE4bEpiNtvH5rHXPx F/Lx2d65BhMT2o50OacrUDCg9QXSyRRZUH0Vt/mzHl6iSNNDYI6bBedE33B5kcJgRmuG g3mH6+i3WtENxfK+sDZutiMfjQM/w8jWxpoxEFsehs8srXs+FuoKha4McAsd7hWTl/1G qTJg== X-Gm-Message-State: AOAM531lkfkw6eG+K8aYknftVJ5jtqq4AZ4PwsiFjDCfM3K0ryZMZyzq izeghPD7M1TCWkzC4yKOqBmuueVtkSCEKmxj X-Received: by 2002:a5d:540c:: with SMTP id g12mr1687315wrv.120.1598672304240; Fri, 28 Aug 2020 20:38:24 -0700 (PDT) Received: from localhost.localdomain ([176.61.57.127]) by smtp.gmail.com with ESMTPSA id t9sm1649179wmj.47.2020.08.28.20.38.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 28 Aug 2020 20:38:23 -0700 (PDT) From: Bryan O'Donoghue To: kvalo@codeaurora.org, wcn36xx@lists.infradead.org, linux-wireless@vger.kernel.org Subject: [PATCH v2 02/12] wcn36xx: Use V1 data structure to store supported rates Date: Sat, 29 Aug 2020 04:38:58 +0100 Message-Id: <20200829033908.2167689-3-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200829033908.2167689-1-bryan.odonoghue@linaro.org> References: <20200829033908.2167689-1-bryan.odonoghue@linaro.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200828_233825_334093_4234AE08 X-CRM114-Status: GOOD ( 14.73 ) 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:444 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 converts the internal data structure used to store data-rates from version 0 to version 1. This allows us to extend out the internal storage to represent VHT parameters. Using the extended version 1 data-structure allows us to avoid a whole raft of version 1 specific fixup functions. Signed-off-by: Bryan O'Donoghue --- drivers/net/wireless/ath/wcn36xx/smd.c | 5 +++-- drivers/net/wireless/ath/wcn36xx/wcn36xx.h | 2 +- 2 files changed, 4 insertions(+), 3 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 4c30036e2e56..8534d36c3ae0 100644 --- a/drivers/net/wireless/ath/wcn36xx/smd.c +++ b/drivers/net/wireless/ath/wcn36xx/smd.c @@ -242,9 +242,10 @@ static void wcn36xx_smd_set_sta_params(struct wcn36xx *wcn, sta_params->aid = sta_priv->aid; wcn36xx_smd_set_sta_ht_params(sta, sta_params); memcpy(&sta_params->supported_rates, &sta_priv->supported_rates, - sizeof(sta_priv->supported_rates)); + sizeof(struct wcn36xx_hal_supported_rates)); } else { - wcn36xx_set_default_rates(&sta_params->supported_rates); + wcn36xx_set_default_rates((struct wcn36xx_hal_supported_rates *) + &sta_params->supported_rates); wcn36xx_smd_set_sta_default_ht_params(sta_params); } } diff --git a/drivers/net/wireless/ath/wcn36xx/wcn36xx.h b/drivers/net/wireless/ath/wcn36xx/wcn36xx.h index 342ca0ae7e28..d7d349de20e6 100644 --- a/drivers/net/wireless/ath/wcn36xx/wcn36xx.h +++ b/drivers/net/wireless/ath/wcn36xx/wcn36xx.h @@ -169,7 +169,7 @@ struct wcn36xx_sta { u8 bss_dpu_desc_index; bool is_data_encrypted; /* Rates */ - struct wcn36xx_hal_supported_rates supported_rates; + struct wcn36xx_hal_supported_rates_v1 supported_rates; spinlock_t ampdu_lock; /* protects next two fields */ enum wcn36xx_ampdu_state ampdu_state[16]; From patchwork Sat Aug 29 03:38:59 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: 248676 Delivered-To: patch@linaro.org Received: by 2002:a92:5b9c:0:0:0:0:0 with SMTP id c28csp1602518ilg; Fri, 28 Aug 2020 20:38:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyFnawYB3k6nixYpH/LPWTpzLnpQo/OseTwtdA2iDQNiJZ5aMNel181sGSBcJdi9L2rxJ4+ X-Received: by 2002:a02:cbc7:: with SMTP id u7mr3987275jaq.74.1598672311682; Fri, 28 Aug 2020 20:38:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598672311; cv=none; d=google.com; s=arc-20160816; b=Gy0W5jtHD0NtECsW/dmfSS4C0KsVt0On8rik1Xwgt5hUl50m0A57eAuJXJ1tThUbyj gfHMEqwv02Kj1vTG3RXX8tIl/urATVXYkjdvPW6uhvOQi7oduadD7coKk5JmUmeLSA4t CrYpp0/fpS9ySJ659XTj8ENmARb4zASSMNzvxPcYhcZVY18RzvPHKB6eKFzeuyohhHo7 19u7eAguqc75+4jZgR3BRzPAACKNgsl22lkBaOJviLRy46eSZ2nMXBwD+T07r10ffXgn n1HyU/W/QgTUIEcRW2aLJLCh6n39wFC0gXRAI9lCUPFwi/Hx9zWrD4Fj9urhv7T88ejB j6MQ== 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=pd/awol3AHVNKvCEAxS2NKE6F48AvGAkYpt1cIPsCz8=; b=BEQ2V4S0tdZarhDN1MsM6rOVe0pTu2hGBUEHUY5VfWt7vZiICMVcoIYDNadUgtpErt Q8ehf5on3CnrKGiQ/wW6lkrfgwgRXJUe6zSnmEvM6qVDksxcyxL+rCF+Bn8tV5qp79ce 13OLFd3cfbaXA0OBZh+igfalN2ZF+ZcV997rCibofxFn+xkOv/UsLpkdmo0Vux7sXjX2 bC+W1i/n8WRDGu5avsO3G6NfsH9whx41z/DZRL49MxotjnuSHSsHH2YeWAy+j9cS2sWG NADbpt+6WcAp+gU7zj4smUjmhA3R91pVukHYzGOv3eRv10qoGc7ktenGz2aUDACEx5Gg jtBg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lists.infradead.org header.s=merlin.20170209 header.b="bDbie/Bg"; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=DywYRRRp; 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 j6si753308jaq.62.2020.08.28.20.38.31 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 28 Aug 2020 20:38:31 -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="bDbie/Bg"; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=DywYRRRp; 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=pd/awol3AHVNKvCEAxS2NKE6F48AvGAkYpt1cIPsCz8=; b=bDbie/Bg8IwvqdwUwMB2XBa4G WLrZzQ6rwaaTQiWg3qhUd6m+1b6PUul+fsGhYtG4TpxEoi1W0pt7Jlbdp8PGepe+sIgUX6cyNU5m9 mDFxO0he/gyVmpK8kkmUHZR1Ib/x/ZLlYRgulsvTdroK8AXRG+erFnbv5+CMkf1wO+gwoGVhDqe8/ dtXQoh46cxFmS2XXPjJJvRVTuVNk0Gv1kfyaB67+Rdty9cY2Ug+No1MmMfNzkoLsHH1QrCOQ8fkeD 24yVNswX5qH7wDo3cVtcJupD84XuTGkOyjX8VEbsdJL1QYYWgIhrZxSoc62Dz1N67n6br46YYmgVW EK4CWHC6A==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kBrhE-0002HS-JD; Sat, 29 Aug 2020 03:38:28 +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 1kBrhC-0002Fc-1s for wcn36xx@lists.infradead.org; Sat, 29 Aug 2020 03:38:26 +0000 Received: by mail-wr1-x442.google.com with SMTP id c15so851687wrs.11 for ; Fri, 28 Aug 2020 20:38:25 -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=nY+hO7+YD8XCHQqADSniuLxqB82KrBsfnqLkBYlMHwY=; b=DywYRRRpr+7zl7H02erezX/Lq8ylwnbjDFT4gFborvKHBdMYy3UF3+9nEERLiYona3 ELPKUI4yewnjsv6phO2TCMDA9FO2ijTGHhLW3Gb02WLoryph8ntLtFRqhALntGuF4DIh 11HlZU0vJMgnR8mq9hlRbLsHvunQGIfrzQGdxl4z7WPbsKeYcmHA1W6GpOBgt1Pfrhp8 6TXXIj5ken5Om5GF+lCs0/rdbt2p/vBjt+E9W+McMwHROj9RB/+nIz6jAUKl6buV941M wrCAAmqTjr1sqos7w5NcAQddxz4mVeNC5P04JmNXaaHAYBvNDMoYKCvZSm684F1sKwVS 8Odw== 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=nY+hO7+YD8XCHQqADSniuLxqB82KrBsfnqLkBYlMHwY=; b=Xm0XPcr8LMg4wzSb75fzzzVdQabONkQPo9/cKyWmkxgXyaDMEhuZHSb9zwe8QvfTay K0TsbFdtBfGu0YBrrqW+IpmZ1iTzpOIaN8dnlKcjgHmIAwpC93ynZ3WgJxI50dNnyIpk senm8eDw5Oz9HWX81ICN13g1yvyMf6mHL8ybaXOLRhrLlLPV3uMNtHM+AZ7vMMMhPOWl pvPp+MUJyqC1H+1RtB9e8X1cWyO+bjNQlxPxr308nC2qtTsHwpkjWw2ckYsCGEWmaQZl CGJsFVNH6J1CLhBj0izJM4E4Ew6e1ntciDt6eZdB5blyS6kSb+m6JYYru/oaQdH+xAg+ eIHw== X-Gm-Message-State: AOAM531xl50N38USCkH3coo4VBqdwzGep0qUl3zDFioylF7/uVDYc2fZ TErr/FfCkuI8bfuXn3pmnSbp3w== X-Received: by 2002:a5d:66c1:: with SMTP id k1mr1695903wrw.8.1598672305271; Fri, 28 Aug 2020 20:38:25 -0700 (PDT) Received: from localhost.localdomain ([176.61.57.127]) by smtp.gmail.com with ESMTPSA id t9sm1649179wmj.47.2020.08.28.20.38.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 28 Aug 2020 20:38:24 -0700 (PDT) From: Bryan O'Donoghue To: kvalo@codeaurora.org, wcn36xx@lists.infradead.org, linux-wireless@vger.kernel.org Subject: [PATCH v2 03/12] wcn36xx: Add wcn36xx_set_default_rates_v1 Date: Sat, 29 Aug 2020 04:38:59 +0100 Message-Id: <20200829033908.2167689-4-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200829033908.2167689-1-bryan.odonoghue@linaro.org> References: <20200829033908.2167689-1-bryan.odonoghue@linaro.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200828_233826_171079_C03F68E4 X-CRM114-Status: GOOD ( 11.89 ) 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 Add a routine to set some additional default parameters associated with the V1 data structure. Signed-off-by: Bryan O'Donoghue --- drivers/net/wireless/ath/wcn36xx/main.c | 8 ++++++++ drivers/net/wireless/ath/wcn36xx/wcn36xx.h | 1 + 2 files 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/main.c b/drivers/net/wireless/ath/wcn36xx/main.c index 08e23dbb60fb..d589a00d901b 100644 --- a/drivers/net/wireless/ath/wcn36xx/main.c +++ b/drivers/net/wireless/ath/wcn36xx/main.c @@ -793,6 +793,14 @@ void wcn36xx_set_default_rates(struct wcn36xx_hal_supported_rates *rates) sizeof(*ofdm_rates) * WCN36XX_HAL_NUM_OFDM_RATES); rates->supported_mcs_set[0] = 0xFF; } + +void wcn36xx_set_default_rates_v1(struct wcn36xx_hal_supported_rates_v1 *rates) +{ + rates->op_rate_mode = STA_11ac; + rates->vht_rx_mcs_map = IEEE80211_VHT_MCS_SUPPORT_0_9; + rates->vht_tx_mcs_map = IEEE80211_VHT_MCS_SUPPORT_0_9; +} + static void wcn36xx_bss_info_changed(struct ieee80211_hw *hw, struct ieee80211_vif *vif, struct ieee80211_bss_conf *bss_conf, diff --git a/drivers/net/wireless/ath/wcn36xx/wcn36xx.h b/drivers/net/wireless/ath/wcn36xx/wcn36xx.h index d7d349de20e6..2da81d9926c4 100644 --- a/drivers/net/wireless/ath/wcn36xx/wcn36xx.h +++ b/drivers/net/wireless/ath/wcn36xx/wcn36xx.h @@ -271,6 +271,7 @@ static inline bool wcn36xx_is_fw_version(struct wcn36xx *wcn, wcn->fw_revision == revision); } void wcn36xx_set_default_rates(struct wcn36xx_hal_supported_rates *rates); +void wcn36xx_set_default_rates_v1(struct wcn36xx_hal_supported_rates_v1 *rates); static inline struct ieee80211_sta *wcn36xx_priv_to_sta(struct wcn36xx_sta *sta_priv) From patchwork Sat Aug 29 03:39:00 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bryan O'Donoghue X-Patchwork-Id: 248678 Delivered-To: patch@linaro.org Received: by 2002:a92:5b9c:0:0:0:0:0 with SMTP id c28csp1602542ilg; Fri, 28 Aug 2020 20:38:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz37N//LeAQw9+rh5EvEjyMq70cFWTwcbS8LIno7xewXMBkXHKqUVM9tzpbbELv2Xpi29pS X-Received: by 2002:a6b:8b8c:: with SMTP id n134mr1465583iod.204.1598672313636; Fri, 28 Aug 2020 20:38:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598672313; cv=none; d=google.com; s=arc-20160816; b=NNmnF9xNrR3U4bO1D+l2kOIJqNRJjgjzP7osNROyFQJdqXDIo/34m9MTL/uQLwkEbp 3XH02Zt7rgiVakb46OVKMGM9jXCzweFREmxWOUVKzfZXLjMP1B89nCwH11SIl59zmcSJ Q44t25Toom6FLpwlx2Sa/XnWUnl7WFwC2S9hSGNDE4y9OOZZMmRcxto+TdRn+tmYMHuG Aey6xsOd0+VvX+GWZZ/3dgESZRe5MuNLMhZl3S7Enzyywb+SeS5sTpVHd2SGNt7uzygU bzXTp+QWrbLU6mSiG0YCYNeJolcbVU6wsfjkdiowcFFxUmQC0/glhZ5NGATU2sUJf7Nw vZgA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:cc:list-subscribe :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:mime-version:references:in-reply-to:message-id:date :subject:to:from:dkim-signature:dkim-signature; bh=ZyK5ha6J33fJ9Fbjbpe/HsceftD3nHuHN0IzFaNoWTk=; b=Vi8E7VzmUlZ7sOGWR/dbuTp6V+3pECNDmyHH1ig2ycyKET1ixzJWMQx6Co/4SRlJTm cUXaIUrxi+UGjhdJ0noWKEQTkValQOkVnwoSfTFh+9/0yWFrPTSIjRk5019/WwGmmnjq Ptb/MSKD22PUATWWXadXmSe8Ph6094DdLZUuE9H1XKxMTmsne5TMiWZgmf8Mk4z8UMPJ ArDqDezW56P0gAIFbnThVi/F/DIKPAX+RophfLz75IvCWoLC/rxAbvgOhPgcemyDTxWM ARWS2Q0+OGqGsC8o8lTBDbfPmevAX1U0ibUEs7t1x9L4MQ5KQhNLySwQyl1cuFZgb7Ac atvA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lists.infradead.org header.s=merlin.20170209 header.b=JfTruSwb; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=csGKY3VO; spf=pass (google.com: best guess record for domain of wcn36xx-bounces+patch=linaro.org@lists.infradead.org designates 2001:8b0:10b:1231::1 as permitted sender) smtp.mailfrom="wcn36xx-bounces+patch=linaro.org@lists.infradead.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from merlin.infradead.org (merlin.infradead.org. [2001:8b0:10b:1231::1]) by mx.google.com with ESMTPS id r6si975502iov.56.2020.08.28.20.38.33 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 28 Aug 2020 20:38:33 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of wcn36xx-bounces+patch=linaro.org@lists.infradead.org designates 2001:8b0:10b:1231::1 as permitted sender) client-ip=2001:8b0:10b:1231::1; Authentication-Results: mx.google.com; dkim=pass header.i=@lists.infradead.org header.s=merlin.20170209 header.b=JfTruSwb; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=csGKY3VO; spf=pass (google.com: best guess record for domain of wcn36xx-bounces+patch=linaro.org@lists.infradead.org designates 2001:8b0:10b:1231::1 as permitted sender) smtp.mailfrom="wcn36xx-bounces+patch=linaro.org@lists.infradead.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=ZyK5ha6J33fJ9Fbjbpe/HsceftD3nHuHN0IzFaNoWTk=; b=JfTruSwbSxry8OSB66+qAL0Eg sojLB2NOORk1O5ollHtJM5pnzN7kWyzq5WDxgRC8rXuDJ6Xd5L+11Z9UQxhp96emCbMbEqFZ6KM4j 8WRNN5W28sAXjVtzIUqiRfskNb/Uek7eocQtKfH1lrcGUtp9VDZy6Wut5Em3Xh3lReY2pYlg7tktH 3DQK7OoG3s6EhMYz0f7c9K8kcXo0AUDVK1NHcaiWy2QdR/O3hMP+S503L0+0DoF1YJUwF8BZH1tV7 QDedbWt5OMf7obJKfaq1E4CajFD3bpmbo82hCXv162Ii3bXPQbaoPcDj9BRR35ZHDizbYJcrpZe1d M/0CKbF8g==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kBrhG-0002Ib-GU; Sat, 29 Aug 2020 03:38:30 +0000 Received: from mail-wm1-x344.google.com ([2a00:1450:4864:20::344]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kBrhD-0002GM-FU for wcn36xx@lists.infradead.org; Sat, 29 Aug 2020 03:38:28 +0000 Received: by mail-wm1-x344.google.com with SMTP id e17so742249wme.0 for ; Fri, 28 Aug 2020 20:38:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=rRqKSMYLkOaKma6hces3R6ozgO9nu1SFFWnxLHLzpL8=; b=csGKY3VOY9JXG15H2u4jrtOYlIQk776WhWvFofhzxxiSCkgWBkL28SQMcxyI6srSdS eZEOMmswzv6cOe4kp8l2fmRkk5HOUIMnrEpj5YeqYcYD0yQCmIfkJpXSdLO2t6eC7YrL Mh6LRpBYM4XvNiqRRAXP0TxGywBqhrqVcxB1re+dqHtjtF3PDRj5wtOqxHStVZW0rtj8 YNCEI2buzQwdDjoBIi8XHbksbK47Mkd4ndALhJgu9LMsRd3i+YpI/H6YMTBoxGw+AMxT o530JDYGpcamEmZuti06r7ZFIf14ShN9LcOWeXl9koBG8j3thj8yGVRh9NAKQy99PW6G nXmQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=rRqKSMYLkOaKma6hces3R6ozgO9nu1SFFWnxLHLzpL8=; b=OBL60PZIo+NyTDfsPRoWdCK3Ia3e6cbEY6b9U3Y+QhFuTpZHHgB66YRMYn3Ymi62Pn ZVuZHFuDAkLvnK4pwZDfBzknwi1kLUN3ZTEXgKEbvxWW998sADUBaCzktt2JtJma7Ci0 NxEuFxIwkcnEMOEosjdxtDKbLTtqTFRFAnWVKKZUkN0K/cgB0Ihj1TDx2qTHCpaSvD6o f6KZjVvE8X5tqZlem2uFwMUQeUyR/Wf31IzPpEJ9ZDJ2hc6e9C8/BIPWiJ201CmG/NCn 8+TFp0gcyMYeG4mDu0Ck+n+ZQyx8xwOLkW1PUuWfKdTDFFHeS7W04RPxs8ihJVfuxtj9 1L0A== X-Gm-Message-State: AOAM531dx8AMjeAdvuguGkAYtcd/nUWZ09dB0Zqb74vv0KMsUv4Hm5HL 9u2HmAtuzFQXF7PuwUs7pECI6Q== X-Received: by 2002:a7b:c397:: with SMTP id s23mr1544014wmj.174.1598672306206; Fri, 28 Aug 2020 20:38:26 -0700 (PDT) Received: from localhost.localdomain ([176.61.57.127]) by smtp.gmail.com with ESMTPSA id t9sm1649179wmj.47.2020.08.28.20.38.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 28 Aug 2020 20:38:25 -0700 (PDT) From: Bryan O'Donoghue To: kvalo@codeaurora.org, wcn36xx@lists.infradead.org, linux-wireless@vger.kernel.org Subject: [PATCH v2 04/12] wcn36xx: Add VHT rates to wcn36xx_update_allowed_rates() Date: Sat, 29 Aug 2020 04:39:00 +0100 Message-Id: <20200829033908.2167689-5-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200829033908.2167689-1-bryan.odonoghue@linaro.org> References: <20200829033908.2167689-1-bryan.odonoghue@linaro.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200828_233827_638078_CBB6CC7E X-CRM114-Status: GOOD ( 12.93 ) X-Spam-Score: -0.2 (/) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (-0.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2a00:1450:4864:20:0:0:0:344 listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain X-BeenThere: wcn36xx@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: bryan.odonoghue@linaro.org, shawn.guo@linaro.org, loic.poulain@linaro.org Sender: "wcn36xx" Errors-To: wcn36xx-bounces+patch=linaro.org@lists.infradead.org This commit adds VHT rates to the wcn36xx_update_allowed_rates() routine. Thus allowing the driver to latch the declared rates and transmit them to the firmware in the same way as other 80211.n rates are. Signed-off-by: Bryan O'Donoghue --- drivers/net/wireless/ath/wcn36xx/main.c | 8 ++++++++ 1 file changed, 8 insertions(+) -- 2.27.0 _______________________________________________ wcn36xx mailing list wcn36xx@lists.infradead.org http://lists.infradead.org/mailman/listinfo/wcn36xx diff --git a/drivers/net/wireless/ath/wcn36xx/main.c b/drivers/net/wireless/ath/wcn36xx/main.c index d589a00d901b..e92907a33443 100644 --- a/drivers/net/wireless/ath/wcn36xx/main.c +++ b/drivers/net/wireless/ath/wcn36xx/main.c @@ -766,6 +766,14 @@ static void wcn36xx_update_allowed_rates(struct ieee80211_sta *sta, sta->ht_cap.mcs.rx_mask, sizeof(sta->ht_cap.mcs.rx_mask)); } + + if (sta->vht_cap.vht_supported) { + sta_priv->supported_rates.op_rate_mode = STA_11ac; + sta_priv->supported_rates.vht_rx_mcs_map = + sta->vht_cap.vht_mcs.rx_mcs_map; + sta_priv->supported_rates.vht_tx_mcs_map = + sta->vht_cap.vht_mcs.tx_mcs_map; + } } void wcn36xx_set_default_rates(struct wcn36xx_hal_supported_rates *rates) { From patchwork Sat Aug 29 03:39:01 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: 248679 Delivered-To: patch@linaro.org Received: by 2002:a92:5b9c:0:0:0:0:0 with SMTP id c28csp1602549ilg; Fri, 28 Aug 2020 20:38:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx65ukOhlr8sq63GJZrnhczcuEXNpKW83mDiLnuAp7BM84t7xlYK/wxlNfPVedyLBSUw4U/ X-Received: by 2002:a5e:9601:: with SMTP id a1mr1449255ioq.179.1598672314527; Fri, 28 Aug 2020 20:38:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598672314; cv=none; d=google.com; s=arc-20160816; b=z9STs8JAmSym+T0j+5owT7uk+tO7VOuOm4c0B75G5Q60iPywz56Ni17206aUMgfMV2 +GEawGuk1fxRR35kMg9I4kZB5iU5m/iw5OYc635vZliq0SktwYdV3q9HXiv8eX51NkRH gzLNoNL4oE/tJFVXWN0MQQRcwGbfsVvddMVocKBHZ4i4t9XtfyNcNSpLKQyxai+G3d6f QQ86i45joOx4GcN/c+SD2qZ0G23lNjJDFNgh8VBIVACUSJkpV4cxG7WJ0dtUO6dx5WR4 +PlTjJrk4m15DZ8InXQvFCLMoTor5VmqIPH5980hDCyyQY/bYKsdSxbPQRyptCNsdt8w tuMw== 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=ob8WPsPme0HWtgA+qyC6G6uWfKfzRgRGN8r701/vcwE=; b=hXbvtjASOx52eVPkWDFzMfN3TZqKzc9+/BUQewnhcJAXJsOvuIafyDfWxUtOThb0t3 xLcDlf2BvplZWFFJWNHekgXDn5q7qNki973piQMJIwNmfgCdHyrRoiMc3ZGhty5D+byL cRQcm90LbPGuZm85HD157GBwq9sw2n6PKgQ6Man7Js84/PPD7EjnRK0+BokyRXaKVmzN zRoO7XTowJ4abjuBz2jjEPIcW9cx+UEoXgY7sauVInVjepaqvP11G1GVgBlJSWDGyULK /2uoh1PMfoJffNfUfK6N9Q86RsVEABPk1jhVKZwYTxtzF5H/s4V4dSLNyyMXo0Em8DLr bROA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lists.infradead.org header.s=merlin.20170209 header.b=vU8LuLZj; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=zI1RbSbS; 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 q18si1095885ils.105.2020.08.28.20.38.34 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 28 Aug 2020 20:38:34 -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=vU8LuLZj; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=zI1RbSbS; 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=ob8WPsPme0HWtgA+qyC6G6uWfKfzRgRGN8r701/vcwE=; b=vU8LuLZjWzdCizk/a+/4ikfDC PYfDpOwthtfml+Lfa31E/IzEOzvwGheqv4pszkN+UdIrxURC2vFQFCn8Dom1yOr5jqv46kvaJCwiZ zqs+CxuqFcrw3w5NGm8WgIu/tqMuoeABrmiLeW6FdKPBEHknWgPcIl6hlsfnD4hEMOnH/Pfdh+zQn jCarDZyA7z2iRfGnoOyi+fSTpiFwVoPTXzcwrxVIwT84MwYorx7Gy7GAHoYgXmgqYj89e+QyBSzX3 0wmO6q3llu3tlPAGu6/SZDwbC1OlZFVrdpf6hcdLhu1ZFbPYLUFXVnn++eEH9FLmyKg2EzU5QOYJq hqjOM8iOQ==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kBrhH-0002JD-6P; Sat, 29 Aug 2020 03:38:31 +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 1kBrhE-0002HA-Ds for wcn36xx@lists.infradead.org; Sat, 29 Aug 2020 03:38:29 +0000 Received: by mail-wm1-x341.google.com with SMTP id c19so799423wmd.1 for ; Fri, 28 Aug 2020 20:38:28 -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=F8NDadMddxQkL9vVY4EL66xho6wVXd/4Nkgt+tvWO/s=; b=zI1RbSbS0/45UpyCgu7DAsld3+IS12Zy14XjROrsdhv7V0UfnWJraO8TBPk+Je1dZF MrdFmE3bp1elt7clnECQQrZvjUwHHpJEd1vCB54dcavHw4AQ0wpedg8EaFyxO0HL5LPg fkasMjIPvmmF6z4IqbXUfrtG3LGi6e/tHavpRqP2AWrc7b1ZpQ7jOM/GCECy8vy1uG58 3hsQN/E2CWf0MtPB/6yF+fxZ9Meu7no4KXPHzBId86XLpaDSXdG7bCMYcvXEue0pQ2/p dsH/KMHq4TVNWVmpbovFGH7sbpOM8EXW9CF+NxFXpjrt8UYYD6ntfv+6CrRWkoq4RiaK wU0w== 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=F8NDadMddxQkL9vVY4EL66xho6wVXd/4Nkgt+tvWO/s=; b=PqhYxURCmLHLECwUc0RFhcdQzxz3S2ySH2hTYVLowqH1Hs1MfMQveUrbXfW1maHBFL PM/5oiAMJc6O1JDia3TyPuxPN26A/KmKMN2K3sY6Dr6cwGuRJdGbtuK30QSbAACuw+n3 +lej1Hc6DcY9FwxP68qWR4mrG+lj8LUuVTb9y7uJq5Ia5AOeC3tRfSH49b7ED9fnSimp cY4+wYpr+w5saLw2WGFxUJVLqXK0TF6d2kN3FH0Emw1v0NjXfquoA4ojmFbEzg8yRlhA jz/qQ3aEjrVgWECgKnpTsG3U1/hvvq8b1n9enEYYEPjP+lXacw8BxbTMsDhPBxlDP2yb 2G0g== X-Gm-Message-State: AOAM533cYatUcZSzSF7LQaeqTfRE0XzeRwfEYRoI70baobFEl8rSpIC/ a8Jpc0u0ijYWRO+F8d4kA1lqYA== X-Received: by 2002:a7b:c116:: with SMTP id w22mr1510021wmi.149.1598672307502; Fri, 28 Aug 2020 20:38:27 -0700 (PDT) Received: from localhost.localdomain ([176.61.57.127]) by smtp.gmail.com with ESMTPSA id t9sm1649179wmj.47.2020.08.28.20.38.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 28 Aug 2020 20:38:27 -0700 (PDT) From: Bryan O'Donoghue To: kvalo@codeaurora.org, wcn36xx@lists.infradead.org, linux-wireless@vger.kernel.org Subject: [PATCH v2 05/12] wcn36xx: Add wcn36xx_smd_set_sta_default_vht_params() Date: Sat, 29 Aug 2020 04:39:01 +0100 Message-Id: <20200829033908.2167689-6-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200829033908.2167689-1-bryan.odonoghue@linaro.org> References: <20200829033908.2167689-1-bryan.odonoghue@linaro.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200828_233828_527912_926A28CA X-CRM114-Status: GOOD ( 13.03 ) 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 commit adds support for setting default VHT parameters, which are exposed by the extended version 1 STA parameter type. Signed-off-by: Bryan O'Donoghue --- drivers/net/wireless/ath/wcn36xx/smd.c | 16 ++++++++++++++++ 1 file changed, 16 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 8534d36c3ae0..45359e72a877 100644 --- a/drivers/net/wireless/ath/wcn36xx/smd.c +++ b/drivers/net/wireless/ath/wcn36xx/smd.c @@ -190,6 +190,22 @@ static void wcn36xx_smd_set_sta_default_ht_params( sta_params->dsss_cck_mode_40mhz = 1; } +static void wcn36xx_smd_set_sta_default_vht_params(struct wcn36xx *wcn, + struct wcn36xx_hal_config_sta_params_v1 *sta_params) +{ + if (wcn->rf_id == RF_IRIS_WCN3680) { + sta_params->vht_capable = 1; + sta_params->vht_tx_mu_beamformee_capable = 1; + } else { + sta_params->vht_capable = 0; + sta_params->vht_tx_mu_beamformee_capable = 0; + } + + sta_params->vht_ldpc_enabled = 0; + sta_params->vht_tx_channel_width_set = 0; + sta_params->vht_tx_bf_enabled = 0; +} + static void wcn36xx_smd_set_sta_params(struct wcn36xx *wcn, struct ieee80211_vif *vif, struct ieee80211_sta *sta, From patchwork Sat Aug 29 03:39:02 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: 248680 Delivered-To: patch@linaro.org Received: by 2002:a92:5b9c:0:0:0:0:0 with SMTP id c28csp1602567ilg; Fri, 28 Aug 2020 20:38:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxqwoZ0f5Yg1OLaWqJ5w9uOZEBPlIAodC0OAalwM9BwV2Aj5mbIe/zO5M8M/bNo6TYcCDxj X-Received: by 2002:a5d:8e12:: with SMTP id e18mr705379iod.99.1598672316301; Fri, 28 Aug 2020 20:38:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598672316; cv=none; d=google.com; s=arc-20160816; b=VV8rrqJLZzqawytfqENs7p/e7u6WxipRVoCpsgd0hvSK2X0qIPEq2mxV0N33xtDRcZ 17tdAf8T2rt8JM/uyK8bfMkjUVxcIEMpBhj0DkPh4uwoCv79at47Pjo5y99TCweugLxI CrqeS4LDwIGWkprZQLfIWIlzA48jBVyGvE0CZrm1+Fi31t3nSPxacid4bxTdslyBwSW0 Xud7Xd9Me4V7qxg0/yOGfemu07rSaxojiMwID0tC6UvYs7qXeKa55AnpTlVzIgq9dXND FxBJtYoA2bI8Roo/QMeqD9QopROtlj2F+SPGgtcMytH0wJQm4unge6x5UvUbpntgYd9K UBKA== 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=Uo22tU8oKc7epBUA2YbDgybkT2nwPZozzrtIWUTSFXs=; b=fvRnhCx0FcMokzA/2Xq35sfTnpsSFI2mExGrCdoqDbw92i/UnUkak7oyPG4ltuC15K OzA+pQPSq32vrux/DwVtrpeuDXqH1cSBZAmqxHryne0NvWir+I7NvL2Jd5/q5+zW1zZ7 vpFe43XNC14Z3vME7e0MZy3EoIESclXiXoIkuWIJOnkxHf/5cpFo4JtRn0LlxfLse6Op vZGKRe5W+Tsxlv2XKXyoFaLtU/Dc8xVgaiogzJ32a2101wu7KQcXL+iSercj/J4ceOU+ pg3qHAO+2DVr90JK+xnlTInlxoeMSRp4OzMG6zDTlgBJiXKu6dbMJLlbABPoidbKw9kE k25A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lists.infradead.org header.s=merlin.20170209 header.b="1A7/ajH6"; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=tFc+jhuO; 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 i12si1137229ilk.10.2020.08.28.20.38.36 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 28 Aug 2020 20:38:36 -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="1A7/ajH6"; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=tFc+jhuO; 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=Uo22tU8oKc7epBUA2YbDgybkT2nwPZozzrtIWUTSFXs=; b=1A7/ajH6QRdWJFAMczckyzbIN 2jgb3vcydcqe5SjyrOcuGjyOhHaZEwMtZmcb9mcDSCWR0GoG/K8xbEwK02O8vMSnxvBGZEH2Ohy2+ /YWZUFo1s1iWfw51+c8MwajmdTLIPPFjCNzmFwtUr9DEVTDWH5+y2+QgcVCzwkU1TnmLSRnd08pQ9 90o+oOkNFLlSvhGaZgtBMNP+LCQwd/wS70d7ceFfLygFaaLPORx/4V9rMFB219+fpXk266yTViR3K FiY3pnryCtvD1Q2Dl0bvPhgatsp7mpmKvlRACOMVLFCG25jOji+yqo+tddpWUXJ/oS63DL9ldYWtU Ihu4E97/Q==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kBrhJ-0002KJ-0g; Sat, 29 Aug 2020 03:38:33 +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 1kBrhF-0002Hr-MU for wcn36xx@lists.infradead.org; Sat, 29 Aug 2020 03:38:30 +0000 Received: by mail-wr1-x443.google.com with SMTP id h15so847932wrt.12 for ; Fri, 28 Aug 2020 20:38:29 -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=Nw0ynGFCG+q9mOyMnMyXRqRYzplLQrlsLY+fl+O+R1g=; b=tFc+jhuOvaf/IhUgxEvbzVJtii6FUuS3haW2/YczCBTPs3vneSeda95BNkYMnJ+vrc bxSWG21p1VyM9Ndoj/RQ0pT/2qUS7s6TRtksUqgGMhEuKZd68u064NWakbZynEVjDJ5T TkX3wZINdU48/UKp6JE/pgxTp2ZnT517UliFTJ0JULKeEzhYrm9UJ7LiVdAoTTvJsCSV d4o/26NsTQwHizbxrYEcFw6bK8DFjgJWYDnczjuDMYFeVWyzjPcW4L/MyvYCsb4ylnAl LsllhwmRJUtqdLPqLoWccAwewEyD7wZfPC5MTcn07+f+Oi0RRT7aRM5ZnZXrynBJOx8x TwIQ== 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=Nw0ynGFCG+q9mOyMnMyXRqRYzplLQrlsLY+fl+O+R1g=; b=XdfaBv595cbFL5vifTKw9r+OY2FhCQCWXUDHTsMpN99u6EBxyxoIzK+YRw4jc874NZ 1eUzR3nRx+Dwq8NctlZU/vXIvqOtPFAymlLUb9d/pUCiutwwCaxxz2rwpFiVtK2z7dGp cxmgkHtFQVFOzvrVINNrptKcrrNMISDdpzGwlo6UD9u/yCELT0Rej00z5se22gXOjYKl WGzpxH2NABBBt5IfRbtsy1wrVVg53iY3a48eHmKmwMA5Oyrz3xD0fUlGIiSeW+ta/Yn8 TNuCUEZBcDScamBIW578o3d4ukT9MlQqYatRhq6fkhDGFRfichXnhqgQvFMsyjCecA2j +f+A== X-Gm-Message-State: AOAM532PYKK98kD7mWDBanrcR9VN52dabi8dFXUtyGVWw039LbMqtuJ1 g1aqSqE5QRnonTX3TChktDvORg== X-Received: by 2002:a5d:458a:: with SMTP id p10mr1781530wrq.187.1598672308820; Fri, 28 Aug 2020 20:38:28 -0700 (PDT) Received: from localhost.localdomain ([176.61.57.127]) by smtp.gmail.com with ESMTPSA id t9sm1649179wmj.47.2020.08.28.20.38.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 28 Aug 2020 20:38:28 -0700 (PDT) From: Bryan O'Donoghue To: kvalo@codeaurora.org, wcn36xx@lists.infradead.org, linux-wireless@vger.kernel.org Subject: [PATCH v2 06/12] wcn36xx: Add wcn36xx_smd_set_sta_default_ht_ldpc_params() Date: Sat, 29 Aug 2020 04:39:02 +0100 Message-Id: <20200829033908.2167689-7-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200829033908.2167689-1-bryan.odonoghue@linaro.org> References: <20200829033908.2167689-1-bryan.odonoghue@linaro.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200828_233829_768126_D3862F24 X-CRM114-Status: GOOD ( 12.41 ) X-Spam-Score: -0.2 (/) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (-0.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2a00:1450:4864:20:0:0:0: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 Toggling the LDPC enabled bit is possible only via the extended V1 data-structure. This function provides a means of setting the default depending on chip-type. Signed-off-by: Bryan O'Donoghue --- drivers/net/wireless/ath/wcn36xx/smd.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/smd.c b/drivers/net/wireless/ath/wcn36xx/smd.c index 45359e72a877..cf20a0f63259 100644 --- a/drivers/net/wireless/ath/wcn36xx/smd.c +++ b/drivers/net/wireless/ath/wcn36xx/smd.c @@ -206,6 +206,15 @@ static void wcn36xx_smd_set_sta_default_vht_params(struct wcn36xx *wcn, sta_params->vht_tx_bf_enabled = 0; } +static void wcn36xx_smd_set_sta_default_ht_ldpc_params(struct wcn36xx *wcn, + struct wcn36xx_hal_config_sta_params_v1 *sta_params) +{ + if (wcn->rf_id == RF_IRIS_WCN3680) + sta_params->ht_ldpc_enabled = 1; + else + sta_params->ht_ldpc_enabled = 0; +} + static void wcn36xx_smd_set_sta_params(struct wcn36xx *wcn, struct ieee80211_vif *vif, struct ieee80211_sta *sta, From patchwork Sat Aug 29 03:39:03 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: 248681 Delivered-To: patch@linaro.org Received: by 2002:a92:5b9c:0:0:0:0:0 with SMTP id c28csp1602573ilg; Fri, 28 Aug 2020 20:38:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJydDMh02szYIcQPlymoZLNx0219mXvKKEz9TGndi660W0wJiffOVfDlP+lYvt0bi2HkF65C X-Received: by 2002:a05:6e02:686:: with SMTP id o6mr1429619ils.188.1598672317021; Fri, 28 Aug 2020 20:38:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598672317; cv=none; d=google.com; s=arc-20160816; b=JIAcmYM1eXIqVYQUarnpOqj1XPFv/eDJZK0gtfvGg9ZdPtxrE/g6vKyE8OFqcfK4ID hictFrEqQCvnOW8TgEKZrFwHPnxB6VeUUw/haNmk2A2z65yycPqkPi8zNoJjihhuJsKx /9algT6WTH3lxvKTjwdx71yGfCCWXLv/3eccHHsTtzHhpRcYvTOMx1tdrANSq7KlIzt5 zfMT+gPd4FGaZke9OTortXey8SYXkKeudC59EbDoxgxcjGz8bsx6iyI3V0il71KuvVAD xv8ZWVGFbMAyukLITNuJu4QFtn6hFwgMTuUjB5iRZlUMuLvbMYLmXU2GIZwkNWzuFStE 0z/Q== 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=1IXeAFLdOgK8WmroMvVQnJPJdc3zEyw/72w1saqI+2I=; b=OVU6TpTPeHvqJO9d8J/TOR2/c3j164jQjOehgTupsh4MHl5B3AYRKd7T7IC0OopwSj JTSIlRvbc1lSK/BeG2QBsg83dGUv8hWaC97jiC5J0hYWc2fY1vaTPBVq0TDqbCfJdZfK uUulYgx9V9vs3uZBe4c52VvcWvT4XD7gmsqjVHitYS+V0v7EqcIR74s3M1nj7osQ5QFU 68fK10wLj0NahVD8PU82H6kTChhZu/QZYtCup8f9zyD2oDueaSezhRKG36j4Zxp5SzmV cKyKtadWzBcQRpT6d+KeBG0TvFrCrctPtS4M6NcC8cMy2CWjo/BMAl1BdRWdd6Bz0v0y 0gEw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lists.infradead.org header.s=merlin.20170209 header.b=bSrPvQWE; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=chkDDSvX; 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 v66si780101iof.4.2020.08.28.20.38.36 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 28 Aug 2020 20:38:37 -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=bSrPvQWE; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=chkDDSvX; 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=1IXeAFLdOgK8WmroMvVQnJPJdc3zEyw/72w1saqI+2I=; b=bSrPvQWERfSXDcu1YHlEFCiR0 QavmVhyjQIXytWSMC9LPebJuz5u64dvZ4GJnOZVqcf5HRcIvnZsrijKcBFHGy46x8gcckUmql3hbj NTXG1hou56aYLnob4YzGgWq0kpjoB3elgbsP6fWfmYtrUzvapYqCH6j3qQVBlbsPfmH8K8kMLk9xm i2GUbVphWyP9GDX/YJWjlyUolD7HFuDLbzRgNCMiKDI+bJ47JmnPvBahOND7Q7G+Nvd9zcTSd0n7g qb3ogY9M+cA2TyBsMPxfU30uNlcijKD+5ABprnmLN9Dk51NiRTU6vdCZeZ8eWw4u3ZAd9eYZrcw5O 7/m15iEqQ==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kBrhJ-0002Ky-PD; Sat, 29 Aug 2020 03:38:33 +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 1kBrhG-0002IS-M8 for wcn36xx@lists.infradead.org; Sat, 29 Aug 2020 03:38:31 +0000 Received: by mail-wm1-x343.google.com with SMTP id e17so742305wme.0 for ; Fri, 28 Aug 2020 20:38:30 -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=TmR05A4AK9OYzFaj9nhkuPpkc17LEC7HRemOYw1ipAM=; b=chkDDSvXyNhrlh1LTOIS4kjVq/z8+YDiHm+mGi0xHbX5Z+p6tVgWEP76vX1T+YdJ7Y fn8BNI1hq98BdC9JnWYMcn00sLk5aNJ3WtcqSw4D3ofaHeekkXR5iqGFEQOxZ4pKjCBC MVNMOc0YCji8md2v0Od7Sw10neR8GBdE9MLHREjWbneYZFZz/xjP87acfiV+wp8hI7SI g+Sr7RYwwG0q0Tof6LiBcOFh5w3IK2g1ehk1cxPfI7UqPia5jGHa7p01rq41dsZ4QnFu VRDki7nJdYuSyL6PP7TTG7iYSAmKuCnSAzpyrDoVLSdjgYun49PkH2uNmA/SasSgsyDw ihHw== 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=TmR05A4AK9OYzFaj9nhkuPpkc17LEC7HRemOYw1ipAM=; b=e20yUf63mm7osPQWiWik2v9m8543TxTUzG7jgjvANALpWBqOQINwJLycu8t58NrEXP CtwScXfCMkr388MVWAB9sT9KYc4BB9+AOVsZ0XwITtKo7uS5k5KWZv2B9Tx14QZuKzDX D/0uuGOhXz+tv3rKmfqozbfzkZWSffb97UBIpVlbXkOD5wHD9O3BNwSioYFsVLXzyRMi 3rAKK3LtwaKt3R9cfmoN/GJKeMVkLkQqt486ZQdqqgbyiclXeyatIAC5II2wSFF6ixBv b78t22dJin46G5qAy6HzzCzagL/xjxcn18d8QteOAiAZ7J+xYIFcgivrvB4rY1DYLRlB 5Zpg== X-Gm-Message-State: AOAM5312PjRS33NATZYQik/lNWWrmJsn5UolJeXv2F6/MqSgXVMwRDsg 4/xLU9cQjQNhdXfLgvyLTijGXnYjiq7qE5Gp X-Received: by 2002:a1c:2985:: with SMTP id p127mr1431306wmp.166.1598672309743; Fri, 28 Aug 2020 20:38:29 -0700 (PDT) Received: from localhost.localdomain ([176.61.57.127]) by smtp.gmail.com with ESMTPSA id t9sm1649179wmj.47.2020.08.28.20.38.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 28 Aug 2020 20:38:29 -0700 (PDT) From: Bryan O'Donoghue To: kvalo@codeaurora.org, wcn36xx@lists.infradead.org, linux-wireless@vger.kernel.org Subject: [PATCH v2 07/12] wcn36xx: Add wcn36xx_smd_set_sta_vht_params() Date: Sat, 29 Aug 2020 04:39:03 +0100 Message-Id: <20200829033908.2167689-8-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200829033908.2167689-1-bryan.odonoghue@linaro.org> References: <20200829033908.2167689-1-bryan.odonoghue@linaro.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200828_233830_790782_F7D6267C X-CRM114-Status: GOOD ( 14.09 ) 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 This commit adds support for setting VHT parameters based on the declared VHT capability bits in the VHT capability structure. The bit-field TX-BF is purposefully left out since wcn3680 is the only wcn36xx that can do VHT/80211.ac and is not TX beamformer capable. TX-BF is a dead bit. Similarly we cannot do 160MHz so VHT Channel width set should be zero. Signed-off-by: Bryan O'Donoghue --- drivers/net/wireless/ath/wcn36xx/smd.c | 20 ++++++++++++++++++++ 1 file changed, 20 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 cf20a0f63259..e44e4a21153e 100644 --- a/drivers/net/wireless/ath/wcn36xx/smd.c +++ b/drivers/net/wireless/ath/wcn36xx/smd.c @@ -174,6 +174,26 @@ static void wcn36xx_smd_set_sta_ht_params(struct ieee80211_sta *sta, } } +static void wcn36xx_smd_set_sta_vht_params(struct wcn36xx *wcn, + struct ieee80211_sta *sta, + struct wcn36xx_hal_config_sta_params_v1 *sta_params) +{ + if (sta->vht_cap.vht_supported) { + unsigned long caps = sta->vht_cap.cap; + + sta_params->vht_capable = sta->vht_cap.vht_supported; + sta_params->vht_ldpc_enabled = + is_cap_supported(caps, IEEE80211_VHT_CAP_RXLDPC); + if (get_feat_caps(wcn->fw_feat_caps, MU_MIMO)) { + sta_params->vht_tx_mu_beamformee_capable = + is_cap_supported(caps, IEEE80211_VHT_CAP_MU_BEAMFORMER_CAPABLE); + } else { + sta_params->vht_tx_mu_beamformee_capable = 0; + } + sta_params->vht_tx_channel_width_set = 0; + } +} + static void wcn36xx_smd_set_sta_default_ht_params( struct wcn36xx_hal_config_sta_params *sta_params) { From patchwork Sat Aug 29 03:39:04 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: 248682 Delivered-To: patch@linaro.org Received: by 2002:a92:5b9c:0:0:0:0:0 with SMTP id c28csp1602576ilg; Fri, 28 Aug 2020 20:38:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz/9hc+Gc3GCYY1XD60x+KzWgOWDkZ/fl4fWaj99aaxPtjDqKAJBf6/zxra4o6GHasCDsh3 X-Received: by 2002:a05:6e02:1387:: with SMTP id d7mr1480694ilo.182.1598672317364; Fri, 28 Aug 2020 20:38:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598672317; cv=none; d=google.com; s=arc-20160816; b=KeOmKMdNTdxXvND7dQF5UcPSsPm91lwVbbeyc6GZHJbiEpSbiNCUNI7JC+tOq4jE5T /dky7hd75XvnZCCcJTziECe4TpOpSFmAK+oFZzzZGr8Ju6aSyoz+GJ2yEDrHoPgVun1i M6iuSawJ2iPtURoMaMsANhtj1ZB41AwrCl2BY+CtTFuR9G1sWSA5eJbcIkiWLpQ6eoet AyigLQLG5/O4naFCrNgfusc/mU6bJa+xe1XoZKSuTmyIe9WK80GlGKt4/P1v6Mtt/TZN IOB/HJo45oBTBRLNGnWLfZYPYTkOoOAYwkyUk4IC5JR2ItpA8t1hV5ZWVzNj3EXdlIzo hzig== 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=h/SYpoJtWc3GZfzfKQ1sSTtO5UCLfPnJjNkyVdVtL+U=; b=Z+ftYHJWg03MZf0zW9bERw9USeL+qfQXszJi2UZyfh0jZZ22gSLnC5tM/bXEUI3Kaw ntrFXDautdYufpH3IspuLDn9xUSUjSHgMdFQDWJwBX7E0DU7AUAkB2dMp+pmYm2coQpZ GdFQeBauJYk6qC/XhNU9PyingpA910cW8H9dYM2zXSI0pUpDmzF74DL4XwfyN0i0GZ+H C8oWPxwR2SyCJV9cFx+EQ8Eo6J7BCP7nhUg8tgVhgqWS4kK+mnveys+EIwtnQ9Iijn7B 6lLHevsM86O6sjLpI6bormlC3oylTfCkZOQykBcCRyZW9ypj8F2/uSIr1sN2NpQzXaD0 0/cg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lists.infradead.org header.s=merlin.20170209 header.b=w8NPgCfR; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=vfzq8nAR; 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 l18si503381ild.25.2020.08.28.20.38.37 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 28 Aug 2020 20:38:37 -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=w8NPgCfR; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=vfzq8nAR; 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=h/SYpoJtWc3GZfzfKQ1sSTtO5UCLfPnJjNkyVdVtL+U=; b=w8NPgCfRvVEFZsqr15arI/AHj OtatAiNaUfGyDFTUrvKCXxh4J8aXwHHRshRcza9KvqUVTymslyFgCw3nEd4aytfsNMHa7buIhpBjb BG0BGhVqEC25iyIgyZSekIWjZbNOhLcZmUrfPhvBiWZE2ldyQfwdrbBA5QdvlAbnYrUGZTmkPU0dq 6XsFp+PYkC+8Gi+MBOzErscy4HH6dNfirPtBgUjarkeScotxQxoXQl2Zdoyxm9mk6Jm+UXr4DPsed VUH+q6oP5r7Be4haS9J0xYWWi0XZp7yphezxcl/i6FeJFwQcF/L4oC4jhPi3u1fs/Oh009HeLv+ft robQpAZjw==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kBrhK-0002LW-BR; Sat, 29 Aug 2020 03:38:34 +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 1kBrhH-0002J8-GV for wcn36xx@lists.infradead.org; Sat, 29 Aug 2020 03:38:32 +0000 Received: by mail-wm1-x343.google.com with SMTP id y8so802909wma.0 for ; Fri, 28 Aug 2020 20:38:31 -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=YukgF9ny7x7bUouMS+yibqhw3SZTHLceFKqCja3C2JQ=; b=vfzq8nARrDNrxKHgWhybVRWKHk13HdNHCNfoZgcR5bNWd8iN/NfR0vDreMK45Pn6zD +Mc37QIf8lB+ufdVsAOA8vtmUCk3YQMAJEfwyjzugO/ebFzcsWvWEjW+nQnBBTXr3sYB U4ynH7PHySupCczEE/sy1pQhs06Cfxp6nWVu2vo1CXOHfp9VmLggScttxLhpzrLKy3F7 6rAhjkTTVXHS7xLr+id11IcF/WUxSMvuX6WhQAJCMAYLIwzvNSOu99doWER/r1sec501 dLkS7tH8l54/DnN+bKaM2llbk1/DJ0INfMPv6B+NVNc0ocyJdTYshP1QF0mRE2buHDDE cHaQ== 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=YukgF9ny7x7bUouMS+yibqhw3SZTHLceFKqCja3C2JQ=; b=nJDWntxKvG3zKcP/5ymJgKYLgmycMM2QKxR+5N0l4rDTZEQ56Jh+SVPSbBq5XCb/r8 hli3eL5msfKgcCwQApuMijB961Mrw9vY+eaBBdB3YmWxvHsachyy4IRo6IlHjfm9QcrD pQXWbtatwn2r9QoiLFDvQi1UIrezbsW7zDOxl3rbOQt9TR7U0pfNsHF2nkxtLL8D7mz0 W+6ehspq7wvu1MLcxuPWHGlDdiyVeDcvexpkvSnt9+h0TbfHG9LoDWoeIEm2tWtKX2xL voxXZLJhT1waUbCypQmtu+RJKKQINx81+rMaGjg9q4vqO9MkAS5VPKqya/g8bfX3IDD/ ExWQ== X-Gm-Message-State: AOAM532xw8kQi3JFmg8diRcvDnmXxaK703ffYugR4F/gCTDQMwZ2beC5 B0D6QgkqyXGN6Mv9CmwAYgdS2fra3BmhQvBd X-Received: by 2002:a1c:56d6:: with SMTP id k205mr1465262wmb.88.1598672310743; Fri, 28 Aug 2020 20:38:30 -0700 (PDT) Received: from localhost.localdomain ([176.61.57.127]) by smtp.gmail.com with ESMTPSA id t9sm1649179wmj.47.2020.08.28.20.38.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 28 Aug 2020 20:38:30 -0700 (PDT) From: Bryan O'Donoghue To: kvalo@codeaurora.org, wcn36xx@lists.infradead.org, linux-wireless@vger.kernel.org Subject: [PATCH v2 08/12] wcn36xx: Add wcn36xx_smd_set_sta_ht_ldpc_params() Date: Sat, 29 Aug 2020 04:39:04 +0100 Message-Id: <20200829033908.2167689-9-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200829033908.2167689-1-bryan.odonoghue@linaro.org> References: <20200829033908.2167689-1-bryan.odonoghue@linaro.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200828_233831_667895_A98C877B X-CRM114-Status: GOOD ( 12.28 ) 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 Adds a routine to allow setting the LDPC bit for HT parameter passing inside the version 1 STA parameters data structure. Signed-off-by: Bryan O'Donoghue --- drivers/net/wireless/ath/wcn36xx/smd.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/smd.c b/drivers/net/wireless/ath/wcn36xx/smd.c index e44e4a21153e..a6106ba9cc89 100644 --- a/drivers/net/wireless/ath/wcn36xx/smd.c +++ b/drivers/net/wireless/ath/wcn36xx/smd.c @@ -194,6 +194,15 @@ static void wcn36xx_smd_set_sta_vht_params(struct wcn36xx *wcn, } } +static void wcn36xx_smd_set_sta_ht_ldpc_params(struct ieee80211_sta *sta, + struct wcn36xx_hal_config_sta_params_v1 *sta_params) +{ + if (sta->ht_cap.ht_supported) { + sta_params->ht_ldpc_enabled = + is_cap_supported(sta->ht_cap.cap, IEEE80211_HT_CAP_LDPC_CODING); + } +} + static void wcn36xx_smd_set_sta_default_ht_params( struct wcn36xx_hal_config_sta_params *sta_params) { From patchwork Sat Aug 29 03:39:05 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: 248683 Delivered-To: patch@linaro.org Received: by 2002:a92:5b9c:0:0:0:0:0 with SMTP id c28csp1602588ilg; Fri, 28 Aug 2020 20:38:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz2jSFyx/TaueJ0eEjXKhMxanqNqZze7GnWMegEvP7BIeCAgHFET5cbFqMVn6fJWxURpuGl X-Received: by 2002:a92:c0c8:: with SMTP id t8mr1429041ilf.245.1598672318582; Fri, 28 Aug 2020 20:38:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598672318; cv=none; d=google.com; s=arc-20160816; b=HA0f0dvc/IhJvI2pgkOGIzNgIeajCXWdVO+/OJB++FJKzRb2t/JVaOu8DVrni8XPSN ifbbrGNUOQXKqA0/9SXuvvcJDdLIp6aYcm7FkhzNEejvhxFMk8GWU23IX8i2V96h1Mvg 0hSMxjdkMsRj6MaRyYROh1kgo4i8W+Z27K0GJC9ybUS6IpMZVlRwGIHqRVABQl5TdwA1 XJo9/xyTW/GBjXCg/T7RwLA7Zl1G62G6z3fCnF7IYd6cOlfL22OwBbR1d4frpmhlc9+t on8D0dkV8urkdiJI94zfle4DLbY170vqe/wGG/zgvmagCtIGDYo1jg+LAPqxRC5j2rs4 ZMNg== 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=A8Iry9cWWPxDeyTi2MLltB3e6C8kOnYL1tyL13J0xHM=; b=VKlZBE0DdVe53YfSUfxUvgdMu1DUwAeUYzKp/bKqkLlLYg5yw8P/o4yN49hvqJ0aGD NBE5EgI+1kxTEefeC9kEOTb6HVLMoaDxstvEakpiEzzKWF18FuKYF/gU2IkUv+lOQmRQ OgI3R8Oc6jKWqmhASvz0uG7VwvNfF8mTl8Gyxt2BA9sQmd+DH69rMuzNEw7itKL6nPxP mHTegZmc8eo8cct0tyA6yJfx2ER83lvLIY1QmDUAhNhjfXavRNe02ntIMMQyx7FqfoQY xM4fRgSX/XjOKN2oDe4hkRVbmaoxrGkP+e+Z105JBZsyvArB1J+5Oi5n0lw7VKRjcZCX h8Og== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lists.infradead.org header.s=merlin.20170209 header.b=aueEn33Z; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=c5csRQit; 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 r13si778082iod.0.2020.08.28.20.38.38 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 28 Aug 2020 20:38:38 -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=aueEn33Z; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=c5csRQit; 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=A8Iry9cWWPxDeyTi2MLltB3e6C8kOnYL1tyL13J0xHM=; b=aueEn33Z+eDu8VXdxRX5fuOIB I2EcLne3oB5R3ERnL7dvkolhILstnnTAQXO6Q1/H3Ij6LJVNJWkv//fAjxuhT/+X+uhN9ji/cURIs GX4r3IDun4m95ufPWBmCoNGh11Bb2Ui4Rxgd6keJ+f+cdCAu1IH9B4wvgEI7z0BX7npmisHzmczVu TxZVsOkrhH4TGSDz4n7hDCwjNtKpibq9TdLn+FfN8n5y6/somFPujE+jlmecSBTMrCgaMDAu2293F puQ7vtz2A+0fixE1C3DEiCGRPUaWaCMyZDZpMk+abV5mWKATGczH33YOhV/kfDXs4Ti50Lbhrs14S VfZCdrOfA==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kBrhL-0002MY-MW; Sat, 29 Aug 2020 03:38:35 +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 1kBrhI-0002Ju-OQ for wcn36xx@lists.infradead.org; Sat, 29 Aug 2020 03:38:33 +0000 Received: by mail-wr1-x442.google.com with SMTP id e16so894681wrm.2 for ; Fri, 28 Aug 2020 20:38:32 -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=LAUjl4qBWaw4FcREKzPLcJ67Zc3Yyp+jTDTvGFFFspg=; b=c5csRQitPGDzMhYdd0ShpPj6QcsJdqwWprevOTnXxEApgBLAqjvR4YO5xjoUeQbgNO gl4cENIUNCuxH5z0awvX0dno2adhCrE2KIPB8VwcttmYu6VkfXpr+ic6xdo+lQZELrv/ agbwA6GNL11ftA1z7cx9bPmXj3Ka/Q0Wlr3Uvty7Wv5RIR3easZEIsdRafGWoestijim 0Q00WclE4CiPNCAx7Zo9g9BatU5YeaHHXz/mCiAPwuyo21SsHk9Fp0O28IMQ383Cvafy 0Cit4J2BPivECRtXHLGX+tqLucaBVDSrBPsUWN6HD0ucXTDQB4/3bE7VWhDgW7uTDt8b DVhA== 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=LAUjl4qBWaw4FcREKzPLcJ67Zc3Yyp+jTDTvGFFFspg=; b=S4UJUG2MGTEvnfzTuZKKj1kEQ1N+pqFNP+9bKDzbPXb5Ls4/OfUU9QFdVIuGZa9KxF ch3xmZ6B2MG/P4HGYLjXdvrtGdE2FzX2wvFyClWx0kngt4d9AOgY/Ov1z3qKKXngoOzl hLNPYTq8vDCHs3AhMfiOn9zdH7rp5Ob41iUyzrINYe2oYmRoTcnR5XgV7C6N9RX6bq/P NaYxXfygv/tc5QwOOuClV1euA4a7wI0tkuvZ89ojHiI9gu1QmuwFK+XHDwlc0+A/Revt EDy53cwbfmL2u+4RXDtuYyHmr1KLPlgxESEsZIc0DBRXODx38dhYqmP4ai9eeF1qUUeU 1Ulw== X-Gm-Message-State: AOAM533L79YvMKgUZ30nYNRCx9IsVztQ9xnyCCkAGXq9Yd7gWVtwYtd/ e+l9ruLfzKGR9TjEl+wMEFBTIw== X-Received: by 2002:a5d:50c7:: with SMTP id f7mr586054wrt.367.1598672311921; Fri, 28 Aug 2020 20:38:31 -0700 (PDT) Received: from localhost.localdomain ([176.61.57.127]) by smtp.gmail.com with ESMTPSA id t9sm1649179wmj.47.2020.08.28.20.38.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 28 Aug 2020 20:38:31 -0700 (PDT) From: Bryan O'Donoghue To: kvalo@codeaurora.org, wcn36xx@lists.infradead.org, linux-wireless@vger.kernel.org Subject: [PATCH v2 09/12] wcn36xx: Add wcn36xx_smd_set_bss_vht_params() Date: Sat, 29 Aug 2020 04:39:05 +0100 Message-Id: <20200829033908.2167689-10-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200829033908.2167689-1-bryan.odonoghue@linaro.org> References: <20200829033908.2167689-1-bryan.odonoghue@linaro.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200828_233832_818925_7DE7F250 X-CRM114-Status: GOOD ( 12.75 ) X-Spam-Score: -0.2 (/) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (-0.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2a00:1450:4864:20:0:0:0: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 wcn36xx_smd_set_bss_vht_params(). The job of this function is to decide if the BSS is VHT capable and if so set the appropriate bit in the BSS parameter structure for passing to the firmware. VHT Channel width set is not set since we don't support 160MHz. Signed-off-by: Bryan O'Donoghue --- drivers/net/wireless/ath/wcn36xx/smd.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/smd.c b/drivers/net/wireless/ath/wcn36xx/smd.c index a6106ba9cc89..b311b170fd36 100644 --- a/drivers/net/wireless/ath/wcn36xx/smd.c +++ b/drivers/net/wireless/ath/wcn36xx/smd.c @@ -146,6 +146,15 @@ static void wcn36xx_smd_set_bss_ht_params(struct ieee80211_vif *vif, } } +static void +wcn36xx_smd_set_bss_vht_params(struct ieee80211_vif *vif, + struct ieee80211_sta *sta, + struct wcn36xx_hal_config_bss_params_v1 *bss) +{ + if (sta && sta->vht_cap.vht_supported) + bss->vht_capable = 1; +} + static void wcn36xx_smd_set_sta_ht_params(struct ieee80211_sta *sta, struct wcn36xx_hal_config_sta_params *sta_params) { From patchwork Sat Aug 29 03:39:06 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: 248684 Delivered-To: patch@linaro.org Received: by 2002:a92:5b9c:0:0:0:0:0 with SMTP id c28csp1602599ilg; Fri, 28 Aug 2020 20:38:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxS+AeeLuWD8gBLaGbRVgGrS+uSMrLb7htpjeU2grYpB1lpuwuqXfVtxI2Tt1piaT7mODMq X-Received: by 2002:a05:6e02:670:: with SMTP id l16mr1611008ilt.52.1598672320295; Fri, 28 Aug 2020 20:38:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598672320; cv=none; d=google.com; s=arc-20160816; b=vWNI1vlCHFg+L+x+95XfWD0PM2SoEW7QGJs2SWgwQuj+4BMNv3F7teUKEcPIYVPsfM mpP6OChHr/0Flf7gxBBGv3Q0LoD4FJ2tF87fesN/au2NAH9c47yt9NZZ6S0TocF7VQbV /C4TVT5+JF194MnjIB8Anga+P3Nu534N8vwXrHL/VxDIzi9s2JL+YxNUybll14BldTG9 K+SowA8uDMjpBj8apjvbxTyqQlQfLqpgMjAhNnLWPeMvTz7pdK7xOvcCJLtUQEG8xD/F //H+tDyT16Ie1+H6OiczUIyiS0tkPTSXDkmmx/xpihQTa3tCVG2zCev6C6j9JPNbpUdL IAMQ== 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=Wr3XQXjYnulkJl6kUEslQX5RR7J1NCJjholY/5ReGc0=; b=Jg0pY0BodzsgVpcmY1b5J5K7G57lZ7cWkx3mjcY1KC6MQmGAYglCuRRkmve1QqAmAt uURGp7ZFawtKCqqXqhbBEv/IyX7awkkEtwlZ3PDyG6RDy2h1jk8Iv11zmLJ6Po57PT/P vYMsTwtkt4YzLpKJXdZv/EswNIcnND0lSpaxG9PDisYWR0z5kD4q7me1EhsHVfE2Zf98 fO2/ET2fWcNdUUtz5+pGi0tm+9qlim+vJrl/auNGVh2yAHfwNZQLnWU+U7II6uU0cWHN aAf0+ZcbyunjTI4VF0nWQ1a8htQ+VVstseHAPzjebgXz3F/KB7zE8/wrve8fk/P5mQa7 XonQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lists.infradead.org header.s=merlin.20170209 header.b=V5XLBfjD; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b="HsD/yBUE"; 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 d15si1079900ilc.71.2020.08.28.20.38.40 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 28 Aug 2020 20:38:40 -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=V5XLBfjD; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b="HsD/yBUE"; 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=Wr3XQXjYnulkJl6kUEslQX5RR7J1NCJjholY/5ReGc0=; b=V5XLBfjDb1LPle0eo3yQfU3p+ AxpkCa6gL12GoSH8FbSx0vwUnnCLfoG98eSEFt8ztax2KrL13ZLM5I7gqqxzg/aW20yoldR+GiOle sLQqpMqvUvvyPw+b/0i2CvZ5l/VVCYfZPQHCi4yHAV67jSPgt4HL3MmeRK2WXgp2ASkN+JljWLjWO CfH4aJQrkJjlfTDeS//16X7Brxlz/0El25sGbBDgK1tSAPvN0YxfV1T9RQ1tWjLUHj+MB7fjcbmwU NuXuoWgHgjtZlu2aOIzsexecxAxt+/xwWajQGoFUN94hy7gonx6eFnxYkJV2iDRYS8clz/zmnolnd +2+PWadWg==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kBrhN-0002Nb-8i; Sat, 29 Aug 2020 03:38:37 +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 1kBrhJ-0002Ke-R2 for wcn36xx@lists.infradead.org; Sat, 29 Aug 2020 03:38:34 +0000 Received: by mail-wr1-x441.google.com with SMTP id x7so890708wro.3 for ; Fri, 28 Aug 2020 20:38:33 -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=0RMYH/02M6oKiIjtt+8hGNskxoP4IIcoXrMVBUBG1Lo=; b=HsD/yBUEYbSEtZLLJw3SgUCr9d8/UuJi6LSbknVKix1y7/gVJD17qoniEXrxPxlnjQ NJ+sPqQRkF11QZ/x9YFG+1UOVibOS/ByBFPBqIovhHzEhRFRoKxjSuHVcjrGx5BZ/Vxp rdojZojW6laTHl9WODWrZ5ERS1jWWjX6FwjaCPHRBIVF7bTFJfi3vHhZL3JDTERu/4Jd ZcNygK6e5+7LtF3k+4TdOzuuQXdS6mTtyIjIa2a6/YWKr9+DqUqV+2hCmoyajF9sqt2q wdvadmpLl66SwGmc0kVVp6uRCbzSANiviTO9JgiCcja0wJlKtKAKg84DDsIqkGcbavgz EzyA== 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=0RMYH/02M6oKiIjtt+8hGNskxoP4IIcoXrMVBUBG1Lo=; b=TLrbgIS3WcXiODSsuPSJuijt6Eshp849TSkcRiVLgqfETYympqHIWYMS/nKQWdmMEv fPy9YO4cPn25AhdoDYKZT+h4E+ygOJ2GNwX+g5lTRTXAoercsrrysbSNuwrJhHIjjq3R G3Vi4l/fLo8SK55DBn4NUfPI99RtyWmPktfbv1H9mMastejhAmW/0dfNhdydKY0ECZZA WZs5xuOdbKCawT6xqlOmXeyq6lSu7eR7G2+Jck+xDA/9lXlnlqVBPrFz5oJ9Ac2BP+Rd 5YLC2P1Mxy39kUDF/Rk8r+iVC6d6gE1HyrTSthRaFiwr7SLDATrCVdXsQRWhraq+rGtA EpTg== X-Gm-Message-State: AOAM530jPulBwgZftpqdFmpoOrnIehowGgPBJZ96iVO7J7tJ0Nd4ttic iHg4D9WT8XEgz/UQeLlxcCsKCg== X-Received: by 2002:a5d:56c7:: with SMTP id m7mr1695838wrw.322.1598672312952; Fri, 28 Aug 2020 20:38:32 -0700 (PDT) Received: from localhost.localdomain ([176.61.57.127]) by smtp.gmail.com with ESMTPSA id t9sm1649179wmj.47.2020.08.28.20.38.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 28 Aug 2020 20:38:32 -0700 (PDT) From: Bryan O'Donoghue To: kvalo@codeaurora.org, wcn36xx@lists.infradead.org, linux-wireless@vger.kernel.org Subject: [PATCH v2 10/12] wcn36xx: Add wrapper function wcn36xx_smd_set_sta_params_v1() Date: Sat, 29 Aug 2020 04:39:06 +0100 Message-Id: <20200829033908.2167689-11-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200829033908.2167689-1-bryan.odonoghue@linaro.org> References: <20200829033908.2167689-1-bryan.odonoghue@linaro.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200828_233833_980082_CF78DAB2 X-CRM114-Status: GOOD ( 13.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: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 This commit adds a wrapper function wcn36xx_smd_set_sta_params_v1() which calls into wcn36xx_smd_set_sta_params() and then subsequently sets version-1 specific parameters. Signed-off-by: Bryan O'Donoghue --- drivers/net/wireless/ath/wcn36xx/smd.c | 25 +++++++++++++++++++++++++ 1 file changed, 25 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 b311b170fd36..86411f3da79d 100644 --- a/drivers/net/wireless/ath/wcn36xx/smd.c +++ b/drivers/net/wireless/ath/wcn36xx/smd.c @@ -1247,6 +1247,31 @@ static void wcn36xx_smd_convert_sta_to_v1(struct wcn36xx *wcn, v1->p2p = orig->p2p; } +static void +wcn36xx_smd_set_sta_params_v1(struct wcn36xx *wcn, + struct ieee80211_vif *vif, + struct ieee80211_sta *sta, + struct wcn36xx_hal_config_sta_params_v1 *sta_par) +{ + struct wcn36xx_sta *sta_priv = NULL; + struct wcn36xx_hal_config_sta_params sta_par_v0; + + wcn36xx_smd_set_sta_params(wcn, vif, sta, &sta_par_v0); + wcn36xx_smd_convert_sta_to_v1(wcn, &sta_par_v0, sta_par); + + if (sta) { + sta_priv = wcn36xx_sta_to_priv(sta); + wcn36xx_smd_set_sta_vht_params(wcn, sta, sta_par); + wcn36xx_smd_set_sta_ht_ldpc_params(sta, sta_par); + memcpy(&sta_par->supported_rates, &sta_priv->supported_rates, + sizeof(sta_par->supported_rates)); + } else { + wcn36xx_set_default_rates_v1(&sta_par->supported_rates); + wcn36xx_smd_set_sta_default_vht_params(wcn, sta_par); + wcn36xx_smd_set_sta_default_ht_ldpc_params(wcn, sta_par); + } +} + static int wcn36xx_smd_config_sta_rsp(struct wcn36xx *wcn, struct ieee80211_sta *sta, void *buf, From patchwork Sat Aug 29 03:39:07 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: 248685 Delivered-To: patch@linaro.org Received: by 2002:a92:5b9c:0:0:0:0:0 with SMTP id c28csp1602601ilg; Fri, 28 Aug 2020 20:38:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxHJ50OlB4iwK/JpWTrnsorCG75mJRFPxcVO/oL2CEx5LEkYVjQjImOKsxKlDEhozOnjskk X-Received: by 2002:a6b:e718:: with SMTP id b24mr1451476ioh.9.1598672320788; Fri, 28 Aug 2020 20:38:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598672320; cv=none; d=google.com; s=arc-20160816; b=OzDm28IhuG7bcReOdgAgcvm/o2UJVExt/noy9nMi592/DHgUNCYwBdS2Uu+7bL3WFU 8An5AibJ2VBpI2kMb8XXykGh9dlk0HjR7a7qRMAnzTLEPrvHA7LYXCwUHTSPESjREh0k irsqeZJ66qr3V/V1J10D0Xw5Xjewntnd7Bew/uqpVU4GxvQoM8HueUxZbpOO6cTakzUr N1anK8scDNtirbJx6MREmUehjDSiFy2oescgO1Wz4BH/eyyaLOIEOFAmoH5fpnKrXoYe aIRuNnB1WmJX7Naym/EGNT6hP3GnSbM22EBCXh1RPCmVcooViyGHqTcFQC5XwECnrjGb qkOg== 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=expbYVHy61O1Ijhc81Bw5IVnxw4CXdux7tntg3KHb6w=; b=ZcBYWxAvUEDdZxSqnLfftZlCb2oVdGTMeADlNPfSwlqFwoid7W/eTuuPjMNVqdFg/j 2MfNyaAV4szALrJ2EDYD4bAJPkgkMvUSnaddAvVc/ZJERe8VFluwAIsAtDE+osIAKqn+ FPNe0OzXTT/VEOFYsArTLhtti30F+U0Suon+KVkdwVpiYLlIKOZ3J+doMN5GAKvDGHIC DgREZWSLps1UCJQoIkTdny+R8d2SRR2rGkZB41KxLNQaA1Ptnva3mEnucY/GZj0AWlMX Iv9UL1Kz9aQlMMoisPa5cLP/QkW0e1a6oBqZSYtLAvmFFjs0OjehyIADZRSeeg0LjqqY mt8A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lists.infradead.org header.s=merlin.20170209 header.b=thWO2OZ2; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=VxBxsDpc; 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 s4si1090942iln.151.2020.08.28.20.38.40 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 28 Aug 2020 20:38:40 -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=thWO2OZ2; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=VxBxsDpc; 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=expbYVHy61O1Ijhc81Bw5IVnxw4CXdux7tntg3KHb6w=; b=thWO2OZ2q0oBcTgy0/m0SNep9 WrQ8ErF9VFFkjG8irPQ6Ti3x40gCWqa5GNQwNnfuwanyBt8uSTcVHXkVLlr5HDh/k1ZMTjYQfDN8U enLyHaSZnyOwDUC/glhFCHVudLRxR6S5+leg8t341nqfXEd+WHtj4v6QNOlbl+UFXY+O/t1yiPRNA JDHInE8F5gbQfTUAe4d8ELKi3/FJhSmfBGWaMZ+zIVcOOigLEobdGyEqWbvY0KV8bfNr5ZtIdUWJG qwbbT8PLAOBMcZTGCnJOL1me6wddjd5zcYdJwfhwCv5SBr4LA+KPW+WaQbEM9+i7BoyHaPTtgBhP7 31+JTnV0A==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kBrhN-0002O3-Qk; Sat, 29 Aug 2020 03:38:37 +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 1kBrhK-0002LU-Pz for wcn36xx@lists.infradead.org; Sat, 29 Aug 2020 03:38:35 +0000 Received: by mail-wr1-x441.google.com with SMTP id e16so894725wrm.2 for ; Fri, 28 Aug 2020 20:38:34 -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=dX/lGSQb/+52DNmRF9sJPcKmKqQ1oW2lYx+J5BfuacQ=; b=VxBxsDpc7OYV51xq/MRxalYDJCVagpTLHEVxwzhTPru/wFZQrhX1FF8icUONNKvf/O WO3ByjJhhIE23T2v6kPwmjp4udYoZDIqmyhw5UAkDRbDgrb+FND2rZHFGa2q77Go7eSq Yzqz7ztFZuB0pcCxbmooVa45TxLsDvezKs6QoPbr7+4o2TaqDUI7TY4YwoWkLxcfpONb NPDT+ju6bEkABn0IjBgYcyvOavVvoA+jfuRPmJd70YhZxKG2cBGaX4qkHK55H/oefxSK jOXOOWyk3OkjVT0pgj40YcxDHB64+tQC7LDrOlhOe0ucI1vj0OZMgO1zAd8cI9UMsyTp S/SQ== 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=dX/lGSQb/+52DNmRF9sJPcKmKqQ1oW2lYx+J5BfuacQ=; b=PAPMpvAi6ebugDLs6eAcIMr1NJFwPKGoe7b7qbysYc/e4X8ReT6hPLGYuK/VONlRDv hsRe8Nhc9n4QPy6gbI3YibdykcRXIqUJnGDCRwEh3zuku2iIgZOfv0EFACWE9R4y2Sl2 ZzPmH8FS1KLHZNoAgxRCCNKDQxJZaWkDsfhUQVoMh+mc7L1JV0kXcXPdbCLc4kykzWzn mSDtUDojw9C1dwHAVImOfnGkE1NOnPiukOIxtLhabSxzIzJTdN99aMJWFa/neCrGPH7y ehhHbnaaz8h3JTmUyn5XjleEESoYFcJJfKrX5VraeZ9acciFZMNXg+UOhwHiqVUAdFmo rBFQ== X-Gm-Message-State: AOAM532n3P6GN8eVtb9yOl10eUzYR5ZbixQ9DOGLZ5f48rY08K109TXH uO8avWxi3OZPkDPO7IMBkvd6tA== X-Received: by 2002:adf:84c3:: with SMTP id 61mr1661631wrg.131.1598672313984; Fri, 28 Aug 2020 20:38:33 -0700 (PDT) Received: from localhost.localdomain ([176.61.57.127]) by smtp.gmail.com with ESMTPSA id t9sm1649179wmj.47.2020.08.28.20.38.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 28 Aug 2020 20:38:33 -0700 (PDT) From: Bryan O'Donoghue To: kvalo@codeaurora.org, wcn36xx@lists.infradead.org, linux-wireless@vger.kernel.org Subject: [PATCH v2 11/12] wcn36xx: Define INIT_HAL_MSG_V1() Date: Sat, 29 Aug 2020 04:39:07 +0100 Message-Id: <20200829033908.2167689-12-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200829033908.2167689-1-bryan.odonoghue@linaro.org> References: <20200829033908.2167689-1-bryan.odonoghue@linaro.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200828_233834_931377_F4A8B10A 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: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 In order to pass 802.11ac VHT parameters from the SoC to wcn36xx we need to use the V1 data structures associated with BSS and STA parameters. The means of identifying a V1 data-structure is via the SMD version field. This patch defines a INIT_HAL_MSG_V1() which operates the same way as INIT_HAL_MSG() with the exception that it defines VERSION1 as opposed to VERSION0. Signed-off-by: Bryan O'Donoghue --- drivers/net/wireless/ath/wcn36xx/smd.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 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 86411f3da79d..d9bbbdc8d013 100644 --- a/drivers/net/wireless/ath/wcn36xx/smd.c +++ b/drivers/net/wireless/ath/wcn36xx/smd.c @@ -355,14 +355,20 @@ static void init_hal_msg(struct wcn36xx_hal_msg_header *hdr, hdr->len = msg_size + sizeof(*hdr); } -#define INIT_HAL_MSG(msg_body, type) \ +#define __INIT_HAL_MSG(msg_body, type, version) \ do { \ memset(&msg_body, 0, sizeof(msg_body)); \ msg_body.header.msg_type = type; \ - msg_body.header.msg_version = WCN36XX_HAL_MSG_VERSION0; \ + msg_body.header.msg_version = version; \ msg_body.header.len = sizeof(msg_body); \ } while (0) \ +#define INIT_HAL_MSG(msg_body, type) \ + __INIT_HAL_MSG(msg_body, type, WCN36XX_HAL_MSG_VERSION0) + +#define INIT_HAL_MSG_V1(msg_body, type) \ + __INIT_HAL_MSG(msg_body, type, WCN36XX_HAL_MSG_VERSION1) + #define INIT_HAL_PTT_MSG(p_msg_body, ppt_msg_len) \ do { \ memset(p_msg_body, 0, sizeof(*p_msg_body) + ppt_msg_len); \ From patchwork Sat Aug 29 03:39:08 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: 248686 Delivered-To: patch@linaro.org Received: by 2002:a92:5b9c:0:0:0:0:0 with SMTP id c28csp1602608ilg; Fri, 28 Aug 2020 20:38:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzvsiwsGspPX9Q3yewn9AYimo3j0EHiRT3fy0/ieJN059pDSCYmlB7DGQB760hT83I670lD X-Received: by 2002:a02:95ae:: with SMTP id b43mr3755640jai.19.1598672321249; Fri, 28 Aug 2020 20:38:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598672321; cv=none; d=google.com; s=arc-20160816; b=ji6nIwplRx+shDTrAeoSNmAUKBkZF4eCELBgU7e/aGvhKWtaGa07+zyzRXodWVwZ3Y LJJrPn2DNDYnOeo7a4QfcC2bwO5jnWaBn7/Kfyqd2gj6mRUqr5cR8Ai+uZckFDSHk6tK rLwFAX2wa/XUy6lFdzUlDscEXle5hCLN/t4W4qQYdoW+iF/Vev5WmB2GTKeScbEfEKCE I2dpRMJA/7rkWz0cWZlqnWuQ4iyaJ1ndjUUclnUVcatEmGReXl/AjkbNQn3hCAAik0WJ DQq1diRLMYJ9Ia6rgmuj7QQJmIjvs4IB2VJkO+h24JjxeFjOoNc2AIiaaSZUbNSp83qu D1mQ== 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=LcoSWOO+R1doPJWMU10bSv7+P0+wHcDmYuWtXPNayws=; b=JxHhVwFqqRTvcWR0fWPWi+trI7cYwzkuevVC5F5vj/6ioXi4HU3jdA+x+PwBoq4Hjj vBQjkNirLwpyjT1fJw1MkdyWkwV6VqputOb/PTXCEKXvntBH7jLCghqUMMYbe0OtiafC 1PUc7+XToHH4J3+sKFyp1kDNAIPLcSCpT/hlPemkWM2kQZynajCRYrh5119N5hR23qkt nglOfPafIiwcR/pWj5p1zUpAYtAQHxoTuiIYH9QT5y+RFWvc63of4rwMrbsOdWsVwy0q 3S4j5OnQ5+HymbeSqWMSGa8FX8NThglAIFt2lbucASTL6uqh3Vp4cJV33kO3hyn7LtBX +VGg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lists.infradead.org header.s=merlin.20170209 header.b=SG968NC3; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=yepbCAl1; 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 r19si1125780ilj.46.2020.08.28.20.38.41 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 28 Aug 2020 20:38:41 -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=SG968NC3; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=yepbCAl1; 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=LcoSWOO+R1doPJWMU10bSv7+P0+wHcDmYuWtXPNayws=; b=SG968NC3jjGQ1fedC1izTEX3U ES9YraU2Pz/r2DR051rArboxk4OfWwvLKW83LkKExmkcfW9afjA8riofOnlpVCDiBO9uVYox2Lbu+ 1e8peQL+8TUaubaSrpQXNqVBaWSg18C7LZUNYbIvT6u0h6SeluquseEyz0ANVBBSr5nzMAzvBS/B9 AKC1KTMY5MpBakAXY5xXvRNKOQ/4lFoY3Wt1SX4nuT3mP8AfCiABZi/tLzMK+Y4OdlAG6AoX/jspT NBre4pVKS0qL+EWYLIzQGlImJqmG5f3y7JbO2e6XQ+7p759j9WxE2u9V12m+qRYzs/dy2+HITwp9c kR++k8PCg==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kBrhO-0002OS-CY; Sat, 29 Aug 2020 03:38:38 +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 1kBrhM-0002MV-0o for wcn36xx@lists.infradead.org; Sat, 29 Aug 2020 03:38:36 +0000 Received: by mail-wr1-x443.google.com with SMTP id o4so906106wrn.0 for ; Fri, 28 Aug 2020 20:38:35 -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=N19y8kE9YeS2Ow4HV/sGzCGkQdJHD/4e5dDKui+iRUE=; b=yepbCAl1pABiRrbEhw8HL5Fd8y8urACMv1Icyc6Nod2qle0Svzqp8ruh0DgZ1/cx1H unsYimJT49O92Bipn9tETk0McJHP6HUBH5TZM+v4Puw0zHN0OkZ+z6WlD9JiU4yc4KVq ixlJjKUcCaDffhaPpGWsf/4HD2anBH35FOJJpbhZbaC6BX9NfblR3752aw4KuPY3wLpf bm2woP7iOfVYgb7vMuV/F+vb9HmwUIJjiWImp4zP5dcMCJ9JZQqrHZdqHZChReHQqhOa e9cwJ6o3kSJSCyRegoEBZMURzMd9jz2NNZUfh9ez8sj5/+0tsVOF36ijH0JH+R/82shD r1ow== 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=N19y8kE9YeS2Ow4HV/sGzCGkQdJHD/4e5dDKui+iRUE=; b=q9AuvxSnT6w4MnuZEvUXgsXq94CycrkJ4qqZToBoJ1zSJqvrbfzS/H8O3TGbYSksUL 9sHY9VqvaagCVacsz/lRsdRzlYb/8azJ0NgUvhI6CoMuPdM/qvIp+lxdWvYbS55+rIZC 5XqnB5c/2Z0KiW6ci54iuTBdAMUeKmS6W1DncsJl7TcuDaVzxogIBBQju83qw7A1SPHE 1kWVdhTstg9vGcv0Hu3J8BlMPc5nmrEEdsj8cTwdhyUQ9XD/LB7fiucnnQtGUefnSure gwBrjwP/1m0OMLtg/6KQMmT1xoSYegDuXlQMsyh+L/cF9ahoSExyea7VffQCRZWsYyQR KlDw== X-Gm-Message-State: AOAM533tZgVHhIDtIAWgai9HFzWaMTF5wVS6d47oytbaZyhmugsjjgtK ITt6KQ98DdjyfrJAlD0kmSoQ7g== X-Received: by 2002:adf:8b8c:: with SMTP id o12mr1661873wra.353.1598672315173; Fri, 28 Aug 2020 20:38:35 -0700 (PDT) Received: from localhost.localdomain ([176.61.57.127]) by smtp.gmail.com with ESMTPSA id t9sm1649179wmj.47.2020.08.28.20.38.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 28 Aug 2020 20:38:34 -0700 (PDT) From: Bryan O'Donoghue To: kvalo@codeaurora.org, wcn36xx@lists.infradead.org, linux-wireless@vger.kernel.org Subject: [PATCH v2 12/12] wcn36xx: Convert to VHT parameter structure on wcn3680 Date: Sat, 29 Aug 2020 04:39:08 +0100 Message-Id: <20200829033908.2167689-13-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200829033908.2167689-1-bryan.odonoghue@linaro.org> References: <20200829033908.2167689-1-bryan.odonoghue@linaro.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200828_233836_114348_1A868AC6 X-CRM114-Status: GOOD ( 15.30 ) 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 In order to send VHT parameters to wcn3680 we need to pass the extended V1 parameter structures to the firmware. These commands need to have the version number set to 1. This patch makes the conversion. The conversion consists of 1. Setting the version number for wcn3680 or leaving it at 0 otherwise 2. Setting the sizeo of the packet header lower for wcn3620 and wcn3660 Once done all three chips can continue to use the same code to pass parameters to their respective firmware. In the case of the wcn3680 the passed structures will be slightly larger to accommodate communication of VHT descriptors. Signed-off-by: Bryan O'Donoghue --- drivers/net/wireless/ath/wcn36xx/smd.c | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 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 d9bbbdc8d013..97fb47a8bc1a 100644 --- a/drivers/net/wireless/ath/wcn36xx/smd.c +++ b/drivers/net/wireless/ath/wcn36xx/smd.c @@ -1317,7 +1317,12 @@ static int wcn36xx_smd_config_sta_v1(struct wcn36xx *wcn, struct wcn36xx_hal_config_sta_req_msg_v1 msg_body; struct wcn36xx_hal_config_sta_params_v1 *sta = &msg_body.sta_params; - INIT_HAL_MSG(msg_body, WCN36XX_HAL_CONFIG_STA_REQ); + if (wcn->rf_id == RF_IRIS_WCN3680) { + INIT_HAL_MSG_V1(msg_body, WCN36XX_HAL_CONFIG_STA_REQ); + } else { + INIT_HAL_MSG(msg_body, WCN36XX_HAL_CONFIG_STA_REQ); + msg_body.header.len -= WCN36XX_DIFF_STA_PARAMS_V1_NOVHT; + } wcn36xx_smd_convert_sta_to_v1(wcn, &orig->sta_params, &msg_body.sta_params); @@ -1388,7 +1393,12 @@ static int wcn36xx_smd_config_bss_v1(struct wcn36xx *wcn, if (!msg_body) return -ENOMEM; - INIT_HAL_MSG((*msg_body), WCN36XX_HAL_CONFIG_BSS_REQ); + if (wcn->rf_id == RF_IRIS_WCN3680) { + INIT_HAL_MSG_V1((*msg_body), WCN36XX_HAL_CONFIG_BSS_REQ); + } else { + INIT_HAL_MSG((*msg_body), WCN36XX_HAL_CONFIG_BSS_REQ); + msg_body->header.len -= WCN36XX_DIFF_BSS_PARAMS_V1_NOVHT; + } bss = &msg_body->bss_params; sta = &bss->sta;