Linux wireless drivers development
 help / color / mirror / Atom feed
* [PATCH rtw-next 0/3] wifi: rtw88: keep bogus CCMP PNs from stalling the connection
@ 2026-12-03 20:14 Bob Beckett
  2026-12-03 20:14 ` [PATCH rtw-next 1/3] wifi: rtw88: do not trust a claimed decryption Bob Beckett
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Bob Beckett @ 2026-12-03 20:14 UTC (permalink / raw)
  To: Ping-Ke Shih
  Cc: Luka Gejak, Po-Hao Huang, Bitterblue Smith, matthew.leach, kernel,
	linux-wireless, Bob Beckett

Steam Deck LCD units (RTL8822CE) on some 5 GHz APs lose connectivity
during large downloads. The device occasionally hands up a frame as
hardware-decrypted whose CCMP header carries a bogus PN; mac80211 adopts
it as the replay counter and drops every genuine frame after it as a
replay until the next rekey.

This series keeps such frames away from the replay check. Patch 1 is
Luka's check [1] that only trusts a claimed decryption for frames that
passed the CRC and ICV checks and have a well-formed CCMP header. Patch 2
drops hardware-decrypted frames whose PN jumps implausibly far beyond the
transmitter's sequence, which catches the remaining case: a well-formed
header with garbage in the upper PN octets. Patch 3 adds an opt-in
sw_crypto module parameter for users who would rather have mac80211
verify every MIC than rely on the device's verdict.

Tested on a Steam Deck LCD at VHT80 2SS: frames corrupted like those seen
in the field no longer stall the link, and throughput is unaffected.

See also the original report and RFC discussion [2].

[1] https://lore.kernel.org/r/20261017083313.56113-1-luka.gejak@linux.dev
[2] https://lore.kernel.org/linux-wireless/20261016191100.1781056-1-bob.beckett@collabora.com/

---
Luka Gejak (1):
      wifi: rtw88: do not trust a claimed decryption

Robert Beckett (2):
      wifi: rtw88: drop hardware-decrypted frames with an implausible CCMP PN
      wifi: rtw88: add a module parameter to leave crypto to mac80211

 drivers/net/wireless/realtek/rtw88/mac80211.c |   7 ++
 drivers/net/wireless/realtek/rtw88/main.c     |   5 +
 drivers/net/wireless/realtek/rtw88/main.h     |  31 ++++++
 drivers/net/wireless/realtek/rtw88/pci.c      |   2 +-
 drivers/net/wireless/realtek/rtw88/rx.c       | 153 +++++++++++++++++++++++++-
 drivers/net/wireless/realtek/rtw88/rx.h       |   4 +
 drivers/net/wireless/realtek/rtw88/sdio.c     |   5 +
 drivers/net/wireless/realtek/rtw88/usb.c      |   3 +
 8 files changed, 207 insertions(+), 3 deletions(-)
---
base-commit: f496c65cc2870f2342ff37736dd31d0748588c72
change-id: 20261203-bob-rtw-next-pn-guard-5b3acbede66f

Best regards,
-- 
Robert Beckett <bob.beckett@collabora.com>


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2026-12-04  7:42 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-12-03 20:14 [PATCH rtw-next 0/3] wifi: rtw88: keep bogus CCMP PNs from stalling the connection Bob Beckett
2026-12-03 20:14 ` [PATCH rtw-next 1/3] wifi: rtw88: do not trust a claimed decryption Bob Beckett
2026-12-03 20:14 ` [PATCH rtw-next 2/3] wifi: rtw88: drop hardware-decrypted frames with an implausible CCMP PN Robert Beckett
2026-12-03 21:03   ` Luka Gejak
2026-12-03 20:14 ` [PATCH rtw-next 3/3] wifi: rtw88: add a module parameter to leave crypto to mac80211 Robert Beckett
2026-12-03 21:03   ` Luka Gejak
2026-12-04  7:42   ` Ping-Ke Shih

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox