From patchwork Mon Aug 5 03:16:08 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Maochen Wang X-Patchwork-Id: 1968874 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=kwKJyjSu; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=nxp.com header.i=@nxp.com header.a=rsa-sha256 header.s=selector1 header.b=Q9q3v+FA; 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 4WchS930wjz1ybS for ; Mon, 5 Aug 2024 13:16:55 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:MIME-Version:Content-Type: Message-ID:Date:Subject:To:From:Reply-To:Cc:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=POgWBJ/u2xF8BHlsBVwrdTJ8z9sahV9OT9sgZI5M/5M=; b=kwKJyjSuyELgQGW0kmLYW1W8DS GEE9P3Fxf4N4x4lWftBMACzzXxMM1hvZVj/bCWQetmc0zM766s1cTdZ553uqJpFNrh1h62B1FiwTk XJF/lQCuLpncqmjQRlik3S4RAHlBOxxAhhT0c//lQKikVhdbaOP17rvOTeJeUHisNGJYdogLCSITa AWlHYBuDqy3L2NJooqxd71+7jPGlEoAeUftXsHRqYDM9BrrUdUktBAr9OMwci8psqw4QLCLVAxM2/ F1BnE4rOvGW+L/fG2hctWns3hWIBXN/3AOv7V5g6C9uRFP/4Vlh8w3Frqu9vCu3djXB6rLzmvp3Ef 4KeLG3ig==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1saoCm-0000000ETg9-34d2; Mon, 05 Aug 2024 03:16:16 +0000 Received: from mail-vi1eur02on20601.outbound.protection.outlook.com ([2a01:111:f403:2607::601] helo=EUR02-VI1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1saoCj-0000000ETff-392U for hostap@lists.infradead.org; Mon, 05 Aug 2024 03:16:14 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=EHH/BncpO7gjWiIc0JMRJ0aGyocNLEOBR8h5zf7sap4jixPE8r7kW5mF4Q3TjneKWn+MEUv0KmKLgy9bzflNnD+ULIWXf9oXeIA5hLuMKSYZ4kajznh/qic45H2ZWH9NjlvH2YodciTwO37Wx180mgnAg1msHyLe76z2yN00GzFR1D+EoEIHcx36/C9r9dTqslVX3kPnT58ELCRAcLFQtMTM1cN6Z4wLHcgmlMNTAiJqqGii/10luwUztGXKP5vjg8OWWow3gGi02u1mbp+imfFZLJUWAmkigMa/FY+I3rhbMm+kceNMIC2jc4ARYLoPo/rrGjF54VpvhSlfVruQ3g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=VdrPUkdNNyPPm5gHJu1Bic7GOOJgBEw8XwPBulOR+y8=; b=rCLyBKEGXhtf8U1H1L4psyZIF2WJKY5qhVNSnfzr6oWlqinsxPltxKAU2sRGCWs8JR/GhcfrQNtcKSEy5MfT7JBnFFLKYEYZSYAnCXdzz2shG5fqJ3cx+nw7ciurRgFNJWvfnl2oEQWzJQ4nzx9xyY5UGYqWfNq8R0QtBnZShnaKkQjteH2IhljC0/6N9sqnf3Wry2LE+14QUeIb+EweOWA+Uy5oEmpFp5QgRUWL/ju9jlDRdqLSn3s/vL93diEb6umIiig8lNE6awC3jSBvfIefRjFZ3eHocKQBM1CvtKvdweg0GSEKt0dM1O7YkEzS5ZVLqsv4YS7jRVTfN31ZiQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=VdrPUkdNNyPPm5gHJu1Bic7GOOJgBEw8XwPBulOR+y8=; b=Q9q3v+FAp3c69O69IzcClO781ZYVbVEbXLlOFO7ktIXvn/C/HHXUE754O4LzvG/Y8PpR4Vg6nCqDoV+eN6+2YlLSqzlNgvWjP03cPpnOoQkI8V7CU+fMidVXgSICOWF+IBNccOYUS0bU6kgtpmKa+2Qhc7zOpwUMwWAcXZf2CuiDbIdu70JI45BZkU9Lv9qQmIDQS2Ab+lWWRybRJQD19JWvv7P4IizFqunk1UklMTjS0bEbKfp7WaUN2XePfVqEZyiw/pR23sUcal1dy6ike1LI8sZ+pRnMHdaFD/kkeTOVfxq8hXcNwB7FQwc962m3huYP3I9J3mSccmbSLCK4Pw== Received: from AM9PR04MB8779.eurprd04.prod.outlook.com (2603:10a6:20b:40a::20) by PA4PR04MB7888.eurprd04.prod.outlook.com (2603:10a6:102:b9::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7828.24; Mon, 5 Aug 2024 03:16:08 +0000 Received: from AM9PR04MB8779.eurprd04.prod.outlook.com ([fe80::5663:58e6:f675:1190]) by AM9PR04MB8779.eurprd04.prod.outlook.com ([fe80::5663:58e6:f675:1190%4]) with mapi id 15.20.7828.023; Mon, 5 Aug 2024 03:16:08 +0000 From: Maochen Wang To: "hostap@lists.infradead.org" Subject: [PATCH] eap: fix the duplicated registration of eap server Thread-Topic: [PATCH] eap: fix the duplicated registration of eap server Thread-Index: Adrm5b/eHb4/g8L/TTuFdif/16GfyA== Date: Mon, 5 Aug 2024 03:16:08 +0000 Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: yes X-MS-TNEF-Correlator: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: AM9PR04MB8779:EE_|PA4PR04MB7888:EE_ x-ms-office365-filtering-correlation-id: 2127c317-0b3a-4b89-d2d5-08dcb4fcf31a x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0;ARA:13230040|366016|1800799024|376014|38070700018; x-microsoft-antispam-message-info: =?iso-8859-1?q?C3P7S9LEXnZRNeQubhfiucJP0C?= =?iso-8859-1?q?blZLMf795cPbOyKM3xWFqbDOXaUpsw06BVEZ/93aPhbrHisOWBmivxX7+67W?= =?iso-8859-1?q?7cBkoQvFIZP+e2OhsrSRgcIkEz7XqoRJ3nKBHKpVQWh4cjtJt3X7/rIYtTwF?= =?iso-8859-1?q?K1wMvkA/q5Zi24YfwAlhVkMZ3wvO8dynbhU8nLBh/BNL2mTOdpfSEcGUFIR3?= =?iso-8859-1?q?wZEGyPswLpbF8+x/VTDicHuevG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nay/SDXKe?= =?iso-8859-1?q?gBYDrKD2ekE84wpOUz3N2JqEsbu7OWAUn9leQp5pnR6ZHMowgO0BJOGP8oqC?= =?iso-8859-1?q?VAwkILCDflpPRxz+uyd1cS/QioP8fy5cht+M2R64vzYalZNDwCqZgQguqNBE?= =?iso-8859-1?q?WvDXlCw+pTnxilLLP9nEL7kxkavRl6TSJao9OrIDXiUBdepLn11ihHduKQR+?= =?iso-8859-1?q?O5EgIbpa3DWQ4I9wpLTp3b8wnwJTbqCZxpPNIlxeFUm9s6pHv5xZVSm5gYqw?= =?iso-8859-1?q?y/rTwFbwJIVTOLpXwGE580L3fCHR6cs6KljEi/JEDqWyInkMMN5M4xmF8zoU?= =?iso-8859-1?q?pqCwEx+nQSG7kEXxqths73bw=3D=3D?= x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:AM9PR04MB8779.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(366016)(1800799024)(376014)(38070700018);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?iso-8859-1?q?Kz7KwuSycjqMqhMB8imZNEA?= =?iso-8859-1?q?wY2mTqU5Msx6/YOcOF3cYOhmek3rpLi1VziJacj3Di7YWHAyil5z0th27Ftj?= =?iso-8859-1?q?D5LFEbDBCi8Z1s0eEUSYGuTdQv9jLxUfPcRjCcPIP+IDTWMyHrDVPuKL6rA5?= =?iso-8859-1?q?dA3ArA+blR9htENBKf2NHjrwsHb2/MW+RCHtYMGNWbX3cGB2SXSTyJuvO3I/?= =?iso-8859-1?q?aSaMNZ+dDoknVm+J/0TDwxC49eX/djBNpBdbmNiDuxbBtbiVa6hRudidwzI3?= =?iso-8859-1?q?Z50pLeFtvaczXoN2FLgbD6rNrhb7sqsIgzdGYIAK7Xgndb9Rt5GETgI2K3KO?= =?iso-8859-1?q?ZE8yXSFcQxq4yjQcxP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88LGdkotXBZVz261yHt?= =?iso-8859-1?q?O04Ck4GaujNASdaY5hG1oGWdIpaydzk9yP8UK2PMIa7FSydAgjrwHLptRh14?= =?iso-8859-1?q?7zuZI0rKM+cvBgiW3KnStUp9PyewLczLbNSkveZ6eRUJDMgglvqbqQ/IEtXn?= =?iso-8859-1?q?9/52cSyXkq2uLT5CCsqFZBTIIibnV9r8BhaAdUQINoN6vySb/o6hQQr/JRiL?= =?iso-8859-1?q?MTmC+MieBdkpRqdxNcwaoVbrsnWQZegHLUGnJOrvQRtpbCY/j8bbiR4Rq3A/?= =?iso-8859-1?q?+udDn3yglJPsS9aNd4j2V3IODNvt9+fL34UYMbANb2JIvXGthTY9ElmUxfuU?= =?iso-8859-1?q?o63/VtAGlX4sqkXzuyDrbm7jQJEROtgp80bav6bfNbYPwut2rPN42Vxvlqfq?= =?iso-8859-1?q?RxVCwbNc18Q9zrMsS?= MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: AM9PR04MB8779.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 2127c317-0b3a-4b89-d2d5-08dcb4fcf31a X-MS-Exchange-CrossTenant-originalarrivaltime: 05 Aug 2024 03:16:08.2685 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: r53kY3r4U9wqm7Uk1sEx3C9Iz5QD4WGvtvFPeNb7l6HssiD6kw8kLWODemCjAG0qDoO79htV/lx+/XddkEBwmg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PA4PR04MB7888 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240804_201613_825802_E1550526 X-CRM114-Status: GOOD ( 13.69 ) X-Spam-Score: 0.2 (/) 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 ca0b2812a3f2ce1952a805212a02e99f70da786f Mon Sep 17 00:00:00 2001 From: Maochen Wang mailto:maochen.wang@nxp.com Date: Tue, 30 Jul 2024 17:30:40 +0800 Subject: [PATCH] eap: fix the duplicated reg [...] Content analysis details: (0.2 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 T_SPF_PERMERROR SPF: test of record failed (permerror) -0.0 SPF_HELO_PASS SPF: HELO matches 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_EF Message has a valid DKIM or DK signature from envelope-from domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.0 ARC_SIGNED Message has a ARC signature -0.1 ARC_VALID Message has a valid ARC signature -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] 2.4 FORGED_SPF_HELO No description available. 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 ca0b2812a3f2ce1952a805212a02e99f70da786f Mon Sep 17 00:00:00 2001 From: Maochen Wang mailto:maochen.wang@nxp.com Date: Tue, 30 Jul 2024 17:30:40 +0800 Subject: [PATCH] eap: fix the duplicated registration of eap server method Fix the duplicated registration of eap server method, as on Zephyr OS, hostapd and supplicant are running in same task, when hostapd enabled, eap_server_register_methods() will also call the eap server related functions, which leads to the duplicated registration of eap server method. Signed-off-by: Maochen Wang mailto:maochen.wang@nxp.com --- wpa_supplicant/eap_register.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wpa_supplicant/eap_register.c b/wpa_supplicant/eap_register.c index 3f018c4b3..d009be5dd 100644 --- a/wpa_supplicant/eap_register.c +++ b/wpa_supplicant/eap_register.c @@ -152,6 +152,7 @@ int eap_register_methods(void)             ret = eap_peer_eke_register(); #endif /* EAP_EKE */ +#ifndef HOSTAPD #ifdef EAP_SERVER_IDENTITY      if (ret == 0)             ret = eap_server_identity_register(); @@ -266,6 +267,6 @@ int eap_register_methods(void)      if (ret == 0)             ret = eap_server_pwd_register(); #endif /* EAP_SERVER_PWD */ - +#endif /* HOSTAPD *      return ret; }