Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 14 Jan 2025 04:34:58 GMT
From:      Adrian Chadd <adrian@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 8896f36587f4 - main - rtwn: allow firmware rate control to be enabled for rtl8192cu
Message-ID:  <202501140434.50E4Ywf8072694@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by adrian:

URL: https://cgit.FreeBSD.org/src/commit/?id=8896f36587f46864fe5281c39de1f7f8aa5a0e33

commit 8896f36587f46864fe5281c39de1f7f8aa5a0e33
Author:     Adrian Chadd <adrian@FreeBSD.org>
AuthorDate: 2024-12-19 03:39:07 +0000
Commit:     Adrian Chadd <adrian@FreeBSD.org>
CommitDate: 2025-01-14 04:34:35 +0000

    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
---
 sys/dev/rtwn/rtl8192c/usb/r92cu_init.c | 6 +-----
 1 file changed, 1 insertion(+), 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,



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202501140434.50E4Ywf8072694>