Message ID | 20200829033908.2167689-12-bryan.odonoghue@linaro.org |
---|---|
State | Superseded |
Headers | show
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: <wcn36xx-bounces+patch=linaro.org@lists.infradead.org> 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 <patch@linaro.org> (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 <wcn36xx@lists.infradead.org>; 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 <bryan.odonoghue@linaro.org> 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: <wcn36xx.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/wcn36xx>, <mailto:wcn36xx-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/wcn36xx/> List-Post: <mailto:wcn36xx@lists.infradead.org> List-Help: <mailto:wcn36xx-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/wcn36xx>, <mailto:wcn36xx-request@lists.infradead.org?subject=subscribe> Cc: bryan.odonoghue@linaro.org, shawn.guo@linaro.org, loic.poulain@linaro.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "wcn36xx" <wcn36xx-bounces@lists.infradead.org> Errors-To: wcn36xx-bounces+patch=linaro.org@lists.infradead.org |
Series |
wcn36xx: Add support for extended V1 SMD parameter passing
|
expand
|
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); \
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 <bryan.odonoghue@linaro.org> --- 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