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;