From patchwork Wed May 1 07:19:53 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ilan Peer X-Patchwork-Id: 1929503 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=T1TsCns0; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=E0vh0G4g; 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 4VTLKd2DrBz23jG for ; Tue, 30 Apr 2024 23:15:30 +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: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:In-Reply-To:References: List-Owner; bh=/z1x8ZiWyupKgimI63pgIYP2SnlzXOpeZs4gOjVHTn8=; b=T1TsCns0q6lnFK MoNsvjzFVz6E3daw4ex7ZV12rdxpRlX+we/RIehxGSXDJVTpLO6kG028gzeOPlDnbBG7gIdV7PzoZ JAfUJpkKw8Ka1X/p5fVNnLJTGTNTaY1n2Gt6XXRhnCoBY0Au/EPh9ldphI0fQWJSyLcomb1PeUBZ6 mXXudnTp0xBqoCJYrQ4ZJrIpe+Opfv/CUDSGcFYHRgAXEDk1d+Wv8A6ckYRy6rtG/xHPAEG4lXbQ1 kTYdB45mLTLKKY9izoZtWR3P7A1Rs0LZRJqimB4IiCnVFB+09cLTRxDn5+QLbOYoTFgksdmhM9/xX TG+kCX/mQx3RzU4/E6iw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1s1nKB-00000006TNj-21j3; Tue, 30 Apr 2024 13:15:11 +0000 Received: from mgamail.intel.com ([192.198.163.17]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1s1nK7-00000006TLq-3gLB for hostap@lists.infradead.org; Tue, 30 Apr 2024 13:15:09 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1714482907; x=1746018907; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=NSOlDLxf26+hF9KPKpMRxdiTHDONxulw3vQBDBvfrN4=; b=E0vh0G4gF7u6+8OErqi/BRF6252VHfLIbLOnY5mwZqz0RZAo8ZiZHwiO MQZa3XSY7kCce3yAFBsZE/xBnib4BzoTyRs78qsRtdHHqWozc++JbTX75 247miZLoN6dA2A1Ck4+XWCfSDNlHJsV8w5SAD3DDEJLjfrUWunVMMkrl2 VVKSGc+Gh2CzvwPgNM0zZD3a6SBfYpACfNqBSOfO7N7s49LjagqIpvxtE zXKJkwCwYbCNAPx47+i6cggvi1lomqgshHtis/aCFRIWvQz99MIxEyflc T8UDuS21AdHAOXgodPh8ZS7KIU8GfgpfbE7ctmHXzrnv0ED2tuHblNn5I A==; X-CSE-ConnectionGUID: KAkd9qDvTiGj4SJMmR6QUw== X-CSE-MsgGUID: C6g2HGNGQ9CyJzWWrNqaoQ== X-IronPort-AV: E=McAfee;i="6600,9927,11059"; a="10065094" X-IronPort-AV: E=Sophos;i="6.07,242,1708416000"; d="scan'208";a="10065094" Received: from fmviesa006.fm.intel.com ([10.60.135.146]) by fmvoesa111.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Apr 2024 06:15:07 -0700 X-CSE-ConnectionGUID: aL7vMnQKRVyjXa6z7qjYUA== X-CSE-MsgGUID: T5Lpym1pQDyK0R71/ekPAA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,242,1708416000"; d="scan'208";a="26547419" Received: from weis0041.iil.intel.com ([10.12.217.187]) by fmviesa006.fm.intel.com with ESMTP; 30 Apr 2024 06:15:06 -0700 From: Ilan Peer To: hostap@lists.infradead.org Cc: Ilan Peer Subject: [PATCH] tests: Fix run_eht_mld_sae_two_links() Date: Wed, 1 May 2024 10:19:53 +0300 Message-Id: <20240501071953.2420852-1-ilan.peer@intel.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240430_061508_015778_6B3AB5C0 X-CRM114-Status: UNSURE ( 9.16 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -1.0 (-) 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: In the case that the AP MLD is disabled and enabled again, flush the wpa_supplicant BSS table before reconnecting as otherwise the previous AP MLD BSSs would be in the BSS table and the wpa_supplicant [...] Content analysis details: (-1.0 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -2.3 RCVD_IN_DNSWL_MED RBL: Sender listed at https://www.dnswl.org/, medium trust [192.198.163.17 listed in list.dnswl.org] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.0 SPF_NONE SPF: sender does not publish an 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 2.5 DATE_IN_FUTURE_12_24 Date: is 12 to 24 hours after Received: date -1.0 DKIMWL_WL_HIGH DKIMwl.org - High trust sender 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 In the case that the AP MLD is disabled and enabled again, flush the wpa_supplicant BSS table before reconnecting as otherwise the previous AP MLD BSSs would be in the BSS table and the wpa_supplicant would try to connect to them. Signed-off-by: Ilan Peer --- tests/hwsim/test_eht.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/hwsim/test_eht.py b/tests/hwsim/test_eht.py index 45f210d97d9e..6b0957ffa9f3 100644 --- a/tests/hwsim/test_eht.py +++ b/tests/hwsim/test_eht.py @@ -526,6 +526,10 @@ def run_eht_mld_sae_two_links(dev, apdev, beacon_prot="1", # fall back to full SAE from failed PMKSA caching attempt # automatically. wpas.request("PMKSA_FLUSH") + + # flush the BSS table before reconnect as otherwise the old + # AP MLD BSSs would be in the BSS list + wpas.request("BSS_FLUSH 0") wpas.request("RECONNECT") wpas.wait_connected() hapd0.wait_sta()