diff options
author | Chin-Yen Lee <timlee@realtek.com> | 2021-12-17 09:24:21 +0800 |
---|---|---|
committer | Kalle Valo <kvalo@kernel.org> | 2021-12-20 20:49:02 +0200 |
commit | a3fd1f9aa79a7d3885faa486acb02c838533f332 (patch) | |
tree | 913b53cdae3198053020cbbb0246c120f94f7038 /drivers/net/wireless/realtek/rtw88/rtw8822b.c | |
parent | 24f5e38a13b5ae2b6105cda8bb47c19108e62a9a (diff) | |
download | linux-a3fd1f9aa79a7d3885faa486acb02c838533f332.tar.gz linux-a3fd1f9aa79a7d3885faa486acb02c838533f332.tar.bz2 linux-a3fd1f9aa79a7d3885faa486acb02c838533f332.zip |
rtw88: don't check CRC of VHT-SIG-B in 802.11ac signal
Currently all realtek wifi chip is set to check CRC of VHT-SIG-B
in 802.11ac signal, but some AP don't calculate the CRC and packets
from these AP can't be received and lead to disconnection.
We disable the check defaultly to avoid this case.
Signed-off-by: Chin-Yen Lee <timlee@realtek.com>
Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/20211217012421.7859-1-pkshih@realtek.com
Diffstat (limited to 'drivers/net/wireless/realtek/rtw88/rtw8822b.c')
-rw-r--r-- | drivers/net/wireless/realtek/rtw88/rtw8822b.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/wireless/realtek/rtw88/rtw8822b.c b/drivers/net/wireless/realtek/rtw88/rtw8822b.c index c409c8c29ec8..a4cbcc6bdcd1 100644 --- a/drivers/net/wireless/realtek/rtw88/rtw8822b.c +++ b/drivers/net/wireless/realtek/rtw88/rtw8822b.c @@ -262,6 +262,8 @@ static int rtw8822b_mac_init(struct rtw_dev *rtwdev) rtw_write8(rtwdev, REG_TCR + 1, WLAN_TX_FUNC_CFG1); rtw_write32(rtwdev, REG_WMAC_OPTION_FUNCTION + 8, WLAN_MAC_OPT_FUNC2); rtw_write8(rtwdev, REG_WMAC_OPTION_FUNCTION + 4, WLAN_MAC_OPT_NORM_FUNC1); + rtw_write8_set(rtwdev, REG_SND_PTCL_CTRL, + BIT_DIS_CHK_VHTSIGB_CRC); return 0; } |