Re: [PATCH rtw-next 1/7] wifi: rtw89: coex: Fix Bluetooth link weight not updated on profile change

Ping-Ke Shih <[email protected]> Sun, 2 Aug 2026 10:07:38 +0800
Newsgroups org.kernel.vger.linux-wireless
Message-ID <[email protected]>
Ping-Ke Shih <[email protected]> wrote:

> From: Ching-Te Ku <[email protected]>
> 
> _update_bt_link_cnt() was missing the bt->link_weight[].
> Without it, link_weight stays at the initial value of 5
> (set on BT re-enable) regardless of the active BT profile.
> 
> _set_bind_info() uses link_weight to compute b2g_score/b5g_score, which
> determines tdd_bind.rf_band. With a stale weight of 5 (below the active
> profile threshold), tdd_bind.rf_band may not reflect the actual RF band,
> causing mode_v0 in _run_coex() to remain 0 (BTC_WLINK_NOLINK), which
> incorrectly triggers _action_wl_nc() instead of the BT-profile action.
> 
> Add the link_weight calculation to _update_bt_link_cnt() using the same
> weighting table as Formal (BIS/A2DP-sink: 70, A2DP: 40-60, PAN/active: 30,
> no-profile: 5, else: 9) and call _update_bt_link_cnt() from
> _update_bt_info() after parsing the profile exist flags, replacing the
> open-coded link_cnt increment that omitted le-audio profiles.
> 
> Signed-off-by: Ching-Te Ku <[email protected]>
> Signed-off-by: Ping-Ke Shih <[email protected]>

7 patch(es) applied to rtw-next branch of rtw.git, thanks.

e62f0baca06e wifi: rtw89: coex: Fix Bluetooth link weight not updated on profile change
cf7f33eb0461 wifi: rtw89: coex: Fix BT-info parsing for 5/6 GHz band & dual Bluetooth
8847c1b12bdd wifi: rtw89: coex: Clear BT link weight when BT is disabled
4d9f08115092 wifi: rtw89: coex: Change Wi-Fi link_mode_v0 translating timing
dd7e70e76bf6 wifi: rtw89: coex: Port _update_bt_ctrl_lps() for BT profile-based LPS control
97b81c10fe77 wifi: rtw89: coex: Update Wi-Fi/Bluetooth coexistence version to 9.24.1
86c3125c75d7 wifi: rtw89: 8922d: enable Makefile and Kconfig for RTL8922DE

---
https://github.com/pkshih/rtw.git