wifi: rtw89: coex: Force to update TDMA parameter when radio state change
Force firmware to update TDMA parameter when enter/exit power saving. The TDMA instant feature will make firmware force update TDMA parameter immediately when the TDMA parameter H2C to firmware. Without this feature, it will have a low fail rate trigger Bluetooth audio sound glitch when Wi-Fi is under power saving. Or Wi-Fi fail to turn in to power save state. Signed-off-by: Ching-Te Ku <ku920601@realtek.com> Signed-off-by: Ping-Ke Shih <pkshih@realtek.com> Signed-off-by: Kalle Valo <kvalo@kernel.org> Link: https://lore.kernel.org/r/20230117114109.4298-4-pkshih@realtek.com
This commit is contained in:
parent
aae256c0f2
commit
3f857b23dd
@ -3818,6 +3818,7 @@ static void _action_common(struct rtw89_dev *rtwdev)
|
||||
wl->scbd_change = false;
|
||||
btc->cx.cnt_wl[BTC_WCNT_SCBDUPDATE]++;
|
||||
}
|
||||
btc->dm.tdma_instant_excute = 0;
|
||||
}
|
||||
|
||||
static void _action_by_bt(struct rtw89_dev *rtwdev)
|
||||
@ -5347,6 +5348,11 @@ void rtw89_btc_ntfy_radio_state(struct rtw89_dev *rtwdev, enum btc_rfctrl rf_sta
|
||||
}
|
||||
|
||||
btc->dm.cnt_dm[BTC_DCNT_BTCNT_FREEZE] = 0;
|
||||
if (wl->status.map.lps_pre == BTC_LPS_OFF &&
|
||||
wl->status.map.lps_pre != wl->status.map.lps)
|
||||
btc->dm.tdma_instant_excute = 1;
|
||||
else
|
||||
btc->dm.tdma_instant_excute = 0;
|
||||
|
||||
_run_coex(rtwdev, BTC_RSN_NTFY_RADIO_STATE);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user