diff mbox series

[1/7] rtw88: fix LDPC field for RA info

Message ID 20200717064937.27966-2-yhchuang@realtek.com (mailing list archive)
State Accepted
Commit ae44fa993e8e6c1a1d22e5ca03d9eadd53b2745b
Delegated to: Kalle Valo
Headers show
Series rtw88: regular update and fixes | expand

Commit Message

Tony Chuang July 17, 2020, 6:49 a.m. UTC
From: Tsang-Shian Lin <thlin@realtek.com>

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>
---
 drivers/net/wireless/realtek/rtw88/fw.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Kalle Valo Aug. 2, 2020, 3:05 p.m. UTC | #1
<yhchuang@realtek.com> wrote:

> From: Tsang-Shian Lin <thlin@realtek.com>
> 
> 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>

7 patches applied to wireless-drivers-next.git, thanks.

ae44fa993e8e rtw88: fix LDPC field for RA info
4dd86b901d13 rtw88: fix short GI capability based on current bandwidth
d8e030c74e83 rtw88: update tx descriptor of mgmt and reserved page packets
3f194bd4ca1c rtw88: coex: only skip coex triggered by BT info
40b788d15832 rtw88: add ieee80211_ops::change_interface
752310ed2b40 rtw88: allows driver to enable/disable beacon
c376c1fc87b7 rtw88: add h2c command in debugfs
diff mbox series

Patch

diff --git a/drivers/net/wireless/realtek/rtw88/fw.c b/drivers/net/wireless/realtek/rtw88/fw.c
index 6478fd7a78f6..13e79482f6d5 100644
--- 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);