Message ID | 20230215230904.933291-46-andrei.otcheretianski@intel.com |
---|---|
State | Changes Requested |
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=1itwOm7N; 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=GEtoJ83U; 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 4PHFM161hVz23j7 for <incoming@patchwork.ozlabs.org>; Thu, 16 Feb 2023 10:55:25 +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=1wUySiVPYz7Wv6muH8ALtlNlHdaP7ZrXgC2D5Qvn1zs=; b=1itwOm7NyDnJpd E/ieFRn/A9maK2KagL+9OQRwNAVQKdIIHQrFnNNgdN9hUhI1wMS4uon3wi1NUpRDofPW7XgW+nQVs CFg9eZhcaw/mVkBjb5ryj5YjUIL+hrJwvRWAVSXsuT7GD79BGn7IuglP31E6Jj50NgkRQcMbFTh7f 38i4hsGd4GvlKSdNC/qypb67/vuJLiGni0U+bJ28szJOwdWAg3ktYptP5ClgV5qw6JAiKrYHC4Udd 6ydRsgwp89S1mSt4NHdERsHkvKu9gH7wRPvgnhfyuA81dWoh1ZdwQW1M1hAWgFWKtwXMGGGYkHhIW JIFRCsCbCR/mCRbjl5Og==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pSRbf-00806P-BE; Wed, 15 Feb 2023 23:54:36 +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 1pSQvJ-007ljz-EO for hostap@lists.infradead.org; Wed, 15 Feb 2023 23:10:50 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1676502649; x=1708038649; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=W8ZR3aUwYRW9L8uOzyAk2e+3FgX4DS54vK5DWTRXZZA=; b=GEtoJ83UGDwdRfqbowvlfB6IogBK/tQFpSDbXbLze6B75UJLuMXHh/z/ VVsHVn9Y2tsykuyqDY5vjopOf/GrI7ZwwA4jMIlul4i9ScGnz0FA6FQjv xYH0v8CTTai7C8Xv2bWsCw+7t16PwhMrkdyCculFJVHJR9W/5pv05GbCU 1U7WempXNB1/OfVRp1x583M/U5nOYi6VRG0I46Sq9Noqzv/bTj+wLyexS qJCdP6J/qC3lwCVa6ofDBsJq2CBOpp6AJLpTjM497ZD5DCGJg2AjExuNb bxxZ6xpAmktDFzeYYPB9klvenf/hUC7CHXbKeGM4edf8HG5OxDGipyH5X A==; X-IronPort-AV: E=McAfee;i="6500,9779,10622"; a="333719824" X-IronPort-AV: E=Sophos;i="5.97,300,1669104000"; d="scan'208";a="333719824" 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:31 -0800 X-IronPort-AV: E=McAfee;i="6500,9779,10622"; a="702344633" X-IronPort-AV: E=Sophos;i="5.97,300,1669104000"; d="scan'208";a="702344633" 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:30 -0800 From: Andrei Otcheretianski <andrei.otcheretianski@intel.com> To: hostap@lists.infradead.org Cc: Andrei Otcheretianski <andrei.otcheretianski@intel.com> Subject: [PATCH 45/50] AP: Use MLD address for SAE commit derivation Date: Thu, 16 Feb 2023 01:08:59 +0200 Message-Id: <20230215230904.933291-46-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_151049_640528_0218C7A3 X-CRM114-Status: GOOD ( 11.67 ) 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: Signed-off-by: Andrei Otcheretianski <andrei.otcheretianski@intel.com> --- src/ap/ieee802_11.c | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/ap/ieee802_11.c b/src/ap/ieee802_11.c index c302f01804..3af86e6df8 100644 --- a/src/ap/ieee802_11.c +++ b/src/ap/ieee802_11.c @@ -600,12 +600,18 @@ static struct wpabuf * auth_build_s [...] 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 |
Add basic MLO support for AP
|
expand
|
diff --git a/src/ap/ieee802_11.c b/src/ap/ieee802_11.c index c302f01804..3af86e6df8 100644 --- a/src/ap/ieee802_11.c +++ b/src/ap/ieee802_11.c @@ -600,12 +600,18 @@ static struct wpabuf * auth_build_sae_commit(struct hostapd_data *hapd, int use_pt = 0; struct sae_pt *pt = NULL; const struct sae_pk *pk = NULL; + u8 *own_addr = hapd->own_addr; + +#ifdef CONFIG_IEEE80211BE + if (hapd->conf->mld_ap && sta->mld_info.mld_sta) + own_addr = hapd->mld_addr; +#endif if (sta->sae->tmp) { rx_id = sta->sae->tmp->pw_id; use_pt = sta->sae->h2e; #ifdef CONFIG_SAE_PK - os_memcpy(sta->sae->tmp->own_addr, hapd->own_addr, ETH_ALEN); + os_memcpy(sta->sae->tmp->own_addr, own_addr, ETH_ALEN); os_memcpy(sta->sae->tmp->peer_addr, sta->addr, ETH_ALEN); #endif /* CONFIG_SAE_PK */ } @@ -625,12 +631,12 @@ static struct wpabuf * auth_build_sae_commit(struct hostapd_data *hapd, } if (update && use_pt && - sae_prepare_commit_pt(sta->sae, pt, hapd->own_addr, sta->addr, + sae_prepare_commit_pt(sta->sae, pt, own_addr, sta->addr, NULL, pk) < 0) return NULL; if (update && !use_pt && - sae_prepare_commit(hapd->own_addr, sta->addr, + sae_prepare_commit(own_addr, sta->addr, (u8 *) password, os_strlen(password), sta->sae) < 0) { wpa_printf(MSG_DEBUG, "SAE: Could not pick PWE");
Signed-off-by: Andrei Otcheretianski <andrei.otcheretianski@intel.com> --- src/ap/ieee802_11.c | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-)