mirror of
https://github.com/espressif/esp-nimble.git
synced 2026-06-05 21:04:49 +00:00
fix(nimble): Fix incorrect OTA address assignment
This commit is contained in:
@@ -480,13 +480,11 @@ ble_hs_conn_addrs(const struct ble_hs_conn *conn,
|
||||
case BLE_ADDR_PUBLIC_ID:
|
||||
addrs->peer_id_addr.type = BLE_ADDR_PUBLIC;
|
||||
addrs->peer_ota_addr = conn->bhc_peer_rpa_addr;
|
||||
addrs->peer_ota_addr.type = conn->bhc_peer_addr.type;
|
||||
break;
|
||||
|
||||
case BLE_ADDR_RANDOM_ID:
|
||||
addrs->peer_id_addr.type = BLE_ADDR_RANDOM;
|
||||
addrs->peer_ota_addr = conn->bhc_peer_rpa_addr;
|
||||
addrs->peer_ota_addr.type = conn->bhc_peer_addr.type;
|
||||
break;
|
||||
|
||||
default:
|
||||
|
||||
Reference in New Issue
Block a user