Use the PLE_MGN_INI_RDY bit rather than WDE_MGN_INI_RDY to check if PLE cfg ready runs into a timeout. Signed-off-by: Kevin Lo <kevlo@xxxxxxxxx> --- diff --git a/drivers/net/wireless/realtek/rtw89/mac.c b/drivers/net/wireless/realtek/rtw89/mac.c index 512de491a064..4e0cec7c59a2 100644 --- a/drivers/net/wireless/realtek/rtw89/mac.c +++ b/drivers/net/wireless/realtek/rtw89/mac.c @@ -1814,7 +1814,7 @@ static int dle_init(struct rtw89_dev *rtwdev, enum rtw89_qta_mode mode, } ret = read_poll_timeout(rtw89_read32, ini, - (ini & WDE_MGN_INI_RDY) == WDE_MGN_INI_RDY, 1, + (ini & PLE_MGN_INI_RDY) == PLE_MGN_INI_RDY, 1, 2000, false, rtwdev, R_AX_PLE_INI_STATUS); if (ret) { rtw89_err(rtwdev, "[ERR]PLE cfg ready\n");