When app use link count becomes zero, we start an link idle
timeout of 1 sec, post which we send disconnection. Meanwhile
if we get connect request from app to hold the link before
the 1 sec timer expiration, we should cancel the link idle
timer, other wise the link will get disconnected irrespective
of app use link count being greater than zero. Add change to
cancel the link idle timer while updating app's link hold count
CRs-Fixed:
2018001
Change-Id: I41682be1476d4c1c4ee58061407b94cfd2a2657a
if (ret)
{
if (!opportunistic)
- gatt_update_app_use_link_flag(p_reg->gatt_if, p_tcb, TRUE, FALSE);
+ gatt_update_app_use_link_flag(p_reg->gatt_if, p_tcb, TRUE, TRUE);
else
GATT_TRACE_DEBUG("%s: connection is opportunistic, not updating app usage",
__func__);