🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: muc.lists.freebsd.bugs
Article #506

[Bug 300862] LinuxKPI/rtw89 skips RX reordering on RTL8852BT, causing CCMP replay drops and low HE80 downlink throughput

#506
From: bugzilla-noreply
Date: Wed, 18 Nov 2026 04:59
68 lines
4505 bytes
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=300862

            Bug ID: 300862
           Summary: LinuxKPI/rtw89 skips RX reordering on RTL8852BT,
                    causing CCMP replay drops and low HE80 downlink
                    throughput
           Product: Base System
           Version: 15.2-STABLE
          Hardware: amd64
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: kern
          Assignee: bugs@FreeBSD.org
          Reporter: denis@lemire.name

Created attachment 277412
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=277412&action=edit
Tested, opt-in LinuxKPI patch that marks eligible RTL8852BT station frames with
M_AMPDU so net80211 reorders them before CCMP replay checks. Applies cleanly to
stable/15 and CURRENT.

This surfaced during LLM-assisted experiments to improve Wi-Fi performance on
an HP laptop with an RTL8852BT (PCI 10ec:b520). The test kernel was a locally
patched 15.2-STABLE build with earlier 802.11ax station changes. Those patches
were present in every run. Only the RX reorder correction was toggled in the
same-kernel comparison.

LinuxKPI established a receive Block Ack session but did not set `M_AMPDU` on
eligible unicast QoS frames. As a result, net80211 skipped
`ieee80211_ampdu_reorder()`, and CCMP rejected valid out-of-order frames. In
two 12-second, 150 Mbps UDP downlinks from a wired peer through a U6 Mesh AP
(HE80, WPA2-CCMP), DTrace saw every datagram at `rtw89_core_rx`. The `wlan0`
Ethernet capture was missing 487 and 532 datagrams respectively, exactly
matching the increases in CCMP replay rejections.

Across fresh associations, single-stream TCP downloads reached 102–105 Mbps
with the correction disabled and 365–385 Mbps with it enabled. With the final
opt-in correction, all 187,643 test datagrams reached the Ethernet capture
exactly once, with zero CCMP replay rejections.

The same missing handoff is present in both `stable/15` and `main` (CURRENT).
The attached diff contains the tested correction with its context adjusted for
upstream, and applies cleanly to `stable/15` at `f65ba7a1a23e` and CURRENT at
`108240e0baf5`. Hardware verification was on the patched 15.2-STABLE kernel
with `compat.linuxkpi.80211.rtw8852bt_rx_reorder="1"`.

-- 
You are receiving this mail because:
You are the assignee for the bug.

--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-admin@muc.de
Technical Details
Message-ID: <bug-300862-227@https.bugs.freebsd.org/bugzilla/>
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!news.mb-net.net!open-news-network.org!2.eu.feeder.erje.net!feeder.erje.net!news2.arglkargh.de!news.karotte.org!news.muc.de!.POSTED.news.muc.de!not-for-mail

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!news.mb-net.net!open-news-network.org!2.eu.feeder.erje.net!feeder.erje.net!news2.arglkargh.de!news.karotte.org!news.muc.de!.POSTED.news.muc.de!not-for-mail
From: bugzilla-noreply@freebsd.org
Newsgroups: muc.lists.freebsd.bugs
Subject: [Bug 300862] LinuxKPI/rtw89 skips RX reordering on RTL8852BT,
 causing CCMP replay drops and low HE80 downlink throughput
Date: Wed, 18 Nov 2026 04:59:01 +0000
Organization: Newsgate at muc.de e.V.
Approved: news-admin@muc.de
Distribution: world
Message-ID: <bug-300862-227@https.bugs.freebsd.org/bugzilla/>
MIME-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Injection-Info: news.muc.de; posting-host="news.muc.de:193.149.48.2";
	logging-data="53780"; mail-complaints-to="news-admin@muc.de"
X-Original-To: bugs@mlmmj.nyi.freebsd.org
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim;
	t=1794977941;
	h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
	 to:to:cc:mime-version:mime-version:content-type:content-type:
	 content-transfer-encoding:content-transfer-encoding;
	bh=NYqTy1YIrm7ZdXVF6OTTkX3FPjf2xn13RTea5jWSk6w=;
	b=O+1mq1MxuOJqvKCEd8NgLG9OgUeJ6vITZHKk7Dk7F0ij8sJV7eedlBJn21MxjX6iFvgyIt
	KD45RxXNdwjeP9CU3K2jVwNbG/w7WokPdOXj+H2+aFonU0tM8IyGuqidLHl2NK8/O64qQe
	MnQLLQ/eYzFtshUyTJNonxMhREQSHweSyBt/juuINIZPz18p95B1a+CbwWafwvxU7qOCba
	DPXzMCdXBAaJRr+/an1mg4xnMKG5GPkFB9SPaMDCK1adfJiepsU7eH9WuspY/a3LwRRPm0
	ZGqdoYj7oh1VoADVnC/xJEbheVCDGw6nVQdFAr401/YdqcXixt0jK+1dKg9u5A==
X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f
Auto-Submitted: auto-generated
Precedence: list
X-Newsgate-Id: f02c70b8849f+
X-No-Archive: Yes