Message ID | 20240408130701.531194-2-andrei.otcheretianski@intel.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=1NFpxJcF; 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=S8HYwHE9; 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 4VCqCz6Jlbz1yYf for <incoming@patchwork.ozlabs.org>; Mon, 8 Apr 2024 23:08:47 +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=9l+6pJ2yab5gfUeDpbpdNpgYP9KrGxx0VNRXCLWLMyU=; b=1NFpxJcFHggney Si+cVdMR4sQ7U9B37PxDPpvb34YW7Hm3pehkOST50rt9njF3hV9QFFVlVMbSsw23lXnQ/fAz17+dB wVdvJXIW0PW19xFqC/c8180FXDEOFYDwjYqZAWh4gX27nWY3C8KVClnpC1BGaX3SFj47ZJs+jh3Fi 4bGuIZtPEuM6de9bGeBuTPWvi2cxaGhjm4hPvTE7+YaN+3J0a5vBxpI2IwnfvNwNg6ZFrO/s2fSAK eopIoYSpVmCmc32D9TMiWsueH0nBPiwMWVlW1U07N1UQvmBmYnWN+yxZUgjTIszae9uQ4qR4Www9U fJUzptVn9p8Ak9yra7HQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rtojV-0000000FdsP-21Fl; Mon, 08 Apr 2024 13:08:21 +0000 Received: from mgamail.intel.com ([198.175.65.14]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rtojQ-0000000Fdre-1Xie for hostap@lists.infradead.org; Mon, 08 Apr 2024 13:08:17 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1712581696; x=1744117696; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=1uBPhokpHG7MjOo/ZplWuYhD0urhVlvPNjAPUv/IHSA=; b=S8HYwHE9txuV/lrnZpKAHotXEPgeFt5ljH/9O7VgR+TIz/IzAOteuEMv xhbLqK+htj+VIcKqpLYp4uYzHaOIwBQgpaNyr3xaLLL4qC1o5drtIjZDK HDli3ghV30X7og8NKmZ74W7xb+7LIA9W9L9lUdsC+9VAuB2YmobTL8EFw R293tVkXifTPzMbbawhK4IDZMuC5DQcHzhbqQdpvn0OBokQEWedi4V77u 67VEm3DgTLbaSjkUHXpd61N/rMVuXm8bFCahMhce2CKp02Vty8vlNzQ+4 8s/DHorH9LjHXJYY8xMFpmlAEvX9CmlH19/NMirOA7i72EtxcYbmVaLAs Q==; X-CSE-ConnectionGUID: 6UUQQRS3TK2i2/hIZtTODA== X-CSE-MsgGUID: nqso6cq7S9iJTIT5+qZHcw== X-IronPort-AV: E=McAfee;i="6600,9927,11038"; a="11688859" X-IronPort-AV: E=Sophos;i="6.07,186,1708416000"; d="scan'208";a="11688859" Received: from orviesa002.jf.intel.com ([10.64.159.142]) by orvoesa106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Apr 2024 06:08:16 -0700 X-CSE-ConnectionGUID: JBgGrEVATg29Ta2uxOPRdw== X-CSE-MsgGUID: UBwPcuA6RbCAzOyi/5ColQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,186,1708416000"; d="scan'208";a="50868763" Received: from unknown (HELO WEIS0042.iil.intel.com) ([10.12.217.211]) by orviesa002-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Apr 2024 06:08:15 -0700 From: Andrei Otcheretianski <andrei.otcheretianski@intel.com> To: hostap@lists.infradead.org Cc: Ilan Peer <ilan.peer@intel.com> Subject: [PATCH 2/7] wpa_supplicant: Do not roam to an associated link Date: Mon, 8 Apr 2024 16:06:56 +0300 Message-ID: <20240408130701.531194-2-andrei.otcheretianski@intel.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240408130701.531194-1-andrei.otcheretianski@intel.com> References: <20240408130701.531194-1-andrei.otcheretianski@intel.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240408_060816_470652_B44F6C7B X-CRM114-Status: UNSURE ( 9.55 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -2.4 (--) 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: Ilan Peer <ilan.peer@intel.com> When considering to roam to a different BSS and the connection is an MLD connection, do not roam to a BSS which is already included in the MLD connection. Signed-off-by: Ilan Peer <ilan.peer@intel.com> --- wpa_supplicant/events.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) Content analysis details: (-2.4 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at https://www.dnswl.org/, low trust [198.175.65.14 listed in list.dnswl.org] 0.0 SPF_NONE SPF: sender does not publish an SPF Record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 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_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain -1.5 DKIMWL_WL_HIGH DKIMwl.org - High trust sender 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/7] tests: Wait after removing a BSS
|
expand
|
diff --git a/wpa_supplicant/events.c b/wpa_supplicant/events.c index ca27946384..bfe3d85e8f 100644 --- a/wpa_supplicant/events.c +++ b/wpa_supplicant/events.c @@ -2167,6 +2167,20 @@ int wpa_supplicant_need_to_roam_within_ess(struct wpa_supplicant *wpa_s, MAC2STR(selected->bssid), selected->freq, selected->level, selected->snr, selected->est_throughput); + if (wpa_s->valid_links) { + u8 i; + + for_each_link(wpa_s->valid_links, i) { + if (ether_addr_equal(wpa_s->links[i].bssid, + selected->bssid)) { + wpa_dbg(wpa_s, MSG_DEBUG, + "MLD: associated to selected BSS link_id=%u", + i); + return 0; + } + } + } + if (wpa_s->current_ssid->bssid_set && ether_addr_equal(selected->bssid, wpa_s->current_ssid->bssid)) { wpa_dbg(wpa_s, MSG_DEBUG, "Allow reassociation - selected BSS "