Message ID | 20240427081946.147826-2-m@xv97.com |
---|---|
State | Accepted |
Headers | show
Return-Path: <hostap-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; secure) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=Tyx3MoPN; dkim=fail reason="signature verification failed" (1024-bit key; secure) header.d=xv97.com header.i=m@xv97.com header.a=rsa-sha256 header.s=zmail header.b=oRnH5aFS; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.infradead.org (client-ip=2607:7c80:54:3::133; helo=bombadil.infradead.org; envelope-from=hostap-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org; receiver=patchwork.ozlabs.org) Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4VRMwZ0T12z23rB for <incoming@patchwork.ozlabs.org>; Sat, 27 Apr 2024 18:20:29 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type: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:Cc:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=1bib+Nd7V8kc3t0ZXaIfdTQnd6SpLk38iu9CwYxwG4Y=; b=Tyx3MoPNCewrI3 s5hoAaoOS0Pz6/4rlSaE10yZNH/S1pRUd4ZeoTjp3W4M6FMGz0cLknGELGpd9eFkk/JeUITuq0CU2 swM1Mq6h0rypoTCtp/5rY2nPif4h6MiOpB4QubRV2pFB/l0rTzZM0UY5GEz1ci9VqzQF3EVxMXQyF UHzw7FQuwv5N8RPmYF1/OHyXCUkf4jdw9Ht4fyFtM64wAPMRz3c8lw+XcBgfjEDGRLVxMq0bYfuQN 4zvZCBZxX9Nwj+RiCCxjnKthveHfVgVfXwJfCRDyoBWNRgZuvtModtma/AnRsE+5dPs99lZt51B8T j+6mxIFPGQdjhPQaCxUg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1s0dI3-0000000F8MV-1ODG; Sat, 27 Apr 2024 08:20:11 +0000 Received: from sender4-op-o15.zoho.com ([136.143.188.15]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1s0dHv-0000000F8Hn-0KVF for hostap@lists.infradead.org; Sat, 27 Apr 2024 08:20:06 +0000 ARC-Seal: i=1; a=rsa-sha256; t=1714205993; cv=none; d=zohomail.com; s=zohoarc; b=Je1whXgMY2W+q+x+6Ahlu2tL+Zz8o+8LSgXTxnR5gCRxKXAVyW321ck5KtQhSmJh911cdBYn3eASGdOze2pvnhO3y93LTt/u1cDzS9PgHT6v7GVEi7rI+fAavcSV2sL13T8VyDtpIlEsFkP+7czPpqvMWan6f4LH9wrBITtm+C4= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1714205993; h=Content-Transfer-Encoding:Date:Date:From:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:Subject:To:To:Message-Id:Reply-To:Cc; bh=4Kmp5CgWfTx+gtjwBb6ZF6NLIyYGm5srAqG7XmWZ2Hk=; b=K9owmcRPoejZDoIzpXWkbnY3dBTgAd1ULaQU2HCvARKn1Gj35lA+ijnYJmmLcop+RDnjRzebgF/kqyNDPHsEtkIKyfV85UwxDwk+OO2vvhoyEDvFsOIChetdRvQvvUuBXsU5czJbugMXmf1I8m/XpwSXjF6ZwoeEks92mrUMoAE= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=xv97.com; spf=pass smtp.mailfrom=m@xv97.com; dmarc=pass header.from=<m@xv97.com> DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1714205993; s=zmail; d=xv97.com; i=m@xv97.com; h=From:From:To:To:Subject:Subject:Date:Date:Message-ID:In-Reply-To:References:MIME-Version:Content-Transfer-Encoding:Message-Id:Reply-To:Cc; bh=4Kmp5CgWfTx+gtjwBb6ZF6NLIyYGm5srAqG7XmWZ2Hk=; b=oRnH5aFSWZW2rEutFUcaIVPXFSmiVEor7tCszvDzCmSDbTf4AMx1PBBga6uoTAsl YsmjjOwRd+FtjMUZfi5f+qA3chKpEhXE2eWiHLGuYjxEJY0kintyTDz1OlqPsW3onHf XwVsGmMe3vCndBgc52wmEfZZ1jlG90ZqNXTfCSEo= Received: by mx.zohomail.com with SMTPS id 1714205991832845.7739779011854; Sat, 27 Apr 2024 01:19:51 -0700 (PDT) From: Chien Wong <m@xv97.com> To: hostap@lists.infradead.org Subject: [PATCH 2/4] NAN: Reject undefined publish type Date: Sat, 27 Apr 2024 16:19:44 +0800 Message-ID: <20240427081946.147826-2-m@xv97.com> In-Reply-To: <20240427081946.147826-1-m@xv97.com> References: <20240427081946.147826-1-m@xv97.com> MIME-Version: 1.0 X-ZohoMailClient: External X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240427_012003_709866_BFF713E5 X-CRM114-Status: UNSURE ( 7.47 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.1 (/) X-Spam-Report: Spam detection software, running on the system "bombadil.infradead.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: The Wi-Fi Aware Specification v4.0 only defines unsolicited transmissions only, solicited transmissions only and both unsolicited and solicited transmissions publish. The other possibility is undefine [...] Content analysis details: (-0.1 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 RCVD_IN_MSPIKE_H3 RBL: Good reputation (+3) [136.143.188.15 listed in wl.mailspike.net] -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [136.143.188.15 listed in list.dnswl.org] 0.1 URIBL_SBL_A Contains URL's A record listed in the Spamhaus SBL blocklist [URI: xv97.com/185.199.110.153] [URI: xv97.com/185.199.108.153] [URI: xv97.com/185.199.111.153] [URI: xv97.com/185.199.109.153] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid 0.0 ARC_SIGNED Message has a ARC signature -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.0 ARC_VALID Message has a valid ARC signature 0.0 RCVD_IN_MSPIKE_WL Mailspike good senders X-BeenThere: hostap@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: <hostap.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/hostap>, <mailto:hostap-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/hostap/> List-Post: <mailto:hostap@lists.infradead.org> List-Help: <mailto:hostap-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/hostap>, <mailto:hostap-request@lists.infradead.org?subject=subscribe> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "Hostap" <hostap-bounces@lists.infradead.org> Errors-To: hostap-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org |
Series |
[1/4] NAN: Fix a typo in USD doc
|
expand
|
diff --git a/src/common/nan_de.c b/src/common/nan_de.c index e1999a06b..7d8a952df 100644 --- a/src/common/nan_de.c +++ b/src/common/nan_de.c @@ -1209,6 +1209,11 @@ int nan_de_publish(struct nan_de *de, const char *service_name, return -1; } + if (!params->unsolicited && !params->solicited) { + wpa_printf(MSG_INFO, "NAN: Publish() - both unsolicited and solicited disabled is invalid"); + return -1; + } + publish_id = nan_de_get_handle(de); if (publish_id < 1) return -1;
The Wi-Fi Aware Specification v4.0 only defines unsolicited transmissions only, solicited transmissions only and both unsolicited and solicited transmissions publish. The other possibility is undefined so we should reject it. Signed-off-by: Chien Wong <m@xv97.com> --- src/common/nan_de.c | 5 +++++ 1 file changed, 5 insertions(+)