From patchwork Wed Feb 15 23:08:57 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrei Otcheretianski X-Patchwork-Id: 1743202 Return-Path: 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=) 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=dAAQpUZu; 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=jecEZ/zK; 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 4PHFGt2krPz23yD for ; Thu, 16 Feb 2023 10:51:50 +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=/eSgshDU3poDXUv6OiZ2eu939V1X08vLVHriG36LuuI=; b=dAAQpUZu8XWMp3 cq+WzNnN/Z+diGaFQZHCP+XMUzLJWH4zog47uIzPxF7Y5X6lNxG2/CMBJm4m3TH3phP+FkTkgUgrw YG2G5W3ezm6xTkjZnVoyghBnRrHgct3D/mMNSxByt/VfET1PhEg/YQbD6xkBXrFWT6Mxoc31EcFz2 3t2DnueujGq4x/JGM7whF6Fn1jmQfp1LolQoT9KMHr535ytU8qrkcPJshxJxEDvWOHGmqdfxC3iPJ wGNzm+kxgPtUsfoZnayTqgpAHhw6/rzfYtHRUm0JGoEtwsR7T2QWzqJJwNL+P1W1G2CMbQauMavSL V9Wb0Va9+LaUh0CZucbA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pSRYB-007yvl-Aw; Wed, 15 Feb 2023 23:51:00 +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 1pSQvI-007ll5-DC for hostap@lists.infradead.org; Wed, 15 Feb 2023 23:10:49 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1676502648; x=1708038648; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=tW2RpcmNIEvE6hMBuSOXZF0Nl6sMA+/y+ZLfyAjNFDs=; b=jecEZ/zKaxow+zoee9eEXZgeS8Y5wFkCRKyI+1ZhLRTWxqrb9HDzWmzj lzAnesSfOpAyU9jjH14EUv7EpIa59v+/NCHrHPnKoHIQTTqwNXpoGiKnw fj8mV/cw3KyL+CgGMDwUsJcBUp6BAMXZzyD8A/LMDyvvljo9Ap20GjdXs qTv/v0T+5icuJ8cLaEueGwd6BymFYwoGii0TfnGU1wSxyR/4CloeHvkOx QfIlTql9AZC4Pxp9XklpL24XluI9rSboS7QgDYRnCuH52SEQCJJPiXIPk EfxRYqb2kKEhQYs/IA8YB0r78hz8f6TrXvR2ZYkR1UE6e3JkMaQ05NRqr A==; X-IronPort-AV: E=McAfee;i="6500,9779,10622"; a="333719809" X-IronPort-AV: E=Sophos;i="5.97,300,1669104000"; d="scan'208";a="333719809" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Feb 2023 15:10:28 -0800 X-IronPort-AV: E=McAfee;i="6500,9779,10622"; a="702344554" X-IronPort-AV: E=Sophos;i="5.97,300,1669104000"; d="scan'208";a="702344554" Received: from zfilgut-mobl.ger.corp.intel.com (HELO aotchere-desk.intel.com) ([10.254.144.126]) by orsmga001-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Feb 2023 15:10:27 -0800 From: Andrei Otcheretianski To: hostap@lists.infradead.org Cc: Ilan Peer Subject: [PATCH 43/50] WPA_AUTH: MLO: Get the correct AA and SPA based on MLD operation Date: Thu, 16 Feb 2023 01:08:57 +0200 Message-Id: <20230215230904.933291-44-andrei.otcheretianski@intel.com> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20230215230904.933291-1-andrei.otcheretianski@intel.com> References: <20230215230904.933291-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-20230215_151048_532972_A4054C4F X-CRM114-Status: UNSURE ( 9.33 ) X-CRM114-Notice: Please train this message. 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 Signed-off-by: Ilan Peer --- src/ap/wpa_auth.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/ap/wpa_auth.c b/src/ap/wpa_auth.c index 3f64561d0b..ee1be2782d 100644 --- a/src/ap/wpa_auth.c +++ b/src/ap/wpa_auth.c @@ -37,13 +37,15 @@ 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: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Hostap" Errors-To: hostap-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org From: Ilan Peer Signed-off-by: Ilan Peer --- src/ap/wpa_auth.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/ap/wpa_auth.c b/src/ap/wpa_auth.c index 3f64561d0b..ee1be2782d 100644 --- a/src/ap/wpa_auth.c +++ b/src/ap/wpa_auth.c @@ -37,13 +37,15 @@ static const u8 *wpa_auth_get_aa(struct wpa_state_machine *sm) { - return sm->wpa_auth->addr; + return (sm && sm->mld_assoc_link_id >= 0) ? + sm->own_mld_addr : sm->wpa_auth->addr; } static const u8 *wpa_auth_get_spa(struct wpa_state_machine *sm) { - return sm->addr; + return sm->mld_assoc_link_id >= 0 ? + sm->peer_mld_addr : sm->addr; }