> -----Original Message----- > From: Martin Kaistra <martin.kaistra@xxxxxxxxxxxxx> > Sent: Wednesday, April 19, 2023 6:02 PM > To: linux-wireless@xxxxxxxxxxxxxxx > Cc: Jes Sorensen <Jes.Sorensen@xxxxxxxxx>; Kalle Valo <kvalo@xxxxxxxxxx>; Ping-Ke Shih > <pkshih@xxxxxxxxxxx>; Bitterblue Smith <rtl8821cerfe2@xxxxxxxxx>; Sebastian Andrzej Siewior > <bigeasy@xxxxxxxxxxxxx> > Subject: [PATCH v2 16/18] wifi: rtl8xxxu: Remove usage of tx_info->control.rates[0].flags > > As this driver uses HAS_RATE_CONTROL, rate_flags will not be provided by > mac80211. > > Stop using tx_info->control.rates[0].flags and ieee80211_get_rts_cts_rate() > and use rts_threshold and bss_conf.use_cts_prot instead to determine > when to use RTS and CTS. > > Send RTS with 24M rate like the vendor drivers. Also set this RTS rate > for ampdu_enable = true, because we also enable RTS for these frames. > > Signed-off-by: Martin Kaistra <martin.kaistra@xxxxxxxxxxxxx> Reviewed-by: Ping-Ke Shih <pkshih@xxxxxxxxxxx> [...]