From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 10FFA30C37A; Wed, 28 Jan 2026 15:43:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769614983; cv=none; b=fLFvRYiZNTu3nE3TBo6lxkMuc0Rg3aC06kIfyRAMHxG75mZxdDZCaZBe6ZOZW4QYPnHu468SRxJrLZ9UZrV2m7SlL0z/2OtLKzmnSkyZ9rTF5huPXKjhUWV0bxRf+gEe7WDfkmML68ulPNxJXgOOmqX70+9/6iEGdvn4xPkKBIY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769614983; c=relaxed/simple; bh=J7Oqo6X/uQ2S9zbHDmt+CLwB4c8p195xigBG00He75g=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=HBBv4b7ti2/5URnlTp5xAGSwlvWbLZBASmKXUP8ibqU9lFQ/NHKUSlcncLZUkHi8txJPBwqkZGx+f84umEq1uXhifOSnO/5A/Tc9iV3k9UuaqQqaNIA/0/0X/0BYGSXY6DZ20pVSFXBtMeFlFVe9nFW/HNfMwkxwXpqyaPL6a8E= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=NVr4fg9d; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="NVr4fg9d" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 45C79C4CEF1; Wed, 28 Jan 2026 15:43:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1769614982; bh=J7Oqo6X/uQ2S9zbHDmt+CLwB4c8p195xigBG00He75g=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=NVr4fg9djNDySdFmFAF93gZG22p0o1Gr/UlB2ks9IDAzLlVfGil86VXT8e0wchMi3 xvPWjVGIB9wizzxZXEHMzBQOTdqoMgwUlroIo+9yh/42CiS2P0+4iP8UZcDSSYy3PY U2rkyirn2wUZj1XXN5cXo3HVxi2VKAwy5K4GCMsc= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Lachlan Hodges , Johannes Berg , Sasha Levin Subject: [PATCH 6.12 042/169] wifi: mac80211: dont perform DA check on S1G beacon Date: Wed, 28 Jan 2026 16:22:05 +0100 Message-ID: <20260128145335.534080190@linuxfoundation.org> X-Mailer: git-send-email 2.52.0 In-Reply-To: <20260128145334.006287341@linuxfoundation.org> References: <20260128145334.006287341@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.12-stable review patch. If anyone has any objections, please let me know. ------------------ From: Lachlan Hodges [ Upstream commit 5dc6975566f5d142ec53eb7e97af688c45dd314d ] S1G beacons don't contain the DA field as per IEEE80211-2024 9.3.4.3, so the DA broadcast check reads the SA address of the S1G beacon which will subsequently lead to the beacon being dropped. As a result, passive scanning is not possible. Fix this by only performing the check on non-S1G beacons to allow S1G long beacons to be processed during a passive scan. Fixes: ddf82e752f8a ("wifi: mac80211: Allow beacons to update BSS table regardless of scan") Signed-off-by: Lachlan Hodges Link: https://patch.msgid.link/20260120031122.309942-1-lachlan.hodges@morsemicro.com Signed-off-by: Johannes Berg Signed-off-by: Sasha Levin --- net/mac80211/scan.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/net/mac80211/scan.c b/net/mac80211/scan.c index ce6d5857214eb..8675d2e99c564 100644 --- a/net/mac80211/scan.c +++ b/net/mac80211/scan.c @@ -327,8 +327,13 @@ void ieee80211_scan_rx(struct ieee80211_local *local, struct sk_buff *skb) mgmt->da)) return; } else { - /* Beacons are expected only with broadcast address */ - if (!is_broadcast_ether_addr(mgmt->da)) + /* + * Non-S1G beacons are expected only with broadcast address. + * S1G beacons only carry the SA so no DA check is required + * nor possible. + */ + if (!ieee80211_is_s1g_beacon(mgmt->frame_control) && + !is_broadcast_ether_addr(mgmt->da)) return; } -- 2.51.0