Lines Matching refs:sec_level
103 uint16_t sec_level, uint16_t psm,
464 uint8_t service_id, uint16_t sec_level, uint16_t psm, in BTM_SetSecurityLevel() argument
467 sec_level, psm, mx_proto_id, mx_chan_id)); in BTM_SetSecurityLevel()
492 uint16_t sec_level, uint16_t psm, in btm_sec_set_security_level() argument
502 BTM_TRACE_API("%s : sec: 0x%x", __func__, sec_level); in btm_sec_set_security_level()
571 sec_level &= in btm_sec_set_security_level()
578 if (sec_level & BTM_SEC_OUT_AUTHENTICATE) sec_level |= BTM_SEC_OUT_MITM; in btm_sec_set_security_level()
582 if (sec_level & BTM_SEC_OUT_ENCRYPT) sec_level |= BTM_SEC_OUT_AUTHENTICATE; in btm_sec_set_security_level()
605 sec_level &= ~(BTM_SEC_OUT_AUTHORIZE | BTM_SEC_OUT_ENCRYPT | in btm_sec_set_security_level()
611 if (sec_level & BTM_SEC_IN_AUTHENTICATE) sec_level |= BTM_SEC_IN_MITM; in btm_sec_set_security_level()
615 if (sec_level & BTM_SEC_IN_ENCRYPT) sec_level |= BTM_SEC_IN_AUTHENTICATE; in btm_sec_set_security_level()
618 p_srec->security_flags |= (uint16_t)(sec_level | BTM_SEC_IN_USE); in btm_sec_set_security_level()