mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-19 07:55:54 +00:00
components/bt: Separation of BT and BLE
This commit is contained in:
@@ -183,6 +183,7 @@ tSMP_STATUS SMP_Pair (BD_ADDR bd_addr)
|
||||
** Returns SMP_STARTED if pairing started, otherwise reason for failure.
|
||||
**
|
||||
*******************************************************************************/
|
||||
#if (CLASSIC_BT_INCLUDED == TRUE)
|
||||
tSMP_STATUS SMP_BR_PairWith (BD_ADDR bd_addr)
|
||||
{
|
||||
tSMP_CB *p_cb = &smp_cb;
|
||||
@@ -212,6 +213,7 @@ tSMP_STATUS SMP_BR_PairWith (BD_ADDR bd_addr)
|
||||
|
||||
return SMP_STARTED;
|
||||
}
|
||||
#endif ///CLASSIC_BT_INCLUDED == TRUE
|
||||
|
||||
/*******************************************************************************
|
||||
**
|
||||
@@ -258,6 +260,7 @@ void SMP_SecurityGrant(BD_ADDR bd_addr, UINT8 res)
|
||||
{
|
||||
SMP_TRACE_EVENT ("SMP_SecurityGrant ");
|
||||
|
||||
#if (CLASSIC_BT_INCLUDED == TRUE)
|
||||
if (smp_cb.smp_over_br) {
|
||||
if (smp_cb.br_state != SMP_BR_STATE_WAIT_APP_RSP ||
|
||||
smp_cb.cb_evt != SMP_SEC_REQUEST_EVT ||
|
||||
@@ -271,6 +274,7 @@ void SMP_SecurityGrant(BD_ADDR bd_addr, UINT8 res)
|
||||
smp_br_state_machine_event(&smp_cb, SMP_BR_API_SEC_GRANT_EVT, &res);
|
||||
return;
|
||||
}
|
||||
#endif ///CLASSIC_BT_INCLUDED == TRUE
|
||||
|
||||
if (smp_cb.state != SMP_STATE_WAIT_APP_RSP ||
|
||||
smp_cb.cb_evt != SMP_SEC_REQUEST_EVT ||
|
||||
|
Reference in New Issue
Block a user