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
This commit is contained in:
Adrian Chadd 2024-12-14 11:01:37 -08:00
parent eb6314510c
commit 300c843b07

View file

@ -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