| Message ID | 20260825151636.1463824-1-jonah@sense.com |
|---|---|
| State | New |
| 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=iaROcaTE;
dkim=fail reason="signature verification failed" (1024-bit key;
unprotected) header.d=sense.com header.i=@sense.com header.a=rsa-sha256
header.s=google header.b=G0Qho7sp;
dkim-atps=neutral
Authentication-Results: legolas.ozlabs.org;
spf=pass (sender SPF authorized) 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 4hV0fj0DcPz1xwZ
for <incoming@patchwork.ozlabs.org>; Wed, 26 Aug 2026 07:05:13 +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: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:In-Reply-To:References:
List-Owner; bh=3gps6qfpBSeFKiZgTrOnZ7BawGfbL+TH7XTfL6BBpRQ=; b=iaROcaTEihfS7u
YgmvSInt3MGKKiny/fLI+Uit6ly9FY8x+UbrPFlYYx5cOMiEALBUJzo3hx5n0l8zkDbS0v4PrDlDy
vpxVVRRhpCrnuLPObwnGIaHQEPE2xUVnZJvLTqY7k2VtmXtNAML/McS9oRs1VrjB1Lp0fBIa0eD7j
Jwrazt1OZVKafgWWk3e1g9UdywbahYDQcQaZL+gkHJThHHJa7JEkHmfGz/V/S0KFH9M3Pv9+RY4As
tH2A2zJeS0OoHNtPVYSPxmJhg4jm4oEfp2M7I/ncM8VTr4H5RouL2higz7RevMU9ME5fjEeJd1y4e
sC7B5YPSuHorTdwNPLvg==;
Received: from localhost ([::1] helo=bombadil.infradead.org)
by bombadil.infradead.org with esmtp (Exim 4.99.1 #2 (Red Hat Linux))
id 1wyyIh-00000001Tlc-2X7P;
Tue, 25 Aug 2026 21:03:19 +0000
Received: from mail-qk1-x72d.google.com ([2607:f8b0:4864:20::72d])
by bombadil.infradead.org with esmtps (Exim 4.99.1 #2 (Red Hat Linux))
id 1wystS-000000011ct-0PBJ
for hostap@lists.infradead.org;
Tue, 25 Aug 2026 15:16:55 +0000
Received: by mail-qk1-x72d.google.com with SMTP id
af79cd13be357-92f0b5ed131so406765385a.3
for <hostap@lists.infradead.org>;
Tue, 25 Aug 2026 08:16:53 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=sense.com; s=google; t=1787671013; x=1788275813;
darn=lists.infradead.org;
h=content-transfer-encoding:mime-version:message-id:date:subject:cc
:to:from:from:to:cc:subject:date:message-id:reply-to:content-type;
bh=D7OrTFJ/3+A0Dk4ZrXy1yovMk2gtES3oPiVcDcTufAA=;
b=G0Qho7sp9HH5WPchUvyRqHjt8LNkFH3M7YHWD8D/+RlzbOsICY6MRyPLj06sdvXZvY
5g2IieLXSVjAQtkHAxFBm17K4QYgXmTqR5t3ThjDu4ceSpvIm4pfUEgIedtaYL8K82rE
MyR3QC0pwz6WHPcW3mGPF3D/MmbvEzIq9HbwQ=
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20251104; t=1787671013; x=1788275813;
h=content-transfer-encoding:mime-version:message-id:date:subject:cc
:to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date
:message-id:reply-to:content-type;
bh=D7OrTFJ/3+A0Dk4ZrXy1yovMk2gtES3oPiVcDcTufAA=;
b=q7Ec7ahgUmQSOymaFqew8+mUi+43JlnogMhGSltd3Gs0m+P1wJs84dqU8+5O0xfqNy
9rPUU/W5aoxeiCVro6JArV113rKoz/i/6mKRg2jrtBHx+hyueg6GZ/2TQOmGpNgkKega
w1wb9d0iBILneDyhMutupVus4aoV7yGycbNMiO1Ek5rtzv8WOXmFkbX+Z51/a6TnTaJu
ZgFYj2qWC2HhMn+hU1YDp5D8reihDPf1GTZ/vZzZ//dj2ptBiujBmzw3C5c9K3dL5OGq
2lSVINgkIvM/S6o1FUEjJpPlASWQCwisk2ZeBVW7USgXguPpPCDhY+g3LczV88qOLEV0
Tz+Q==
X-Gm-Message-State: AFuF++lP5Rk69saxNBmE85Xcs8lIL2CGZGGYoe3/lGp2sGjDVxjxXalL
IojuQSdSumctnzS7AUIHeettZoZCsZz1RShSb+Oo2h/iEp9WRY5LCwfBqvomAPILLe6Yd4x845Q
ESDSC
X-Gm-Gg: AR+sD11iNn/hcSWRroltKCC2svzXtr6MDyP5TgO15bZPWh9ogTDpRdxiN5NZ7/k7EJ6
DDo5aYQ1Q3DcS6//I/KhvrwEep4KU920PyUkMw5Z+XFyiSFmkypymRF0P8XRHSIOQtGhsr6WsMj
jz/ebqjezT8H7XRsP2l/vAITcHNnyywIjF4cm5tVLW/FfaRT9o9O7j48xrIzc8rcqgmbXWsVnHA
RWrJ3PLkBiycFqJKL0ia42uyzrDfxMUmiIZkzW/E1ihhxE1ZgWapAZ//g80FkhGIY+WzNpzK5Tk
Qx3T5ZkyLt2iunx+Ic8ZNNkAFdSGgTIwAzxVaRELr5gnyql5+jKyp/wFOIkxdTpxFK4fA4YHXwO
Ypcn6lMi9tBtyAibsR6oi9ekTkLoEW57DwDQP1UjHR6QoFZvLgp0PiOxRIz44o27cBtqPIQ1hZt
YmzkHbWqj60BAbmmvM57E/0CPYA0voj2RHDHR4EslN/EpzaHc+U9g=
X-Received: by 2002:a05:620a:708d:b0:932:fd22:5d7a with SMTP id
af79cd13be357-9374697fb5emr2463796385a.32.1787671012529;
Tue, 25 Aug 2026 08:16:52 -0700 (PDT)
Received: from localhost ([50.170.154.78])
by smtp.gmail.com with ESMTPSA id
af79cd13be357-93749eb0e67sm755538685a.43.2026.08.25.08.16.51
(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
Tue, 25 Aug 2026 08:16:51 -0700 (PDT)
From: Jonah Petri <jonah@sense.com>
To: hostap@lists.infradead.org
Cc: Jonah Petri <jonah@sense.com>
Subject: [PATCH] EAP: Fix Get EapMethods via dbus when IEEE8021X_EAPOL is
disabled
Date: Tue, 25 Aug 2026 11:16:36 -0400
Message-ID: <20260825151636.1463824-1-jonah@sense.com>
X-Mailer: git-send-email 2.43.0
MIME-Version: 1.0
X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3
X-CRM114-CacheID: sfid-20260825_081654_152843_E833E98F
X-CRM114-Status: GOOD ( 14.64 )
X-Spam-Score: -2.1 (--)
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: When IEEE8021X_EAPOL is disabled,
wpa_supplicant would return
"no memory" when Get EapMethods or simply GetAll was issued via dbus. This
change fixes the stub code which is invoked when IEEE8021X_EAPO [...]
Content analysis details: (-2.1 points, 5.0 required)
pts rule name description
---- ----------------------
--------------------------------------------------
-0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no
trust
[2607:f8b0:4864:20:0:0:0:72d listed in]
[list.dnswl.org]
0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record
-0.0 SPF_PASS SPF: sender matches SPF record
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_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
-1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1%
[score: 0.0000]
-0.0 DMARC_PASS DMARC pass policy
X-Mailman-Approved-At: Tue, 25 Aug 2026 14:03:17 -0700
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 |
EAP: Fix Get EapMethods via dbus when IEEE8021X_EAPOL is disabled
|
expand
|
diff --git a/src/eap_peer/eap_methods.h b/src/eap_peer/eap_methods.h index e94f3d75a..6a5b39d4b 100644 --- a/src/eap_peer/eap_methods.h +++ b/src/eap_peer/eap_methods.h @@ -56,9 +56,19 @@ static inline void eap_peer_unregister_methods(void) { } +/** + * This stub must match the return convention of the full function of the + * same name, which is enabled when CONFIG_IEEE8021X_EAPOL is enabled. + * + * Returns: A %NULL-terminated array of zero strings in this implementation, + * as IEEE8021X_EAPOL is disabled. + */ static inline char ** eap_get_names_as_string_array(size_t *num) { - return NULL; + char **result = calloc(1, sizeof(*result)); + if (num) + *num = 0; + return result; } #endif /* IEEE8021X_EAPOL */
When IEEE8021X_EAPOL is disabled, wpa_supplicant would return "no memory" when Get EapMethods or simply GetAll was issued via dbus. This change fixes the stub code which is invoked when IEEE8021X_EAPOL is disabled to match the return convention of its fully-fledged peer. To test this, configure wpa_supplicant with IEEE8021X_EAPOL off, and then issue something like: busctl --system call fi.w1.wpa_supplicant1 /fi/w1/wpa_supplicant1 \ org.freedesktop.DBus.Properties GetAll s fi.w1.wpa_supplicant1 This patch fixes this issue by changing the behavior of wpa_supplicant to return an empty array instead. The "no memory" error was causing connman to not see the wifi interface at all, as connman would treat the "no memory" error as cause to reject the wifi interface. Signed-off-by: Jonah Petri <jonah@sense.com> --- src/eap_peer/eap_methods.h | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-)