From: Ching-Te Ku _update_wl_mlo_info() derives path_rf_band, link_mode, dbcc_en and other per-RF-path fields from the current MLO link_status, but never wrote mlo_info->rf_combination in any of the three link_status cases. The field stayed at its zero-initialized value, which aliases BTC_MLO_RF_2_PLUS_0. _set_bind_info() and _set_coex_binding() both branch on rf_combination to decide how to bind WL RF-paths to BT devices for 1+1, 2+2, 2+0 and 0+2 MLO combinations. With the field always zero, those branches silently treated every MLO combination as 2+0, producing an incorrect WL/BT binding whenever the real combination was 1+1, 2+2 or 0+2. Set rf_combination to the matching BTC_MLO_RF_* value in each of the 2+0, 0+2 and 1+1/2+2 branches so the binding logic sees the actual RF combination. Signed-off-by: Ching-Te Ku Signed-off-by: Ping-Ke Shih --- drivers/net/wireless/realtek/rtw89/coex.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/drivers/net/wireless/realtek/rtw89/coex.c b/drivers/net/wireless/realtek/rtw89/coex.c index 9107a6c8c6fc..e81581e6da5a 100644 --- a/drivers/net/wireless/realtek/rtw89/coex.c +++ b/drivers/net/wireless/realtek/rtw89/coex.c @@ -7806,6 +7806,7 @@ static void _update_wl_mlo_info(struct rtw89_dev *rtwdev, u8 hw_band) rf_band = wl->rf_band_map[RTW89_PHY_0]; mlo_info->path_rf_band[BTC_RF_S0] = rf_band; mlo_info->path_rf_band[BTC_RF_S1] = rf_band; + mlo_info->rf_combination = BTC_MLO_RF_2_PLUS_0; break; case MLO_0_PLUS_2_1RF: /* 0+2 */ case MLO_0_PLUS_2_2RF: @@ -7818,6 +7819,7 @@ static void _update_wl_mlo_info(struct rtw89_dev *rtwdev, u8 hw_band) rf_band = wl->rf_band_map[RTW89_PHY_1]; mlo_info->path_rf_band[BTC_RF_S0] = rf_band; mlo_info->path_rf_band[BTC_RF_S1] = rf_band; + mlo_info->rf_combination = BTC_MLO_RF_0_PLUS_2; break; case MLO_1_PLUS_1_1RF: /* 1+1 */ case MLO_1_PLUS_1_2RF: /* 1+1 */ @@ -7853,6 +7855,11 @@ static void _update_wl_mlo_info(struct rtw89_dev *rtwdev, u8 hw_band) } wl_rinfo->dbcc_en = 1; /* two HW-band both active */ + + if (mlo_info->link_status == MLO_2_PLUS_2_2RF) + mlo_info->rf_combination = BTC_MLO_RF_2_PLUS_2; + else + mlo_info->rf_combination = BTC_MLO_RF_1_PLUS_1; break; } -- 2.25.1