aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdrian Chadd <adrian@FreeBSD.org>2024-12-19 03:39:07 +0000
committerAdrian Chadd <adrian@FreeBSD.org>2025-01-14 04:34:35 +0000
commit8896f36587f46864fe5281c39de1f7f8aa5a0e33 (patch)
tree279b908981a2e9514d91087f71623e55fcbedd74
parentce7fca19287cb218794da6fcbe320946485cd67a (diff)
rtwn: allow firmware rate control to be enabled for rtl8192cu
Although there's no RTS/CTS rate control available yet, the support is enough to enable firmware rate control for experimenting. This won't be enabled by default - users will need to set a tunable before loading the driver (eg kenv dev.rtwn.0.ratectl=2) but it is enough for experimentation, feedback and continued work. Locally tested: * RTL8192CU, STA mode Differential Revision: https://reviews.freebsd.org/D48143 Reviewed by: bz, emaste
-rw-r--r--sys/dev/rtwn/rtl8192c/usb/r92cu_init.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/sys/dev/rtwn/rtl8192c/usb/r92cu_init.c b/sys/dev/rtwn/rtl8192c/usb/r92cu_init.c
index 10d812dd7a80..91b1b78edb01 100644
--- a/sys/dev/rtwn/rtl8192c/usb/r92cu_init.c
+++ b/sys/dev/rtwn/rtl8192c/usb/r92cu_init.c
@@ -373,11 +373,7 @@ r92cu_post_init(struct rtwn_softc *sc)
if (sc->sc_flags & RTWN_FW_LOADED) {
struct r92c_softc *rs = sc->sc_priv;
- if (sc->sc_ratectl_sysctl == RTWN_RATECTL_FW) {
- /* XXX firmware RA does not work yet */
- sc->sc_ratectl = RTWN_RATECTL_NET80211;
- } else
- sc->sc_ratectl = sc->sc_ratectl_sysctl;
+ sc->sc_ratectl = sc->sc_ratectl_sysctl;
/* Start C2H event handling. */
callout_reset(&rs->rs_c2h_report, rs->rs_c2h_timeout,