component/bt: Fix the bug that sometimes received a ble connection & the adv will stop, can not send adv again.

This commit is contained in:
Yulong
2017-05-16 03:10:16 -04:00
parent 1e0710f1b2
commit e797cd03f0
5 changed files with 35 additions and 5 deletions
@@ -356,9 +356,9 @@ BOOLEAN l2c_link_hci_disc_comp (UINT16 handle, UINT8 reason)
/* See if we have a link control block for the connection */
p_lcb = l2cu_find_lcb_by_handle (handle);
/* If we don't have one, maybe an SCO link. Send to MM */
if (!p_lcb) {
BTM_Recovery_Pre_State();
status = FALSE;
} else {
/* There can be a case when we rejected PIN code authentication */
@@ -613,7 +613,7 @@ void l2c_link_timeout (tL2C_LCB *p_lcb)
} else {
/* Check in case we were flow controlled */
l2c_link_check_send_pkts (p_lcb, NULL, NULL);
}
}
#endif ///SMP_INCLUDED == TRUE
}
}