Skip to content

Commit

Permalink
rtwn: allow firmware rate control to be enabled for rtl8192cu
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Adrian Chadd authored and Adrian Chadd committed Jan 14, 2025
1 parent ce7fca1 commit 8896f36
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions sys/dev/rtwn/rtl8192c/usb/r92cu_init.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 8896f36

Please sign in to comment.