From: Ching-Te Ku RTL8852C (FW >= 0.27.130) and RTL8922A/D (FW >= 0.35.94/0.35.111) set fcxgpiodbg to 8, but _chk_btc_report only handled version 7, causing it to fall through to goto err. The gpio_dbg v8 struct is layout-compatible with v7, so extend the guard to accept version 8 using the existing v7 parsing path. Signed-off-by: Ching-Te Ku Signed-off-by: Ping-Ke Shih --- drivers/net/wireless/realtek/rtw89/coex.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/realtek/rtw89/coex.c b/drivers/net/wireless/realtek/rtw89/coex.c index 279b75461fe2..62b86dc40e87 100644 --- a/drivers/net/wireless/realtek/rtw89/coex.c +++ b/drivers/net/wireless/realtek/rtw89/coex.c @@ -1908,7 +1908,7 @@ static u32 _chk_btc_report(struct rtw89_dev *rtwdev, break; case BTC_RPT_TYPE_GPIO_DBG: pcinfo = &pfwinfo->rpt_fbtc_gpio_dbg.cinfo; - if (ver->fcxgpiodbg == 7) { + if (ver->fcxgpiodbg == 7 || ver->fcxgpiodbg == 8) { pfinfo = &pfwinfo->rpt_fbtc_gpio_dbg.finfo.v7; pcinfo->req_len = sizeof(pfwinfo->rpt_fbtc_gpio_dbg.finfo.v7); fwsubver->fcxgpiodbg = pfwinfo->rpt_fbtc_gpio_dbg.finfo.v7.fver; -- 2.25.1