UINT8 i,j;
UINT8 *p = NULL;
tBTA_DM_PEER_DEVICE *p_dev;
+ tBTA_DM_PM_REQ pm_req = BTA_DM_PM_NEW_REQ;
#if (BTM_SSR_INCLUDED == TRUE)
int index = BTA_DM_PM_SSR0;
/* stop timer */
bta_dm_pm_stop_timer(peer_addr);
+ if (bta_dm_conn_srvcs.count > 0) {
+ pm_req = BTA_DM_PM_RESTART;
+ APPL_TRACE_DEBUG("%s bta_dm_pm_stop_timer for current service, restart other "
+ "service timers: count = %d", __func__, bta_dm_conn_srvcs.count);
+ }
if(p_dev)
{
}
#endif
- bta_dm_pm_set_mode(peer_addr, BTA_DM_PM_NO_ACTION, BTA_DM_PM_NEW_REQ);
+ bta_dm_pm_set_mode(peer_addr, BTA_DM_PM_NO_ACTION, pm_req);
/* perform the HID link workaround if needed
** 1. If SCO up/down event is received OR