Message ID | 20230925092039.8816ce070949.Ic89be05974449c15f923b8852061fc4d65d185a8@changeid |
---|---|
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=yEoKx0QX; 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=oeePjkAr; 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 4RvDrC1kSyz26jR for <incoming@patchwork.ozlabs.org>; Mon, 25 Sep 2023 17:23:39 +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=IWwbZwDFGC2ZgM1gpJKIPEqGjJ/L2rwhmS5q/D9J+3Y=; b=yEoKx0QX98eC+U 6TqjaotgK205Bj7FALNjQR1vCmfUfjQDLLLcw5pYZ0wWsbHkkpzWufD4eBGXbXDP4BuLSsmBxVwZy eACzqCyGvlvRRmhhpUCaAMuPTgfEM8JGQDvL57A9ZrKFqCF1YgUMXhLCaiRiaBl3XHDpyzK7m02jy pryX/mnQKrAJLR0cz0UohPlOgoVvJS1pr4R7krYw5xiTJmfhKsVzThzt4QgvunlAk/x/jzI6KHGc1 E3uLWgX58wIp1jccaWISJxGLv57+RE+irP12KhWS9liL43MOb5eYIL8bkOQ6ehh+wl2aSdrHNXKza P5YDIoqMtbTJCI5pLvlg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qkfvn-00DYOq-2C; Mon, 25 Sep 2023 07:22:59 +0000 Received: from s3.sipsolutions.net ([2a01:4f8:242:246e::2] helo=sipsolutions.net) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qkfvZ-00DYGb-2D for hostap@lists.infradead.org; Mon, 25 Sep 2023 07:22:47 +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=DsfX/C1QE07SYUTgNimmGi74yMOeHhfHbelQtMd7Yek=; t=1695626565; x=1696836165; b=oeePjkArUPWQZknCfaIjklhHYitnvWD0W+b0yswFCR8RS0P k4hD56V0Gytje+ZtvjIqG4hDE60DOr198gkMXF5QbIhzKWX9llJw072oSBGvbGo0Wz5Uxu/uPnrlx OJmQbJqHt+dOsDrmi1T80ZPmRPtHtCJft6+VR8YZBa+o2XO6dvqmIXQe5TFb0i5SAnvVJa2N07YIw 87jobfrulu6XMc+ktfvsAtCW3JkHMdO9HZZebv6aJWzSozP5cDYnz4gTWewmDUTCspMRX2KspWjra iA4kbAlIBgb4lriRUzzehjIHqGoRPwtwNiZmKTYOJiJCbvVNLrk9xI7TIYX4nTPg==; Received: by sipsolutions.net with esmtpsa (TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.96) (envelope-from <johannes@sipsolutions.net>) id 1qkfvX-003GNz-2Z; Mon, 25 Sep 2023 09:22:43 +0200 From: Johannes Berg <johannes@sipsolutions.net> To: hostap@lists.infradead.org Cc: Johannes Berg <johannes.berg@intel.com> Subject: [PATCH 15/17] tests: test_ap_open_poll_sta_no_ack: fix mgmt-rx race Date: Mon, 25 Sep 2023 09:20:55 +0200 Message-ID: <20230925092039.8816ce070949.Ic89be05974449c15f923b8852061fc4d65d185a8@changeid> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230925072039.49987-18-johannes@sipsolutions.net> References: <20230925072039.49987-18-johannes@sipsolutions.net> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230925_002245_726053_F05C935A X-CRM114-Status: UNSURE ( 9.46 ) X-CRM114-Notice: Please train this message. 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: Johannes Berg <johannes.berg@intel.com> We need to wait for the MGMT-RX event before disabling ext_mgmt_frame_handling again, otherwise we might be disabling it and hostapd only receives the deauth frame after we already disable it, defeati [...] 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_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_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: <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 |
tests: some scheduling and other fixes
|
expand
|
diff --git a/tests/hwsim/test_ap_open.py b/tests/hwsim/test_ap_open.py index a3bea763a1c4..beb0e18187b5 100644 --- a/tests/hwsim/test_ap_open.py +++ b/tests/hwsim/test_ap_open.py @@ -725,6 +725,9 @@ def test_ap_open_poll_sta_no_ack(dev, apdev): hapd.set("ext_mgmt_frame_handling", "1") dev[0].request("DISCONNECT") dev[0].wait_disconnected() + # eat up the deauth frame, so it cannot be processed + # after we disable ext_mgmt_frame_handling again + hapd.wait_event(["MGMT-RX"], timeout=1) hapd.set("ext_mgmt_frame_handling", "0") if "OK" not in hapd.request("POLL_STA " + addr): raise Exception("POLL_STA failed")