Searched refs:sec_flag (Results 1 – 6 of 6) sorted by relevance
/external/bluetooth/bluedroid/stack/gatt/ |
D | gatt_auth.c | 162 UINT8 sec_flag; in gatt_enc_cmpl_cback() local 180 BTM_GetSecurityFlagsByTransport(bd_addr, &sec_flag, transport); in gatt_enc_cmpl_cback() 182 if (sec_flag & BTM_SEC_FLAG_LKEY_AUTHED) in gatt_enc_cmpl_cback() 316 UINT8 sec_flag; in gatt_determine_sec_act() local 328 BTM_GetSecurityFlagsByTransport(p_tcb->peer_bda, &sec_flag, p_clcb->p_tcb->transport); in gatt_determine_sec_act() 337 if (sec_flag & (BTM_SEC_FLAG_ENCRYPTED| BTM_SEC_FLAG_LKEY_KNOWN)) in gatt_determine_sec_act() 339 if (sec_flag & BTM_SEC_FLAG_ENCRYPTED) in gatt_determine_sec_act() 344 if (sec_flag & BTM_SEC_FLAG_LKEY_AUTHED) in gatt_determine_sec_act() 420 UINT8 sec_flag=0; in gatt_get_link_encrypt_status() local 422 BTM_GetSecurityFlagsByTransport(p_tcb->peer_bda, &sec_flag, p_tcb->transport); in gatt_get_link_encrypt_status() [all …]
|
D | gatt_db.c | 119 tGATT_SEC_FLAG sec_flag, in gatts_check_attr_readability() argument 138 if ((perm & GATT_READ_AUTH_REQUIRED ) && !(sec_flag & GATT_SEC_FLAG_LKEY_UNAUTHED) && in gatts_check_attr_readability() 139 !(sec_flag & BTM_SEC_FLAG_ENCRYPTED)) in gatts_check_attr_readability() 145 if ((perm & GATT_READ_MITM_REQUIRED ) && !(sec_flag & GATT_SEC_FLAG_LKEY_AUTHED)) in gatts_check_attr_readability() 151 if ((perm & GATT_READ_ENCRYPTED_REQUIRED ) && !(sec_flag & GATT_SEC_FLAG_ENCRYPTED)) in gatts_check_attr_readability() 157 …if ( (perm & GATT_READ_ENCRYPTED_REQUIRED) && (sec_flag & GATT_SEC_FLAG_ENCRYPTED) && (key_size < … in gatts_check_attr_readability() 211 tGATT_SEC_FLAG sec_flag, in read_attr_value() argument 223 sec_flag, in read_attr_value() 227 …status = gatts_check_attr_readability((tGATT_ATTR16 *)p_attr, offset, read_long, sec_flag, key_siz… in read_attr_value() 334 tGATT_SEC_FLAG sec_flag, in gatts_db_read_attr_value_by_type() argument [all …]
|
D | gatt_sr.c | 402 UINT8 sec_flag, key_size; in gatt_process_read_multi_req() local 410 &sec_flag, in gatt_process_read_multi_req() 438 sec_flag, in gatt_process_read_multi_req() 487 sec_flag, in gatt_process_read_multi_req() 985 UINT8 sec_flag, key_size; in gatts_process_read_by_type_req() local 1034 &sec_flag, in gatts_process_read_by_type_req() 1045 sec_flag, in gatts_process_read_by_type_req() 1097 UINT8 sec_flag, key_size, *p = p_data; in gatts_process_write_req() local 1129 &sec_flag, in gatts_process_write_req() 1138 sec_flag, in gatts_process_write_req() [all …]
|
D | gatt_int.h | 701 …UINT16 e_handle, tBT_UUID type, UINT16 *p_len, tGATT_SEC_FLAG sec_flag, UINT8 key_size,UINT32 tran… 703 … UINT8 *p_value, UINT16 *p_len, UINT16 mtu,tGATT_SEC_FLAG sec_flag,UINT8 key_size,UINT32 trans_id); 705 … UINT16 len, tGATT_SEC_FLAG sec_flag, UINT8 key_size); 706 …_check(tGATT_SVC_DB *p_db, BOOLEAN is_long, UINT16 handle, tGATT_SEC_FLAG sec_flag,UINT8 key_size);
|
D | gatt_utils.c | 1385 UINT8 sec_flag = 0; in gatt_sr_get_sec_info() local 1387 BTM_GetSecurityFlagsByTransport(rem_bda, &sec_flag, transport); in gatt_sr_get_sec_info() 1389 sec_flag &= (GATT_SEC_FLAG_LKEY_UNAUTHED | GATT_SEC_FLAG_LKEY_AUTHED | GATT_SEC_FLAG_ENCRYPTED); in gatt_sr_get_sec_info() 1392 *p_sec_flag = sec_flag; in gatt_sr_get_sec_info()
|
/external/bluetooth/bluedroid/bta/hh/ |
D | bta_hh_le.c | 1383 UINT8 sec_flag=0; in bta_hh_start_security() local 1400 BTM_GetSecurityFlagsByTransport(p_cb->addr, &sec_flag, BT_TRANSPORT_LE); in bta_hh_start_security() 1403 if (sec_flag & BTM_SEC_FLAG_ENCRYPTED) in bta_hh_start_security() 1408 else if (sec_flag & BTM_SEC_FLAG_LKEY_KNOWN) in bta_hh_start_security() 1410 sec_flag = BTM_BLE_SEC_ENCRYPT; in bta_hh_start_security() 1412 BTM_SetEncryption(p_cb->addr, BTA_TRANSPORT_LE, bta_hh_le_encrypt_cback, &sec_flag); in bta_hh_start_security() 1417 sec_flag = BTM_BLE_SEC_ENCRYPT_NO_MITM; in bta_hh_start_security() 1420 BTM_SetEncryption(p_cb->addr, BTA_TRANSPORT_LE, bta_hh_le_encrypt_cback, &sec_flag); in bta_hh_start_security() 2713 UINT8 sec_flag=0; in bta_hh_le_add_dev_bg_conn() local 2720 BTM_GetSecurityFlagsByTransport(p_cb->addr, &sec_flag, BT_TRANSPORT_LE); in bta_hh_le_add_dev_bg_conn() [all …]
|