> -----Original Message----- > From: Bitterblue Smith <rtl8821cerfe2@xxxxxxxxx> > Sent: Sunday, January 8, 2023 11:07 PM > To: linux-wireless@xxxxxxxxxxxxxxx > Cc: Jes Sorensen <Jes.Sorensen@xxxxxxxxx>; Ping-Ke Shih <pkshih@xxxxxxxxxxx> > Subject: [PATCH v2 1/2] wifi: rtl8xxxu: Report the RSSI to the firmware > > Or in the case of RTL8188EU, report the RSSI to the rate control code. > > The rate control code for RTL8188EU is less likely to switch to a lower > rate when the RSSI is high. The firmware-based rate control in the other > chips probably works the same way. > > This affects all the chips, but it was only tested with RTL8188EU, > RTL8188FU, and RTL8192EU. > > Signed-off-by: Bitterblue Smith <rtl8821cerfe2@xxxxxxxxx> Reviewed-by: Ping-Ke Shih <pkshih@xxxxxxxxxxx> > --- > v2: > - Suggestion from Ping-Ke Shih: > - Make h2c_size 4 instead of 3 in rtl8xxxu_gen1_report_rssi(). > Just to make it less confusing. It doesn't change the behaviour. > --- > .../net/wireless/realtek/rtl8xxxu/rtl8xxxu.h | 23 +++++++++++++ > .../realtek/rtl8xxxu/rtl8xxxu_8188e.c | 6 ++++ > .../realtek/rtl8xxxu/rtl8xxxu_8188f.c | 1 + > .../realtek/rtl8xxxu/rtl8xxxu_8192c.c | 1 + > .../realtek/rtl8xxxu/rtl8xxxu_8192e.c | 1 + > .../realtek/rtl8xxxu/rtl8xxxu_8723a.c | 1 + > .../realtek/rtl8xxxu/rtl8xxxu_8723b.c | 1 + > .../wireless/realtek/rtl8xxxu/rtl8xxxu_core.c | 34 +++++++++++++++++++ > 8 files changed, 68 insertions(+) > [...]