git: 300c843b075c - main - rtwn: bring the r92c rate control setup selection in line with tx descriptors

From: Adrian Chadd <adrian_at_FreeBSD.org>
Date: Thu, 19 Dec 2024 16:08:39 UTC
The branch main has been updated by adrian:

URL: https://cgit.FreeBSD.org/src/commit/?id=300c843b075c4f8467cc433d6f92e6fefc7ebbb4

commit 300c843b075c4f8467cc433d6f92e6fefc7ebbb4
Author:     Adrian Chadd <adrian@FreeBSD.org>
AuthorDate: 2024-12-14 19:01:37 +0000
Commit:     Adrian Chadd <adrian@FreeBSD.org>
CommitDate: 2024-12-19 16:08:24 +0000

    rtwn: bring the r92c rate control setup selection in line with tx descriptors
    
    The rate control message was doing 11g+11n without 11b rates, but
    the TX descriptor setup supports also falling back on 11b rates
    when doing multi-rate retry / per-descriptor rate control.
    
    So, line them up.  They're not exactly the same as the TX path
    supports pure-N and pure-G modes which the rate control configuration
    does not, but there'll need to be a lot more work on supporting
    those operating modes anyway (around things like self-generated
    frame rate control/masks, beacon config, RTS/CTS selection, etc.)
    
    Locally tested:
    
    * RTL8192CU, STA mode
    
    Differential Revision:  https://reviews.freebsd.org/D48081
    Reviewed by:    bz
---
 sys/dev/rtwn/rtl8192c/r92c_fw.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys/dev/rtwn/rtl8192c/r92c_fw.c b/sys/dev/rtwn/rtl8192c/r92c_fw.c
index 939cd942f5e2..384cd50e901a 100644
--- a/sys/dev/rtwn/rtl8192c/r92c_fw.c
+++ b/sys/dev/rtwn/rtl8192c/r92c_fw.c
@@ -172,7 +172,7 @@ r92c_send_ra_cmd(struct rtwn_softc *sc, int macid, uint32_t rates,
 
 	/* Set rates mask for unicast frames. */
 	if (RTWN_RATE_IS_HT(maxrate))
-		mode = R92C_RAID_11GN;
+		mode = R92C_RAID_11BGN;
 	else if (RTWN_RATE_IS_OFDM(maxrate))
 		mode = R92C_RAID_11BG;
 	else