Skip to content

Commit c27db10

Browse files
committed
Merge branch 'bugfix/fix_bci_462' into 'master'
fix(bt/bluedroid): Update address type for BLE link when the connection is completed Closes BLERP-1131 See merge request espressif/esp-idf!34195
2 parents 911ddf7 + d53572a commit c27db10

File tree

1 file changed

+2
-0
lines changed
  • components/bt/host/bluedroid/stack/l2cap

1 file changed

+2
-0
lines changed

components/bt/host/bluedroid/stack/l2cap/l2c_ble.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -376,6 +376,7 @@ void l2cble_scanner_conn_comp (UINT16 handle, BD_ADDR bda, tBLE_ADDR_TYPE type,
376376
p_lcb->waiting_update_conn_latency = p_lcb->current_used_conn_latency = conn_latency;
377377
p_lcb->conn_update_mask = L2C_BLE_NOT_DEFAULT_PARAM;
378378
p_lcb->updating_param_flag = false;
379+
p_lcb->ble_addr_type = type;
379380

380381
/* If there are any preferred connection parameters, set them now */
381382
if ( (p_dev_rec->conn_params.min_conn_int >= BTM_BLE_CONN_INT_MIN ) &&
@@ -476,6 +477,7 @@ void l2cble_advertiser_conn_comp (UINT16 handle, BD_ADDR bda, tBLE_ADDR_TYPE typ
476477
p_lcb->waiting_update_conn_latency = p_lcb->current_used_conn_latency = conn_latency;
477478
p_lcb->conn_update_mask = L2C_BLE_NOT_DEFAULT_PARAM;
478479
p_lcb->updating_param_flag = false;
480+
p_lcb->ble_addr_type = type;
479481

480482
/* Tell BTM Acl management about the link */
481483
p_dev_rec = btm_find_or_alloc_dev (bda);

0 commit comments

Comments
 (0)