Lines Matching refs:sec_flag
177 uint8_t sec_flag = 0; in gatt_enc_cmpl_cback() local
178 BTM_GetSecurityFlagsByTransport(*bd_addr, &sec_flag, transport); in gatt_enc_cmpl_cback()
180 if (sec_flag & BTM_SEC_FLAG_LKEY_AUTHED) { in gatt_enc_cmpl_cback()
273 uint8_t sec_flag; in gatt_determine_sec_act() local
284 BTM_GetSecurityFlagsByTransport(p_tcb->peer_bda, &sec_flag, in gatt_determine_sec_act()
293 if (sec_flag & (BTM_SEC_FLAG_ENCRYPTED | BTM_SEC_FLAG_LKEY_KNOWN)) { in gatt_determine_sec_act()
294 if (sec_flag & BTM_SEC_FLAG_ENCRYPTED) is_link_encrypted = true; in gatt_determine_sec_act()
298 if (sec_flag & BTM_SEC_FLAG_LKEY_AUTHED) is_key_mitm = true; in gatt_determine_sec_act()
357 uint8_t sec_flag = 0; in gatt_get_link_encrypt_status() local
359 BTM_GetSecurityFlagsByTransport(tcb.peer_bda, &sec_flag, tcb.transport); in gatt_get_link_encrypt_status()
361 if ((sec_flag & BTM_SEC_FLAG_ENCRYPTED) && in gatt_get_link_encrypt_status()
362 (sec_flag & BTM_SEC_FLAG_LKEY_KNOWN)) { in gatt_get_link_encrypt_status()
364 if (sec_flag & BTM_SEC_FLAG_LKEY_AUTHED) in gatt_get_link_encrypt_status()