components/bt/host/bluedroid/stack/btm/btm_sec.c
/*******************************************************************************
**
** Function         BTM_SetPairableMode
**
** Description      Enable or disable pairing
**
** Parameters       allow_pairing - (TRUE or FALSE) whether or not the device
**                      allows pairing.
**                  connect_only_paired - (TRUE or FALSE) whether or not to
**                      only allow paired devices to connect.
**
** Returns          void
**
*******************************************************************************/
Function         BTM_SetPairableMode
Description      Enable or disable pairing

Parameters       allow_pairing - (TRUE or FALSE) whether or not the device
allows pairing.
connect_only_paired - (TRUE or FALSE) whether or not to
only allow paired devices to connect.

Returns          void
Function BTM_SetPairableMode Description Enable or disable pairing Parameters allow_pairing - ( TRUE or FALSE ) whether or not the device allows pairing . connect_only_paired - ( TRUE or FALSE ) whether or not to only allow paired devices to connect . Returns void
void BTM_SetPairableMode (BOOLEAN allow_pairing, BOOLEAN connect_only_paired)
{
    BTM_TRACE_API ("BTM_SetPairableMode()  allow_pairing: %u   connect_only_paired: %u\n", allow_pairing, connect_only_paired);
    btm_cb.pairing_disabled    = !allow_pairing;
    btm_cb.connect_only_paired = connect_only_paired;
}
void BTM_SetPairableMode ( BOOLEAN allow_pairing , BOOLEAN connect_only_paired ) { BTM_TRACE_API ( " \n " , allow_pairing , connect_only_paired ) ; btm_cb . pairing_disabled = ! allow_pairing ; btm_cb . connect_only_paired = connect_only_paired ; }
Function         BTM_SetPairableMode
Description      Enable or disable pairing
Function BTM_SetPairableMode Description Enable or disable pairing