From patchwork Mon Apr 29 11:51:50 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Benjamin Berg X-Patchwork-Id: 1928954 Return-Path: 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=YvbF0Itp; dkim=fail reason="signature verification failed" (2048-bit key; secure) header.d=sipsolutions.net header.i=@sipsolutions.net header.a=rsa-sha256 header.s=mail header.b=g/dWLW5J; 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 4VShXk2K6yz23t4 for ; Mon, 29 Apr 2024 21:52:54 +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:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=Cgtdi1/v98hgCxd0QRu1Vj7LQKTtXWBY/4aAI5PsjyA=; b=YvbF0Itp1UZcHc IRFC8mvVGh5aFzrrKjHSHdp8PtaM+dX22HlFF2udLv3XJgbk2Q2etRNq3FEhPbhUAjX6Kd3ITW/g7 L/fPPVKUVvqgiGTIDPSAuk95enteqGGKRr0KmdC6EwM0gdq43EdHVuGT8v3eo7A1RZEU2coT84r9u /KjH0YMXE4nUjRmT4ksR5jh8gIFETdpD+0PCiHaBLeO2ws/4AFd666qJ2SKNL+cJwsva+JEtFJ2Yb Hw+WEe1OP3MGKq1R7zn40IhFrMmQDwQtUsPtmkRbLU7NSMRmRawYX1f7k0n/4i860EFKQuywOY5XA 1R39PywzTtFo28ohW1Dw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1s1PYf-00000002XJp-2r3D; Mon, 29 Apr 2024 11:52:33 +0000 Received: from s3.sipsolutions.net ([2a01:4f8:242:246e::2] helo=sipsolutions.net) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1s1PYN-00000002XBH-0Rm9 for hostap@lists.infradead.org; Mon, 29 Apr 2024 11:52:17 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sipsolutions.net; s=mail; h=Content-Transfer-Encoding:MIME-Version: References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From:Content-Type:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-To: Resent-Cc:Resent-Message-ID; bh=2Ftjn+9K/XzccVJjy8UAvuRpSNnN5Yu1DRnURPqPywo=; t=1714391534; x=1715601134; b=g/dWLW5J6fgD6IDHF7bK0PyW3ADKgSarTNp0m8f4ZTb5MK7 WtWYvYLkRllRZKI1AMYqg4H0FFpRbyl65gTz5cJOq29q3o5JiFjoU8YAbhTuyl7PxUUyH8b92G+QE YP3Pwhxoc5Y42seAzDV4Yof56A14gX4lvhny7Qn3m6piI61w+WDJ9UtjjdPZn1y/m6/U7QqaSJvcV /KY/c0WmBuyAyPZGT2iibEeVpua9snYVvnhsFIUThmVSNggA/jcKAFdiS5kt6NY8GBmEa6RHlypW/ 8JXIau7qQ7EVXl8UZ18kmQS+2LamHGkXKwKjnOEhDNCEoDG3k1XF7whg6YIDJ0IQ==; Received: by sipsolutions.net with esmtpsa (TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.97) (envelope-from ) id 1s1PYK-0000000CNIg-2ydd; Mon, 29 Apr 2024 13:52:13 +0200 From: benjamin@sipsolutions.net To: hostap@lists.infradead.org Cc: Benjamin Berg Subject: [PATCH 09/16] tests: Set the abridged bit in BTM tests Date: Mon, 29 Apr 2024 13:51:50 +0200 Message-ID: <20240429115157.211073-10-benjamin@sipsolutions.net> X-Mailer: git-send-email 2.44.0 In-Reply-To: <20240429115157.211073-1-benjamin@sipsolutions.net> References: <20240429115157.211073-1-benjamin@sipsolutions.net> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240429_045215_499822_C3A6300F X-CRM114-Status: GOOD ( 10.96 ) X-Spam-Score: -0.2 (/) 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: From: Benjamin Berg Many of the WNM tests assume that the supplicant will only select a neighbor that was included in the candidate list. However, without the abridged bit being set, the supplicant is allowed to also sel [...] Content analysis details: (-0.2 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 SPF_PASS SPF: sender matches SPF record -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain X-BeenThere: hostap@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Hostap" Errors-To: hostap-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org From: Benjamin Berg Many of the WNM tests assume that the supplicant will only select a neighbor that was included in the candidate list. However, without the abridged bit being set, the supplicant is allowed to also select any BSS that is not explicitly included in the list. Prepare for the supplicant handling the abridged bit by setting it in the tests where relevant. Signed-off-by: Benjamin Berg --- tests/hwsim/test_wnm.py | 66 ++++++++++++++++++++--------------------- 1 file changed, 33 insertions(+), 33 deletions(-) diff --git a/tests/hwsim/test_wnm.py b/tests/hwsim/test_wnm.py index d1ad0a8fd..ecaf19009 100644 --- a/tests/hwsim/test_wnm.py +++ b/tests/hwsim/test_wnm.py @@ -613,7 +613,7 @@ def test_wnm_bss_tm_req(dev, apdev): # truncated BSS TM Request req = bss_tm_req(addr, apdev[0]['bssid'], - req_mode=0x08) + req_mode=0x0a) req['payload'] = struct.pack("