components/bt/host/bluedroid/stack/btm/btm_sec.c
/*******************************************************************************
**
** Function         btm_sec_dev_reset
**
** Description      This function should be called after device reset
**
** Returns          void
**
*******************************************************************************/
Function         btm_sec_dev_reset
Description      This function should be called after device reset

Returns          void
Function btm_sec_dev_reset Description This function should be called after device reset Returns void
void btm_sec_dev_reset (void)
{
    if (controller_get_interface()->supports_simple_pairing()) {
        btm_cb.devcb.loc_io_caps = BTM_LOCAL_IO_CAPS;
        BTM_SetSecurityLevel(FALSE, "RFC_MUX\n", BTM_SEC_SERVICE_RFC_MUX,
                             BTM_SEC_NONE, BT_PSM_RFCOMM, BTM_SEC_PROTO_RFCOMM, 0);
    } else {
        btm_cb.security_mode = BTM_SEC_MODE_SERVICE;
    }
    BTM_TRACE_DEBUG ("btm_sec_dev_reset sec mode: %d\n", btm_cb.security_mode);
}
void btm_sec_dev_reset ( void ) { if ( controller_get_interface ( ) -> supports_simple_pairing ( ) ) { btm_cb . devcb . loc_io_caps = BTM_LOCAL_IO_CAPS ; BTM_SetSecurityLevel ( FALSE , " \n " , BTM_SEC_SERVICE_RFC_MUX , BTM_SEC_NONE , BT_PSM_RFCOMM , BTM_SEC_PROTO_RFCOMM , 0 ) ; } else { btm_cb . security_mode = BTM_SEC_MODE_SERVICE ; } BTM_TRACE_DEBUG ( " \n " , btm_cb . security_mode ) ; }
Function         btm_sec_dev_reset
Description      This function should be called after device reset
Function btm_sec_dev_reset Description This function should be called after device reset
/* set the default IO capabilities */ /* add mx service to use no security */