| Message ID | 20261022053522.1899270-1-dencity7@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=fmW1zYEA;
dkim=fail reason="signature verification failed" (2048-bit key;
secure) header.d=infradead.org header.i=@infradead.org header.a=rsa-sha256
header.s=desiato.20200630 header.b=V3NlTDB7;
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=HsXWcsWq;
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 4j9yJr6tq4z1yGC
for <incoming@patchwork.ozlabs.org>; Fri, 23 Oct 2026 20:24:28 +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-Unsubscribe-Post:List-Owner;
bh=qrjfDIw4eKM04iDNUpaoRqnaFnMc7/PIPL0/d096Fzc=; b=fmW1zYEAPdrVbjUI7rMCofHTNk
qQUxdvbKScuLITxfLaZ0T8PulYmezAMLbmhC8p+np8zyJlT/QJl6W7xATGpMWn28aVI1DpP9U5v++
J566rutSDaTdyWOkKL8NyFZsFBFTMzSbS59k40W+zu7+orW9Pdfg20BnfuZJUeiVvbkJmDraZ6Fe5
q3PGrNZ9jE0hlKsbvzj4Sy/OMihL3wInNfDN8pYx4O7V3VFT29iYwcxgqfi/THcmGRFk6hjuqu6gd
uOf7vWtxHmtOPp5VN4l6XaLquBvqGlxuJNLQbIOVSIWtKDj5tmKCtWwGmodWDKPzDNjL0gYfD7hAs
8+tO2hMQ==;
Received: from localhost ([::1] helo=bombadil.infradead.org)
by bombadil.infradead.org with esmtp (Exim 4.100.1 #2 (Red Hat Linux))
id 1xKBUQ-0000000G0GR-1e8A;
Fri, 23 Oct 2026 09:23:06 +0000
Received: from desiato.infradead.org ([2001:8b0:10b:1:d65d:64ff:fe57:4e05])
by bombadil.infradead.org with esmtps (Exim 4.99.1 #2 (Red Hat Linux))
id 1xJlT7-0000000DPDb-2TOK
for hostap@bombadil.infradead.org;
Thu, 22 Oct 2026 05:36:01 +0000
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed;
d=infradead.org; s=desiato.20200630; h=Content-Transfer-Encoding:MIME-Version
:References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From:Sender:Reply-To:
Content-Type:Content-ID:Content-Description;
bh=dB/HJDtwvEVbzrMABKPUg7ZXLLMFFEp5iXothxI65Ek=; b=V3NlTDB7heA4sWd2+v8f/QiTxR
Pblk8FnvvfsFAsD14ZWye6zqRfLpCsU46b09oo+BIEcJaL29E5cU2UPhouHTDO/wzKvxLGM4IwpLH
F4QxS+8ZBluzgI1lRllK72VHbKeX2r/6ucbeL3wK+ETK32Jm/Lpk7XxKLbjqOze9JUaJIoNRreKnd
PYjE5hhytQwMGaeB9fH0Fi/Chw7LoHI7By+BmQX3I3HI20Ho8AfMqZSWajkEr5Cf0mJa+1x1l7dKp
UZ0LEwWB7f2X5CT+pk0gRiblofglSd2UGTMbFKyJiok+m2PPBcDinP7JkG8ZRj8i5d/Hfkjek0b8s
Hrj+J+ow==;
Received: from mail-dy1-x1335.google.com ([2607:f8b0:4864:20::1335])
by desiato.infradead.org with esmtps (Exim 4.99.5 #2 (Red Hat Linux))
id 1xJlSx-00000006ULL-2cQF
for hostap@lists.infradead.org;
Thu, 22 Oct 2026 05:35:53 +0000
Received: by mail-dy1-x1335.google.com with SMTP id
5a478bee46e88-3514b90bb89so4027116eec.1
for <hostap@lists.infradead.org>;
Wed, 21 Oct 2026 22:35:50 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=20251104; t=1792647349; x=1793252149;
darn=lists.infradead.org;
h=content-transfer-encoding:mime-version:references:in-reply-to
:message-id:date:subject:cc:to:from:from:to:cc:subject:date
:message-id:reply-to:content-type;
bh=dB/HJDtwvEVbzrMABKPUg7ZXLLMFFEp5iXothxI65Ek=;
b=HsXWcsWqdk+QcwVpTRICkm97OkATwXgEMYwETzGe21JIqOVmoRm2muRP3xDm4PfpAZ
B98rxFCwzPod2LTKpwOTg9fIDYrAsC1c2NePcc0oefWPJEUNr8TjdcSubju3AvT//MPm
zOMFypfkgrs0nfXADBUHIkEL5aF6fb/gHk+WrY7XSAMcmB8dNS7zUZeHTWae2orqqXwN
phvQI+RXl0kCQ1dKQuH5EgCdaqaUf5i/lrPfMPJRzIolwEjasgsPNSeKNqCpmoEhTEbR
uyfKaakppQFMsZtGhZU9+gml41Us2ysO4PlCszQ/YDh1os2zh0qZ9IPL1rUQKey2LDXb
OqMg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20260707; t=1792647349; x=1793252149;
h=content-transfer-encoding:mime-version:references:in-reply-to
: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=dB/HJDtwvEVbzrMABKPUg7ZXLLMFFEp5iXothxI65Ek=;
b=zvfzbA6oXnijp44v7JwTqKV2bxGIHe2kTM0mHb4PXFJjLl28cPKqsVYxbgIztdKxpP
ww4vh0dFqa92UM42dRUkDHF2u/qElgTurBv1I2n4DEWPPcogvn1Z/oyxCLw6OoEu1N7x
/9tEitTwzpW+fmSYpO1OZDFiEERoYzze/WmrXATKhEyQvdb0ySl1VnhzOdCRS7aIl0tg
bei770+q90aOFdFe85cFsfj/xFBhmcZ9XNSz7g/V6wyRIoRlDtUds8lMrqnCqKyrMZEG
0CMI+ROj5xaVelQ7vdPRGyFamBgJJDTDH2JQ84c20Kb61/HMowYOLYfPnroXqeP44I8A
yZ0w==
X-Gm-Message-State: AFq9FYJwiqu8GMAlxcbOuBAIiRHyLAfLSCgwZyWcTnmhv/zGoEsuN3ak
/0exMynQn/c4fAWFZ4dG/QXNzrCTR+9IXjbRcjpNtyzuUuurxZeVT3wpp/89Bg2auTc=
X-Gm-Gg: AYBFou2g5iupdQ9xTrBwqv1ExOpV8EOhn1YMR4eO1LISXXmQL6fK4ZlCFkc8xUhmVHd
/VDjtR6KBQxJPsy8VaeFy2W1J5DTyv+5E79W9SO3rdxzB+jJ+VfGTaJx81HqoS37coSZPTPtJNm
xLO+xuEz3JbxnMBDbCqUGaDxeRNH/b/pMY6T5qNtdZx8zQ7H03ZjgrgEbNKTxfifDUJlkM0KSn1
kEStBggWN1Fk5kN+aGpnl8XsNdQjBnc3wPtijTldnk8wIXZXgQuWXbM97IAzOETdv7Axclm5XoG
T33qvfzdBitk5PG5AlLHY4EhB0256lnhdisrmRtY5PCB20hUGrFT6CNhXZcga7RK7p1pqXghetJ
l/Z1GqnQIFgsrKsl9RyxH2CtQpXN8oodun3e6cz/BbA91TCe2NAeiCcxA9d41LqbLm5XwZG7hC2
wtcY5LF8oKz1NxnR2aFFDD6KhRNlstBzj5+bfWP3BEb2xmi38tsTIp6GhfEAkc3d3mC0+pN4OC3
PuEEH1IiFjggK/LtLHyvkp+f3A05qF3qHIhchIxUFuWdccLqXUqoeKFc97wG2prmhDXDQZurXaa
X-Received: by 2002:a05:7022:7f14:b0:151:6e80:ba7e with SMTP id
a92af1059eb24-1909fc7c7e7mr4859648c88.4.1792647349125;
Wed, 21 Oct 2026 22:35:49 -0700 (PDT)
Received: from ZephyrLabServer.internal ([165.162.64.148])
by smtp.gmail.com with ESMTPSA id
a92af1059eb24-19140a1e79dsm9439345c88.20.2026.10.21.22.35.48
(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
Wed, 21 Oct 2026 22:35:48 -0700 (PDT)
From: John Macias <dencity7@gmail.com>
To: hostap@lists.infradead.org
Cc: j@w1.fi
Subject: [PATCH v2] AP MLD: Replace own stale link STA on a retried
association
Date: Wed, 21 Oct 2026 22:35:22 -0700
Message-ID: <20261022053522.1899270-1-dencity7@gmail.com>
X-Mailer: git-send-email 2.47.3
In-Reply-To: <20261022052712.1892164-1-dencity7@gmail.com>
References: <20261022052712.1892164-1-dencity7@gmail.com>
MIME-Version: 1.0
X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3
X-CRM114-CacheID: sfid-20261022_063552_056296_BFB32A75
X-CRM114-Status: GOOD ( 17.25 )
X-Spam-Score: 3.6 (+++)
X-Spam-Report: Spam detection software,
running on the system "desiato.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 a non-AP MLD retries its (Re)Association Request, for
example because the earlier Association Response accepting a partner link
was never delivered, ieee80211_ml_process_link() finds the link STA [...]
Content analysis details: (3.6 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:1335 listed in]
[list.dnswl.org]
3.6 RCVD_IN_SBL_CSS RBL: Received via a relay in Spamhaus SBL-CSS
[165.162.64.148 listed in zen.spamhaus.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 Message has at least one valid DKIM or DK
signature
-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
0.2 FREEMAIL_ENVFROM_END_DIGIT Envelope-from freemail username ends in
digit
[dencity7(at)gmail.com]
0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail
provider
[dencity7(at)gmail.com]
-0.0 DMARC_PASS DMARC pass policy
X-Mailman-Approved-At: Fri, 23 Oct 2026 02:23:05 -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 |
[v2] AP MLD: Replace own stale link STA on a retried association
|
expand
|
diff --git a/src/ap/ieee802_11.c b/src/ap/ieee802_11.c index ecaf977..e80b7ea 100644 --- a/src/ap/ieee802_11.c +++ b/src/ap/ieee802_11.c @@ -7780,6 +7780,23 @@ int ieee80211_ml_process_link(struct hostapd_data *hapd, } sta = ap_get_sta(hapd, origin_sta->addr); + if (sta && ap_sta_is_mld(hapd, sta) && + hostapd_sta_is_link_sta(hapd, sta) && + sta->mld_assoc_link_id == origin_sta->mld_assoc_link_id && + sta->wpa_sm && sta->wpa_sm == origin_sta->wpa_sm) { + /* + * A retried association from the same non-AP MLD finds the + * link station that the previous attempt created on this link + * (for example when the earlier Association Response was not + * delivered). It shares the association link's state machine, + * so drop only this link station and set it up again instead + * of rejecting the link. + */ + wpa_printf(MSG_INFO, + "MLD: link: Replacing link station from a previous association attempt"); + ap_free_sta(hapd, sta); + sta = NULL; + } if (sta || TEST_FAIL()) { wpa_printf(MSG_INFO, "MLD: link: Station already exists"); status = WLAN_STATUS_UNSPECIFIED_FAILURE;
When a non-AP MLD retries its (Re)Association Request, for example because the earlier Association Response accepting a partner link was never delivered, ieee80211_ml_process_link() finds the link STA that the previous attempt created on the partner link. It then rejects that link with "MLD: link: Station already exists" and the non-AP MLD ends up associated on fewer links than it requested. If the existing entry is this MLD's own link STA (same association link and the same wpa_sm as the origin STA), free it and set up the link again. ap_free_sta() on such a link STA only removes the driver link STA and releases the link auth reference; it does not deinit the shared state machine. Any other existing STA is still rejected. Seen on a GL.iNet GL-BE3600 (ath12k, 2.4 GHz + 5 GHz AP MLD) where the first two-link Association Response was not acknowledged: without this change the retry was accepted on one link only; with it, hostapd accepts both links again on the retry. (In that setup the retried two-link response was not acknowledged either; that part is a driver/firmware issue and is reported separately.) Assisted-by: LLM Signed-off-by: John Macias <dencity7@gmail.com> --- v2: add missing Signed-off-by; no code changes. src/ap/ieee802_11.c | 17 +++++++++++++++++ 1 file changed, 17 insertions(+)