]> git.baikalelectronics.ru Git - kernel.git/commit
wifi: rtl8xxxu: gen2: Enable 40 MHz channel width
authorBitterblue Smith <rtl8821cerfe2@gmail.com>
Sun, 18 Sep 2022 12:40:56 +0000 (15:40 +0300)
committerKalle Valo <kvalo@kernel.org>
Thu, 29 Sep 2022 06:18:41 +0000 (09:18 +0300)
commit8be14edf5564319c1dc3b3d2c374691fe33e325a
treeb19c50e0ceab375f22b66915589d995c9b796c61
parent9853cd9fa83dd5899210e312b73bd4d32dd1002b
wifi: rtl8xxxu: gen2: Enable 40 MHz channel width

The module parameter ht40_2g was supposed to enable 40 MHz operation,
but it didn't.

Tell the firmware about the channel width when updating the rate mask.
This makes it work with my gen 2 chip RTL8188FU.

I'm not sure if anything needs to be done for the gen 1 chips, if 40
MHz channel width already works or not. They update the rate mask with
a different structure which doesn't have a field for the channel width.

Also set the channel width correctly for sta_statistics.

Fixes: 8c869c07850a ("rtl8xxxu: Implement basic 8723b specific update_rate_mask() function")
Fixes: 7e23504cc56b ("rtl8xxxu: fill up txrate info for gen1 chips")
Signed-off-by: Bitterblue Smith <rtl8821cerfe2@gmail.com>
Acked-by: Jes Sorensen <jes@trained-monkey.org>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/3a950997-7580-8a6b-97a0-e0a81a135456@gmail.com
drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu.h
drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c