projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
84d4796
)
rtw88: fix LDPC field for RA info
author
Tsang-Shian Lin
<thlin@realtek.com>
Fri, 17 Jul 2020 06:49:31 +0000
(14:49 +0800)
committer
Kalle Valo
<kvalo@codeaurora.org>
Sun, 2 Aug 2020 15:05:11 +0000
(18:05 +0300)
Convert the type of LDPC field to boolen because
LDPC field of RA info H2C command to firmware
is only one bit.
Fixes:
e3037485c68e
("rtw88: new Realtek 802.11ac driver")
Signed-off-by: Tsang-Shian Lin <thlin@realtek.com>
Signed-off-by: Yan-Hsuan Chuang <yhchuang@realtek.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link:
https://lore.kernel.org/r/20200717064937.27966-2-yhchuang@realtek.com
drivers/net/wireless/realtek/rtw88/fw.c
patch
|
blob
|
history
diff --git
a/drivers/net/wireless/realtek/rtw88/fw.c
b/drivers/net/wireless/realtek/rtw88/fw.c
index
6478fd7
..
13e7948
100644
(file)
--- a/
drivers/net/wireless/realtek/rtw88/fw.c
+++ b/
drivers/net/wireless/realtek/rtw88/fw.c
@@
-456,7
+456,7
@@
void rtw_fw_send_ra_info(struct rtw_dev *rtwdev, struct rtw_sta_info *si)
SET_RA_INFO_INIT_RA_LVL(h2c_pkt, si->init_ra_lv);
SET_RA_INFO_SGI_EN(h2c_pkt, si->sgi_enable);
SET_RA_INFO_BW_MODE(h2c_pkt, si->bw_mode);
- SET_RA_INFO_LDPC(h2c_pkt, si->ldpc_en);
+ SET_RA_INFO_LDPC(h2c_pkt,
!!
si->ldpc_en);
SET_RA_INFO_NO_UPDATE(h2c_pkt, no_update);
SET_RA_INFO_VHT_EN(h2c_pkt, si->vht_enable);
SET_RA_INFO_DIS_PT(h2c_pkt, disable_pt);