Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

rtw88: fix LDPC field for RA info

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

authored by

Tsang-Shian Lin and committed by
Kalle Valo
ae44fa99 84d47961

+1 -1
+1 -1
drivers/net/wireless/realtek/rtw88/fw.c
··· 456 456 SET_RA_INFO_INIT_RA_LVL(h2c_pkt, si->init_ra_lv); 457 457 SET_RA_INFO_SGI_EN(h2c_pkt, si->sgi_enable); 458 458 SET_RA_INFO_BW_MODE(h2c_pkt, si->bw_mode); 459 - SET_RA_INFO_LDPC(h2c_pkt, si->ldpc_en); 459 + SET_RA_INFO_LDPC(h2c_pkt, !!si->ldpc_en); 460 460 SET_RA_INFO_NO_UPDATE(h2c_pkt, no_update); 461 461 SET_RA_INFO_VHT_EN(h2c_pkt, si->vht_enable); 462 462 SET_RA_INFO_DIS_PT(h2c_pkt, disable_pt);