Searched refs:sec_flags (Results 1 – 7 of 7) sorted by relevance
/external/bluetooth/bluedroid/stack/btm/ |
D | btm_dev.c | 74 if (!(btm_cb.sec_dev_rec[i].sec_flags & BTM_SEC_IN_USE)) in BTM_SecAddDevice() 80 p_dev_rec->sec_flags = BTM_SEC_IN_USE; in BTM_SecAddDevice() 106 p_dev_rec->sec_flags |= BTM_SEC_NAME_KNOWN; in BTM_SecAddDevice() 142 p_dev_rec->sec_flags |= BTM_SEC_LINK_KEY_KNOWN; in BTM_SecAddDevice() 231 if (!(btm_cb.sec_dev_rec[i].sec_flags & BTM_SEC_IN_USE)) in btm_sec_alloc_dev() 243 p_dev_rec->sec_flags = BTM_SEC_IN_USE; in btm_sec_alloc_dev() 264 p_dev_rec->sec_flags |= BTM_SEC_NAME_KNOWN; in btm_sec_alloc_dev() 297 p_dev_rec->sec_flags = 0; in btm_sec_free_dev() 378 if ((p_dev_rec->sec_flags & BTM_SEC_IN_USE) in btm_find_dev_by_handle() 404 if ((p_dev_rec->sec_flags & BTM_SEC_IN_USE) in btm_find_dev() [all …]
|
D | btm_sec.c | 272 *p_sec_flags = p_dev_rec->sec_flags; in BTM_GetSecurityFlags() 914 p_dev_rec->sec_flags |= BTM_SEC_LINK_KEY_AUTHED; in BTM_PINCodeReply() 950 p_dev_rec->sec_flags &= ~BTM_SEC_LINK_KEY_AUTHED; in BTM_PINCodeReply() 999 p_dev_rec->sec_flags |= BTM_SEC_AUTHORIZED; in BTM_DeviceAuthorized() 1071 BTM_TRACE_DEBUG1 ("before update sec_flags=0x%x", p_dev_rec->sec_flags); in BTM_SecBond() 1075 && (p_dev_rec->sec_flags & BTM_SEC_AUTHENTICATED) ) in BTM_SecBond() 1101 p_dev_rec->sec_flags &= ~(BTM_SEC_LINK_KEY_KNOWN | BTM_SEC_AUTHENTICATED | BTM_SEC_ENCRYPTED in BTM_SecBond() 1120 BTM_TRACE_DEBUG1 ("after update sec_flags=0x%x", p_dev_rec->sec_flags); in BTM_SecBond() 1147 p_dev_rec->sec_flags &= ~BTM_SEC_NAME_KNOWN; in BTM_SecBond() 1343 && (p_dev_rec->sec_flags & BTM_SEC_LINK_KEY_KNOWN)) in BTM_SecGetDeviceLinkKey() [all …]
|
D | btm_ble.c | 82 if (!(btm_cb.sec_dev_rec[i].sec_flags & BTM_SEC_IN_USE)) in BTM_SecAddBleDevice() 89 p_dev_rec->sec_flags = BTM_SEC_IN_USE; in BTM_SecAddBleDevice() 116 p_dev_rec->sec_flags |= BTM_SEC_NAME_KNOWN; in BTM_SecAddBleDevice() 123 dev_type, addr_type, p_dev_rec->sec_flags); in BTM_SecAddBleDevice() 414 p_dev_rec->sec_flags |= BTM_SEC_LINK_KEY_AUTHED; in BTM_BlePasskeyReply() 446 p_dev_rec->sec_flags |= BTM_SEC_LINK_KEY_AUTHED; in BTM_BleOobDataReply() 920 p_rec->sec_flags |= BTM_SEC_LINK_KEY_KNOWN; in btm_sec_save_le_key() 922 p_rec->sec_flags |= BTM_SEC_LINK_KEY_AUTHED; in btm_sec_save_le_key() 924 p_rec->sec_flags &= ~BTM_SEC_LINK_KEY_AUTHED; in btm_sec_save_le_key() 927 p_rec->sec_flags, in btm_sec_save_le_key() [all …]
|
D | btm_acl.c | 410 BTM_TRACE_DEBUG1("before update p_dev_rec->sec_flags=0x%x", p_dev_rec->sec_flags); in btm_acl_removed() 414 p_dev_rec->sec_flags &= ~(BTM_SEC_ENCRYPTED | BTM_SEC_ROLE_SWITCHED); in btm_acl_removed() 415 if ( (p_dev_rec->sec_flags & BTM_SEC_LINK_KEY_KNOWN) == 0) in btm_acl_removed() 418 p_dev_rec->sec_flags &= ~(BTM_SEC_AUTHENTICATED | BTM_SEC_LINK_KEY_AUTHED); in btm_acl_removed() 428 p_dev_rec->sec_flags &= ~(BTM_SEC_AUTHORIZED | BTM_SEC_AUTHENTICATED in btm_acl_removed() 431 BTM_TRACE_DEBUG1("after update p_dev_rec->sec_flags=0x%x", p_dev_rec->sec_flags); in btm_acl_removed() 688 && ((p_dev_rec->sec_flags & BTM_SEC_ENCRYPTED) != 0) in BTM_SwitchRole() 794 && ((p_dev_rec->sec_flags & BTM_SEC_ENCRYPTED) != 0) && !BTM_EPR_AVAILABLE(p)) in BTM_ChangeLinkKey() 3201 if (p_dev_rec != NULL && ((p_dev_rec->sec_flags & BTM_SEC_ENCRYPTED) != 0) in btm_cont_rswitch_or_chglinkkey()
|
D | btm_ble_addr.c | 290 …BTM_TRACE_ERROR2("sec_flags = %02x device_type = %d", p_dev_rec->sec_flags, p_dev_rec->device_type… in btm_ble_match_random_bda()
|
D | btm_int.h | 542 UINT8 sec_flags; /* Current device security state */ member
|
/external/bluetooth/bluedroid/bta/jv/ |
D | bta_jv_api.c | 424 UINT8 sec_flags; in BTA_JvIsAuthenticated() local 426 if(BTM_GetSecurityFlags(bd_addr, &sec_flags)) in BTA_JvIsAuthenticated() 428 if(sec_flags&BTM_SEC_FLAG_AUTHENTICATED) in BTA_JvIsAuthenticated() 448 UINT8 sec_flags; in BTA_JvIsTrusted() local 450 if(BTM_GetSecurityFlags(bd_addr, &sec_flags)) in BTA_JvIsTrusted() 452 if ((sec_flags&BTM_SEC_FLAG_AUTHENTICATED) || in BTA_JvIsTrusted() 453 (sec_flags&BTM_SEC_FLAG_LKEY_KNOWN)) in BTA_JvIsTrusted() 474 UINT8 sec_flags; in BTA_JvIsAuthorized() local 476 if(BTM_GetSecurityFlags(bd_addr, &sec_flags)) in BTA_JvIsAuthorized() 478 if(sec_flags&BTM_SEC_FLAG_AUTHORIZED) in BTA_JvIsAuthorized() [all …]
|