> -----Original Message----- > From: Bitterblue Smith <rtl8821cerfe2@xxxxxxxxx> > Sent: Tuesday, October 25, 2022 4:53 AM > To: linux-wireless@xxxxxxxxxxxxxxx > Cc: Jes Sorensen <Jes.Sorensen@xxxxxxxxx> > Subject: [PATCH v2 1/5] wifi: rtl8xxxu: Add central frequency offset tracking > > According to Realtek programmers, "to adjust oscillator to align > central frequency of connected AP. Then, it can yield better > performance." From commit fb8517f4fade ("rtw88: 8822c: add CFO > tracking"). > > The RTL8192CU and a version of RTL8723AU apparently don't have the > ability to adjust the oscillator, so this doesn't apply to them. > > This also doesn't apply to the wifi + bluetooth combo chips (RTL8723AU > and RTL8723BU) because the CFO tracking should only be done when > bluetooth is disabled, and determining that looked complicated. > > That leaves only the RTL8192EU and RTL8188FU chips. I tested this with > the latter. > > Signed-off-by: Bitterblue Smith <rtl8821cerfe2@xxxxxxxxx> Reviewed-by: Ping-Ke Shih <pkshih@xxxxxxxxxxx> > --- > v2: > - Suggestions from Ping-Ke Shih: > - Use FIELD_PREP(). > - Let packet_count wrap around. > - Use clamp(). > --- > .../net/wireless/realtek/rtl8xxxu/rtl8xxxu.h | 21 ++- > .../realtek/rtl8xxxu/rtl8xxxu_8188f.c | 39 ++++- > .../realtek/rtl8xxxu/rtl8xxxu_8192e.c | 4 +- > .../realtek/rtl8xxxu/rtl8xxxu_8723a.c | 38 ++++- > .../realtek/rtl8xxxu/rtl8xxxu_8723b.c | 4 +- > .../wireless/realtek/rtl8xxxu/rtl8xxxu_core.c | 137 ++++++++++++++++-- > .../wireless/realtek/rtl8xxxu/rtl8xxxu_regs.h | 1 + > 7 files changed, 212 insertions(+), 32 deletions(-) > [...]