aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdrian Chadd <adrian@FreeBSD.org>2025-08-27 17:04:39 +0000
committerAdrian Chadd <adrian@FreeBSD.org>2025-09-20 00:44:19 +0000
commitd9ae618c0816d24bc8127e479db5787c97a23140 (patch)
treed20211686411b989755446a6432f700220bfa650
parent785edcc2af5ae32c24f5caf5b9552f62bdae33ee (diff)
[rtwn] don't send NULL data frames if we're compiled with firmware enabled
the firmware should be sending these. Differential Revision: https://reviews.freebsd.org/D52298 Reviewed by: bz Locally tested: * rtl8821/rtl8812au (STA)
-rw-r--r--sys/dev/rtwn/if_rtwn.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/dev/rtwn/if_rtwn.c b/sys/dev/rtwn/if_rtwn.c
index 25287f222270..c5889937fb08 100644
--- a/sys/dev/rtwn/if_rtwn.c
+++ b/sys/dev/rtwn/if_rtwn.c
@@ -271,6 +271,11 @@ rtwn_attach(struct rtwn_softc *sc)
/* Enable seqno offload */
ic->ic_flags_ext |= IEEE80211_FEXT_SEQNO_OFFLOAD;
+#ifdef RTWN_WITHOUT_UCODE
+ /* Don't originate NULL data frames - let firmware do this */
+ ic->ic_flags_ext |= IEEE80211_FEXT_NO_NULLDATA;
+#endif
+
/* Adjust capabilities. */
rtwn_adj_devcaps(sc);