Re: [PATCH RFT rtw-next 1/2] wifi: rtw88: use the rate, bandwidth and GI of injected frames

From: Luka Gejak

Date: Wed Nov 25 2026 - 16:50:42 EST


Hi Ahmet,

Thanks for picking this up. One comment below.

On November 24, 2026 11:32:30 AM GMT+03:00, Ahmet Zeren
<niko3x@xxxxxxxxx> wrote:

[ ... ]
> + if (rate->flags & IEEE80211_TX_RC_80_MHZ_WIDTH)
> + pkt_info->bw = RTW_CHANNEL_WIDTH_80;
> + else if (rate->flags & IEEE80211_TX_RC_40_MHZ_WIDTH)
> + pkt_info->bw = RTW_CHANNEL_WIDTH_40;
> + else
> + pkt_info->bw = RTW_CHANNEL_WIDTH_20;

Do we also need DATA_SC when the requested width is narrower than the
channel? The RTL8822B vendor driver sets it alongside DATA_BW for HT and
VHT data. Here we leave it at zero and program the primary subchannels
through REG_DATA_SC. I am unsure which one the MAC uses with USE_RATE set.

Could we check that a 40 MHz frame on an 80 MHz channel goes out on the
half containing the primary channel, with the primary channel in each
half in turn?

Best regards,
Luka Gejak