kernel_samsung_a53x/drivers/net/wireless/realtek/rtw88
Bitterblue Smith 3240476a5b wifi: rtw88: 8822c: Fix reported RX band width
commit a71ed5898dfae68262f79277915d1dfe34586bc6 upstream.

"iw dev wlp2s0 station dump" shows incorrect rx bitrate:

tx bitrate:     866.7 MBit/s VHT-MCS 9 80MHz short GI VHT-NSS 2
rx bitrate:     86.7 MBit/s VHT-MCS 9 VHT-NSS 1

This is because the RX band width is calculated incorrectly. Fix the
calculation according to the phydm_rxsc_2_bw() function from the
official drivers.

After:

tx bitrate:     866.7 MBit/s VHT-MCS 9 80MHz short GI VHT-NSS 2
rx bitrate:     390.0 MBit/s VHT-MCS 9 80MHz VHT-NSS 1

It also works correctly with the AP configured for 20 MHz and 40 MHz.

Tested with RTL8822CE.

Cc: stable@vger.kernel.org
Fixes: e3037485c68e ("rtw88: new Realtek 802.11ac driver")
Signed-off-by: Bitterblue Smith <rtl8821cerfe2@gmail.com>
Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Link: https://patch.msgid.link/bca8949b-e2bd-4515-98fd-70d3049a0097@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-11-23 23:21:31 +01:00
..
bf.c
bf.h
coex.c
coex.h
debug.c
debug.h
efuse.c
efuse.h
fw.c
fw.h
hci.h
Kconfig Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mac.c
mac.h
mac80211.c
main.c
main.h
Makefile
pci.c
pci.h
phy.c
phy.h
ps.c
ps.h
reg.h
regd.c
regd.h
rtw8723d.c
rtw8723d.h
rtw8723d_table.c
rtw8723d_table.h
rtw8723de.c
rtw8723de.h
rtw8821c.c
rtw8821c.h
rtw8821c_table.c
rtw8821c_table.h
rtw8821ce.c
rtw8821ce.h
rtw8822b.c
rtw8822b.h
rtw8822b_table.c
rtw8822b_table.h
rtw8822be.c
rtw8822be.h
rtw8822c.c wifi: rtw88: 8822c: Fix reported RX band width 2024-11-23 23:21:31 +01:00
rtw8822c.h
rtw8822c_table.c
rtw8822c_table.h
rtw8822ce.c
rtw8822ce.h
rx.c
rx.h
sec.c
sec.h
tx.c
tx.h
util.c
util.h
wow.c
wow.h