| Message ID | CAB8Pm=yPXRHHk=HWJv4xx6-=fqXn8sS2qd6C50=OF8bmcTCWcA@mail.gmail.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=VrX4sH5a;
dkim=fail reason="signature verification failed" (2048-bit key;
unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256
header.s=20251104 header.b=YVD3UGmf;
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 4j9yJ82ljmz1yJ6
for <incoming@patchwork.ozlabs.org>; Fri, 23 Oct 2026 20:23:48 +1100 (AEDT)
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:Content-Type:To:Subject:
Message-ID:Date:MIME-Version: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-Unsubscribe-Post:List-Owner;
bh=kK0wa+Qwb6t4ixMCAKC98Dt4KRz6Emr6y/sRrEm8++I=; b=VrX4sH5aAmYlO8IsizOHt3z/ky
cSUEuq+qeHtAPioaNqviHjVkPhhyU6Mz8V4UFCByVM6mIenRu0du3kyUoQZ6faIdCG9+Hfi8j8ebW
owbfmfnfxxWmGwMI/OrcbHNx8aT7DMU0rRFp0jq9nhlcrtKuT04RVoxKDnBRg20faHdmXBS6I74D6
rP8y2YBdr4rVWH473WnH7IjmSNmpt0BPlk2ue8x/mfrfuo2XTPvwvP9gKOrrTUGx7wpzN/bFxIQY+
gZv4ScoerxBgMRK//MNAdl/rLoKYKbqgP33k1V0LXeEn5PRhneUnxknsURoGUNR0OTHYE4vqKL5qq
ByV2k0kw==;
Received: from localhost ([::1] helo=bombadil.infradead.org)
by bombadil.infradead.org with esmtp (Exim 4.100.1 #2 (Red Hat Linux))
id 1xKBTh-0000000G01i-3meB;
Fri, 23 Oct 2026 09:22:21 +0000
Received: from mail-pl1-x62f.google.com ([2607:f8b0:4864:20::62f])
by bombadil.infradead.org with esmtps (Exim 4.99.1 #2 (Red Hat Linux))
id 1xI4Aj-00000004mSj-0XsJ
for hostap@lists.infradead.org;
Sat, 17 Oct 2026 13:10:02 +0000
Received: by mail-pl1-x62f.google.com with SMTP id
d9443c01a7336-2e7e742a2c7so5708605ad.0
for <hostap@lists.infradead.org>;
Sat, 17 Oct 2026 06:10:00 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; t=1792242599; cv=none;
d=google.com; s=arc-20260327;
b=D1EwrfY00DTLsGxeRKF5kyUZtBpmd8dp74VLYnwFKqEry70cSU3ILbux1JNHyMaGvn
zQUQRVYAhsdBfL738XKjfPz30wo9XkbgtDsKHzLRj56kHDAy0rvmJERn+3soiXLcauxO
w4O+3/DczyV93jcoGvH2KA0WtYlscvqsxifWBhA1S+Sx8OwC9lWOLeocSsZV57wasW1r
cb2CxAQFgwGnOMQ2MqpqJpPkZVGDCUO/cXwoL/sFGVIXBgDIRpeIzlBrkiOvEn8gvyhg
3yGcHAZaMn8pUU5cYHSewq6+zBjUIa6H959mOK6uyVC0heOadlGSXQSSPXWBZvTJNJRU
Mblg==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com;
s=arc-20260327;
h=to:subject:message-id:date:mime-version:from:dkim-signature;
bh=2WKF34dpPU3fLPkxxa8D5UoTtkyKf2L7JOosxv2yDfA=;
fh=RepBDIVbUTRsjfbrO/5AjcaOU1JdnBduCNdRP0Vpu7Q=;
b=XDsGD5DYuaBmdRwnz4JQcm10CVIx53bZ7Tz/aRydc+FUO1xQ3qPAtliReCswezVo0e
xYczGBU21EWIt8Oy7dhKRmSWPD3sljDsPqxgqVVUkRHCuUmmS3IrIufkLdkMbgwjt8Im
dBgcHAaERSZpTqQjx4cWqezYX0NOZDB0YgnoP0w6CMH8ngD9RANCIC9pmQmhDJG4RwsH
JwrIAMSo7IcL4HlbPS/Xr2WpFQGzGZ5G7CoqY1zCWL+AgYxdWzFla5E/0Dz0fTedaHxA
u5DDNPQojDehdAv3VoUiJMaKsoNdIzlRn5T4jTf4QPskzvqDSkSvral3zha7PGOTcHR3
YSnQ==;
darn=lists.infradead.org
ARC-Authentication-Results: i=1; mx.google.com; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=20251104; t=1792242599; x=1792847399;
darn=lists.infradead.org;
h=content-type:to:subject:message-id:date:mime-version:from:from:to
:cc:subject:date:message-id:reply-to:content-type;
bh=2WKF34dpPU3fLPkxxa8D5UoTtkyKf2L7JOosxv2yDfA=;
b=YVD3UGmfL69GyeWfYJlnkeTC3ojfDRNpVcOKiPe7mOf1F0fJpN7OQHFD/HcupJ04vo
6pgMyqw2fkmDOjWFuby0SE+A4mHPZ1+4GdhGwGO8IuPIUVhmvr1LYztXM3lZtuqnguD5
eH7Mn8aaK7+NHDeI8KnyZdeE15rqX18b/xZoe6PQIvgHrNpxGZkTDeKgRdsc2Y7Y0i/2
SWVvQJd+L+juiMBztHOmb3ak8Aq/QnV3OHk5y/uSoJZG6uaHvI4tZJkl7lxFEFHtGXkN
XLyY8A6YvfBADv2L4Rm1lRblJX+wFufd2fnTt9Rzi6zzroIZ8/SIRSiGTKrUbjLR18nV
4VkA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20260707; t=1792242599; x=1792847399;
h=content-type:to:subject:message-id:date:mime-version:from:x-gm-gg
:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to
:content-type;
bh=2WKF34dpPU3fLPkxxa8D5UoTtkyKf2L7JOosxv2yDfA=;
b=1NSoUdi4wxkN8BEAFnOc18wq9qFEDKsvIbR5seEUlR9/oDYjdx/7eseAzXmAXZ6BB1
zlr/BIBUy0BsX5o9P8V+o+g7+VstopW4P6vfcZY8l9rFPUoacUGz2xPwnWaYoc1myfoZ
2sIKbBOhWWwKrsmxNiPpWWIJt0EkoolqhBv6d1ETySkEfjnwi8ffUtwoPjGBTZZ3NqOa
LUrc7TGmB48qGeC+Oj35WTuzHl0GUShMMtzwpwHSaKl/QfgcWHOJfbcIBCsicOm8BA8s
mz3Dj0H1F4Cnxmm5KpHDoC/A8bCHJEkePwEJVX3XJhnVMHl9ZVL7TUC6W0vIwpUlQDwL
pMBQ==
X-Gm-Message-State: AFq9FYKuTXLHaBo2H2WN/ubuMC0RKXxEu/FdsTuS0VB8s/fDvBhAoz8e
hISCqR81svEC7nAzGc0cYP3rONZ8PMLJ1uzdVAW0gtvnbqkxui69f2xgXNwoaMwpKJD8c3rUXqN
nFzIsJR0Ip1usnfNuPMdZRfJziynvlVoMoTd/aGbLgOyj
X-Gm-Gg: AYBFou00YzMCy7T4gF1viKZUqPt7tH5tKJ6BfDIEPkba5vPYMmnHJ8dmo+NB9kIAJoo
wRPdV9zSXdEpXvdwr7X2FAFw3cB3GMqAD9epjQAwahey5LO15zsJaLWbmh8ZTSUAIH6GIPxfn/2
T6CGYV0HQxH7z6V6eguqCGNFWs5AzKmzFT4fM1HUN4mVFoZm9ALrRg3V4FaOBORcRm4R4S8PxUH
VF4OJaTPW6/l9IQ2Ltiwglift2qDsqvPymeUlLqL37F5Lep1qIopXQOlbqueyuD9ass+5FLd+gl
i5ZOsxxIL5ZcPSgL0IZMvls/2C2wYAg8H+mGqYeoH9pfBniUOuIhqv6NEq1me6ifxClzVtWGP69
LrVTC1kmf+yteBTzSvhQC5wfFa7MPXzCrwvgpOMWJ7A==
X-Received: by 2002:a17:903:b0e:b0:2dd:ad7d:72e1 with SMTP id
d9443c01a7336-2e9775570dbmr42399785ad.24.1792242599496; Sat, 17 Oct 2026
06:09:59 -0700 (PDT)
Received: from 1077388689865 named unknown by gmailapi.google.com with
HTTPREST; Sat, 17 Oct 2026 06:09:58 -0700
Received: from 1077388689865 named unknown by gmailapi.google.com with
HTTPREST; Sat, 17 Oct 2026 06:09:58 -0700
From: Alejandro Pacheco <alepacheco99@gmail.com>
MIME-Version: 1.0
Date: Sat, 17 Oct 2026 06:09:58 -0700
X-Gm-Features: AclHuK-ah0oadhhHnPDg8EaaD2XJjnB_C8aEILRcOaKlqPW-2J0rWFGAews5nMc
Message-ID:
<CAB8Pm=yPXRHHk=HWJv4xx6-=fqXn8sS2qd6C50=OF8bmcTCWcA@mail.gmail.com>
Subject: [PATCH RESEND 1/2] WPS: Keep the in-use network valid when removing a
duplicate credential
To: hostap@lists.infradead.org
Content-Type: multipart/mixed; boundary="0000000000007eb4e1065e08ffeb"
X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3
X-CRM114-CacheID: sfid-20261017_061001_185484_475E909E
X-CRM114-Status: GOOD ( 13.40 )
X-Spam-Score: -1.9 (-)
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: wpas_wps_remove_dup_network() can remove the older network
block when a WPS M8 message delivers two credentials for the same network.
The older block may be the WPS network that was converted in place [...]
Content analysis details: (-1.9 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:62f 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_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_AU Message has a valid DKIM or DK signature from
author's
domain
-0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from
envelope-from domain
-1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1%
[score: 0.0000]
0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail
provider
[alepacheco99(at)gmail.com]
0.2 FREEMAIL_ENVFROM_END_DIGIT Envelope-from freemail username ends in
digit
[alepacheco99(at)gmail.com]
-0.0 DMARC_PASS DMARC pass policy
X-Mailman-Approved-At: Fri, 23 Oct 2026 02:22:21 -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>
Sender: "Hostap" <hostap-bounces@lists.infradead.org>
Errors-To: hostap-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org
|
| Series |
[RESEND,1/2] WPS: Keep the in-use network valid when removing a duplicate credential
|
expand
|
diff --git a/wpa_supplicant/wps_supplicant.c b/wpa_supplicant/wps_supplicant.c index 25a5598ce..334f6a1cb 100644 --- a/wpa_supplicant/wps_supplicant.c +++ b/wpa_supplicant/wps_supplicant.c @@ -26,6 +26,7 @@ #include "wpa_supplicant_i.h" #include "driver_i.h" #include "notify.h" +#include "wpas_glue.h" #include "bssid_ignore.h" #include "bss.h" #include "scan.h" @@ -365,6 +366,14 @@ static void wpas_wps_remove_dup_network(struct wpa_supplicant *wpa_s, /* Remove the duplicated older network entry. */ wpa_printf(MSG_DEBUG, "Remove duplicate network %d", ssid->id); + if (ssid == wpa_s->current_ssid) { + /* The older entry is the one used for the ongoing + * association; continue with the new entry. */ + wpa_s->current_ssid = new_ssid; + wpa_supplicant_rsn_supp_set_config(wpa_s, new_ssid); + eapol_sm_notify_config(wpa_s->eapol, &new_ssid->eap, + NULL); + } wpas_notify_network_removed(wpa_s, ssid); wpa_config_remove_network(wpa_s->conf, ssid->id); }
wpas_wps_remove_dup_network() can remove the older network block when a WPS M8 message delivers two credentials for the same network. The older block may be the WPS network that was converted in place for the first credential and is still used for the ongoing association. Removing it cleared current_ssid, but left the EAPOL and WPA state machines referencing the freed network block, and the following WPS completion processing lost the connection to the new credential. Move the in-use references to the new network block before removing the older one. Fixes: 741ed9fc2503 ("WPS: Remove duplicate networks after WPS") Signed-off-by: Alejandro Pacheco <alepacheco99@gmail.com> --- Resent: the first posting of this patch (<CAB8Pm=xpX1-z2n5tGWE7QD0AvAn1SdamsZpmMBUF37eyc27TAQ@mail.gmail.com>) reached the list with its long lines wrapped, so it does not apply. The patch is unchanged. This time the diff is attached as plain text so that it arrives intact; git am takes this mail as it is. wpa_supplicant/wps_supplicant.c | 9 +++++++++ 1 file changed, 9 insertions(+)