Lines Matching refs:remote_dist
199 uint8_t remote_dist; member
263 uint8_t remote_dist; member
701 if (!smp->local_dist && !smp->remote_dist) { in smp_check_complete()
719 if (!smp->local_dist && !smp->remote_dist) { in smp_check_complete()
1201 smp->remote_dist = rsp->init_key_dist; in smp_br_pairing_req()
1220 (smp->remote_dist & BT_SMP_DIST_ENC_KEY)) { in smp_br_pairing_req()
1224 smp->remote_dist &= ~BT_SMP_DIST_ENC_KEY; in smp_br_pairing_req()
1229 if (smp->remote_dist & BT_SMP_DIST_ID_KEY) { in smp_br_pairing_req()
1231 } else if (smp->remote_dist & BT_SMP_DIST_SIGN) { in smp_br_pairing_req()
1236 if (!smp->local_dist && !smp->remote_dist) { in smp_br_pairing_req()
1265 smp->remote_dist &= rsp->resp_key_dist; in smp_br_pairing_rsp()
1268 smp->remote_dist &= BR_RECV_KEYS_SC; in smp_br_pairing_rsp()
1272 if (smp->remote_dist & BT_SMP_DIST_ID_KEY) { in smp_br_pairing_rsp()
1274 } else if (smp->remote_dist & BT_SMP_DIST_SIGN) { in smp_br_pairing_rsp()
1288 (smp->remote_dist & BT_SMP_DIST_ENC_KEY)) { in smp_br_pairing_rsp()
1292 smp->remote_dist &= ~BT_SMP_DIST_ENC_KEY; in smp_br_pairing_rsp()
1295 if (smp->remote_dist) { in smp_br_pairing_rsp()
1302 if (!smp->local_dist && !smp->remote_dist) { in smp_br_pairing_rsp()
1375 smp->remote_dist &= ~BT_SMP_DIST_ID_KEY; in smp_br_ident_addr_info()
1377 if (smp->remote_dist & BT_SMP_DIST_SIGN) { in smp_br_ident_addr_info()
1381 if (conn->role == BT_CONN_ROLE_CENTRAL && !smp->remote_dist) { in smp_br_ident_addr_info()
1386 if (!smp->local_dist && !smp->remote_dist) { in smp_br_ident_addr_info()
1418 smp->remote_dist &= ~BT_SMP_DIST_SIGN; in smp_br_signing_info()
1420 if (conn->role == BT_CONN_ROLE_CENTRAL && !smp->remote_dist) { in smp_br_signing_info()
1425 if (!smp->local_dist && !smp->remote_dist) { in smp_br_signing_info()
1670 smp->remote_dist = BR_RECV_KEYS_SC; in bt_smp_br_send_pairing_req()
1862 !smp->local_dist && !smp->remote_dist); in smp_error()
2434 if (smp->remote_dist & BT_SMP_DIST_ENC_KEY) { in legacy_pairing_random()
2437 } else if (smp->remote_dist & BT_SMP_DIST_ID_KEY) { in legacy_pairing_random()
2440 } else if (smp->remote_dist & BT_SMP_DIST_SIGN) { in legacy_pairing_random()
2565 smp->remote_dist &= ~BT_SMP_DIST_ENC_KEY; in smp_central_ident()
2567 if (smp->remote_dist & BT_SMP_DIST_ID_KEY) { in smp_central_ident()
2569 } else if (smp->remote_dist & BT_SMP_DIST_SIGN) { in smp_central_ident()
2574 conn->role == BT_HCI_ROLE_CENTRAL && !smp->remote_dist) { in smp_central_ident()
2582 if (!smp->local_dist && !smp->remote_dist) { in smp_central_ident()
3019 smp->remote_dist = rsp->init_key_dist; in smp_pairing_req()
3185 smp->remote_dist = req->resp_key_dist; in smp_send_pairing_req()
3223 smp->remote_dist &= rsp->resp_key_dist; in smp_pairing_rsp()
3248 smp->remote_dist = 0; in smp_pairing_rsp()
3290 smp->remote_dist &= RECV_KEYS_SC; in smp_pairing_rsp()
3884 __ASSERT_NO_MSG(!(smp->remote_dist & BT_SMP_DIST_ID_KEY)); in smp_id_add_replace()
3939 smp->remote_dist &= ~BT_SMP_DIST_ID_KEY; in smp_ident_addr_info()
4012 if (smp->remote_dist & BT_SMP_DIST_SIGN) { in smp_ident_addr_info()
4017 conn->role == BT_HCI_ROLE_CENTRAL && !smp->remote_dist) { in smp_ident_addr_info()
4025 if (!smp->local_dist && !smp->remote_dist) { in smp_ident_addr_info()
4055 smp->remote_dist &= ~BT_SMP_DIST_SIGN; in smp_signing_info()
4058 conn->role == BT_HCI_ROLE_CENTRAL && !smp->remote_dist) { in smp_signing_info()
4066 if (!smp->local_dist && !smp->remote_dist) { in smp_signing_info()
4465 if (smp->remote_dist & BT_SMP_DIST_ID_KEY) { in smp_dhkey_check()
4468 } else if (smp->remote_dist & BT_SMP_DIST_SIGN) { in smp_dhkey_check()
4774 (smp->remote_dist & BT_SMP_DIST_LINK_KEY)) { in bt_smp_encrypt_change()
4786 smp->remote_dist &= ~BT_SMP_DIST_LINK_KEY; in bt_smp_encrypt_change()
4789 if (smp->remote_dist & BT_SMP_DIST_ENC_KEY) { in bt_smp_encrypt_change()
4791 } else if (smp->remote_dist & BT_SMP_DIST_ID_KEY) { in bt_smp_encrypt_change()
4793 } else if (smp->remote_dist & BT_SMP_DIST_SIGN) { in bt_smp_encrypt_change()
4819 !(smp->remote_dist & BT_SMP_DIST_ID_KEY)) { in bt_smp_encrypt_change()
4832 conn->role == BT_HCI_ROLE_CENTRAL && smp->remote_dist) { in bt_smp_encrypt_change()
4849 if (!smp->local_dist && !smp->remote_dist) { in bt_smp_encrypt_change()