Message ID | 20221130130939.115928-12-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; 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=<UNKNOWN>) 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=bbCaBP/H; 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=JWnp9etg; dkim-atps=neutral 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 (P-384) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4NMfnD1BXxz23nv for <incoming@patchwork.ozlabs.org>; Thu, 1 Dec 2022 00:14:40 +1100 (AEDT) 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=jkn/fjRiE/XccN01zu9eZ5gGecKdpOr3OvVMna7cHBE=; b=bbCaBP/H/G4Tx7 bxgu1YjSheRx0DLX0vrMWrAT2HGi1jPQ0BTkYMN5WgLY5kBYKmSuWAAIVdqTpKkHx2685MQYbW9eJ b9FnLwQ92Y9Gch/J20W+cYtglR5ZYcJHQU4Tuf7LL1YJ+P0ToorN4jCRGhgKiBLIVOLNdo8fFgnmj 7kKdt9ZgosH1bOsvxr9Uv0nuzurcYGmdTAq4KTyYZJ8bzZH7HhSAWRU586pCWE+MY53huxIVB0RlP ABpL1ovBtJuvF9+01BbM6jwK7nnviclR2xecoK3BdTt7cXanO5253pvVRXIErk+AqYwq1zNiE48rD 6woGPq6egRkBO1dKWkkw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1p0MuU-00GO0u-EM; Wed, 30 Nov 2022 13:13:58 +0000 Received: from mga03.intel.com ([134.134.136.65]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1p0MrR-00GMHb-SV for hostap@lists.infradead.org; Wed, 30 Nov 2022 13:10:51 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1669813849; x=1701349849; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=+g1W/E0W5YyajcEK6ZqL9hgWIuQslfp3k9+4qDI1jgE=; b=JWnp9etgVcTwdfTlchxASE2JIAd91Nzh333kEHJnh4b5jyWjI7oMvfy2 fvb4x+vYKJ6Rcn4q8tLQoUq1HfxfxWhWWpfnx0dZMpEy4eOZgAe5bUcjp P80dpL0Uko5WBwzSLEZ9X9Kactl44rOUI8i7sSlAGceRRZ9P/nQo07YYs IX6vPjWQ/2KFd/soZzPlYWeoHtYkqxaaW5rLc6PSqgjXpFqGePt423blW u6BNhpUq2ZfddNBpjlqqNpfArSq0EBlfcjH4M0iPcqbLmWthvsqe+U+Er xYKMPx6ldLWCSOhLUKuUB8F0Lo59+udhY8IPEmazhyj983bQ2PrdHEd46 w==; X-IronPort-AV: E=McAfee;i="6500,9779,10546"; a="317238734" X-IronPort-AV: E=Sophos;i="5.96,206,1665471600"; d="scan'208";a="317238734" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Nov 2022 05:10:49 -0800 X-IronPort-AV: E=McAfee;i="6500,9779,10546"; a="973098182" X-IronPort-AV: E=Sophos;i="5.96,206,1665471600"; d="scan'208";a="973098182" Received: from ddori-mobl.ger.corp.intel.com (HELO aotchere-desk.intel.com) ([10.254.147.54]) by fmsmga005-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Nov 2022 05:10:35 -0800 From: Andrei Otcheretianski <andrei.otcheretianski@intel.com> To: hostap@lists.infradead.org Cc: Ilan Peer <ilan.peer@intel.com>, Andrei Otcheretianski <andrei.otcheretianski@intel.com> Subject: [PATCH v2 11/15] nl80211: Handle scan results with MLD connection Date: Wed, 30 Nov 2022 15:09:35 +0200 Message-Id: <20221130130939.115928-12-andrei.otcheretianski@intel.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221130130939.115928-1-andrei.otcheretianski@intel.com> References: <20221130130939.115928-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-20221130_051050_020369_61ED139B X-CRM114-Status: GOOD ( 10.86 ) X-Spam-Score: -2.7 (--) 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> With an MLD connection the BSSID reported in the association event is the MLD AP address, while the association state reported in the scan results relates to the MLD AP specific link. In such a case d [...] Content analysis details: (-2.7 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -2.3 RCVD_IN_DNSWL_MED RBL: Sender listed at https://www.dnswl.org/, medium trust [134.134.136.65 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_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 -0.2 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 |
MLD STA: Add SME MLO support
|
expand
|
diff --git a/src/drivers/driver_nl80211_scan.c b/src/drivers/driver_nl80211_scan.c index d54dd3a33e..4b0a5c720b 100644 --- a/src/drivers/driver_nl80211_scan.c +++ b/src/drivers/driver_nl80211_scan.c @@ -911,8 +911,21 @@ static void nl80211_check_bss_status(struct wpa_driver_nl80211_data *drv, "nl80211: Local state (associated with " MACSTR ") does not match with BSS state", MAC2STR(drv->bssid)); - clear_state_mismatch(drv, r->bssid); - clear_state_mismatch(drv, drv->bssid); + + if (os_memcmp(drv->sta_mlo_info.ap_mld_addr, drv->bssid, + ETH_ALEN)) { + clear_state_mismatch(drv, r->bssid); + + if (!is_zero_ether_addr(drv->sta_mlo_info.ap_mld_addr)) + clear_state_mismatch(drv, + drv->sta_mlo_info.ap_mld_addr); + else + clear_state_mismatch(drv, drv->bssid); + + } else { + wpa_printf(MSG_DEBUG, + "nl80211: BSSID is the MLD address"); + } } }