| Message ID | 20261016235535.3489433-2-me@andrei-z.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=Pq7VaM5w;
dkim=fail reason="signature verification failed" (2048-bit key;
secure) header.d=andrei-z.com header.i=@andrei-z.com header.a=rsa-sha256
header.s=sig1 header.b=Sv/KsgSC;
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 4j622D0KT9z1xt8
for <incoming@patchwork.ozlabs.org>; Sat, 17 Oct 2026 10:58:12 +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:To:From:Reply-To:Cc:Content-ID:Content-Description:
Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:
List-Owner; bh=0LZ6HvwmD2Mf3FK5HFG3OddRWe0gdopOrT1lrS+dq4w=; b=Pq7VaM5w/UrcGV
uYT2OrbLJgUCAQNm7azbtJx0rb4wXyjKOzvVPUtwSSIMj+AVPD2zbgq2/epEzd7FzmaIDYcaFbbMX
/Gx91TyuJwWV8D08ZIn4/qlm1m8WI21NXjQ6b+DSx7z3fS/+dWDxfFeJZYNJ248m+6gXOlH0HjQPf
FlxYvVcBoIH0XVg4yEUBA3yZ4tIeFfG9VOwBqb5VFyZeoi3Mr3Rt5+r0WFlcVOf8Z5UAwwZ6j4qUo
K+hO7nWXNYmqZkK1cr1NE3HgqL3uW9hNppMtg4kR1/3ZTUHEbfO2XvOGupAmRefTL3nhAER+Yzzir
Rskjbar6zV01o/yGonvA==;
Received: from localhost ([::1] helo=bombadil.infradead.org)
by bombadil.infradead.org with esmtp (Exim 4.99.1 #2 (Red Hat Linux))
id 1xHrnB-00000004DvD-40MB;
Fri, 16 Oct 2026 23:56:53 +0000
Received: from vtj.irix.systems ([82.76.27.144])
by bombadil.infradead.org with esmtps (Exim 4.99.1 #2 (Red Hat Linux))
id 1xHrn8-00000004Dtz-4AgR
for hostap@lists.infradead.org;
Fri, 16 Oct 2026 23:56:52 +0000
Received: from MAILGW-DELL.dell.vtj.corp.irix.systems (localhost [127.0.0.1])
by vtj.irix.systems (Proxmox) with ESMTP id 0E66E2B44F
for <hostap@lists.infradead.org>; Sat, 17 Oct 2026 02:56:48 +0300 (EEST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=andrei-z.com; h=
cc:content-transfer-encoding:content-type:content-type:date:from
:from:in-reply-to:message-id:mime-version:references:reply-to
:subject:subject:to:to; s=sig1; bh=mvIIkBuYEqJ0UZma3M5rClt6i2C+h
QXZVqrOoCBkb30=; b=Sv/KsgSC1LufWjo6PhlVwgOZzqOEsX7M05pFgG8DnaXgC
RUQSIaE/PYw/UeXqgGJe01D1R1TrYSp7sbHLNbLkzJV2AYbT2bHxo3VzfSlDKcIM
PKTZbFRVzMFjiqgiXK9aToD5Unr3lCjlJaBGLEzvzGbUH4Ur5OazlKQMcBimM5X3
3H+H+mIWEaojO5pa6sfCi5TsctQOQCWEYT0M6x1TIBFi0UoyxXBn+zw0EU1zIuFC
o61sC+uO7K65VIYz7S2k6byCcS1mcyqwVE5zdHJPTlyUjYGfnFcBDq6IGviGuza8
bd4zYGmZ4PV8BmasAJ9vbEyjx9eUuImtHvY5BdEAA==
Received: from VTJ-MX.corp.irix.systems (unknown [10.57.36.6])
(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
(No client certificate requested)
by vtj.irix.systems (Proxmox) with ESMTPS id D2D4A2B128
for <hostap@lists.infradead.org>; Sat, 17 Oct 2026 02:56:45 +0300 (EEST)
Received: from workspace.corp.irix.systems (2a02:2f04:1:9c23::c) by
VTJ-MX.corp.irix.systems (2a02:2f04:1:9c24::6) with Microsoft SMTP Server
(version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id
15.2.2562.49; Sat, 17 Oct 2026 02:56:45 +0300
From: Andrei-Alexandru Bleortu <me@andrei-z.com>
To: <hostap@lists.infradead.org>
Subject: [PATCH 1/3] nl80211: Do not take link ID 0 of a non-MLD BSS as an MLD
link
Date: Sat, 17 Oct 2026 02:55:33 +0300
Message-ID: <20261016235535.3489433-2-me@andrei-z.com>
X-Mailer: git-send-email 2.47.3
In-Reply-To: <20261016235535.3489433-1-me@andrei-z.com>
References: <20261016235535.3489433-1-me@andrei-z.com>
MIME-Version: 1.0
X-Originating-IP: [2a02:2f04:1:9c23::c]
X-ClientProxiedBy: VTJ-MX.corp.irix.systems (2a02:2f04:1:9c24::6) To
VTJ-MX.corp.irix.systems (2a02:2f04:1:9c24::6)
X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3
X-CRM114-CacheID: sfid-20261016_165651_219350_0C945E74
X-CRM114-Status: GOOD ( 12.49 )
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: mac80211 includes NL80211_ATTR_MLO_LINK_ID with link ID 0
in the unexpected frame events of an interface that is not an AP MLD. Since
commit 44d144d60 ("nl80211: Handle WDS events on appropriate link [...]
Content analysis details: (-2.1 points, 5.0 required)
pts rule name description
---- ----------------------
--------------------------------------------------
-0.0 SPF_PASS SPF: sender matches SPF record
-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
-1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1%
[score: 0.0000]
-0.0 DMARC_PASS DMARC pass policy
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 |
AP: Do not lose a STA whose (Re)Association Response ACK was lost
|
expand
|
diff --git a/src/drivers/driver_nl80211_event.c b/src/drivers/driver_nl80211_event.c index 86f7372b5..9899e0cd4 100644 --- a/src/drivers/driver_nl80211_event.c +++ b/src/drivers/driver_nl80211_event.c @@ -2878,6 +2878,10 @@ static void nl80211_spurious_frame(struct i802_bss *bss, struct nlattr **tb, nla_get_u8(tb[NL80211_ATTR_MLO_LINK_ID]) : -1; link_id = event.rx_from_unknown.link_id; + /* mac80211 reports link ID 0 for a BSS that is not an AP MLD */ + if (!bss->valid_links) + link_id = event.rx_from_unknown.link_id = -1; + if (link_id >= 0) { if (!nl80211_link_valid(bss->valid_links, link_id)) { wpa_printf(MSG_DEBUG,
mac80211 includes NL80211_ATTR_MLO_LINK_ID with link ID 0 in the unexpected frame events of an interface that is not an AP MLD. Since commit 44d144d60 ("nl80211: Handle WDS events on appropriate link in AP MLD") such an event is dropped as coming from an unknown link, so hostapd no longer saw Class 3 frames from unassociated STAs or 4-address frames from WDS STAs: ap_wds_sta, ap_wds_sta_open, ap_wds_sta_wep and ap_wds_sta_eap failed. Use the link ID only when the BSS has links. Fixes: 44d144d60364 ("nl80211: Handle WDS events on appropriate link in AP MLD") Assisted-by: LLM Signed-off-by: Andrei-Alexandru Bleortu <me@andrei-z.com> --- src/drivers/driver_nl80211_event.c | 4 ++++ 1 file changed, 4 insertions(+)