From 4f57dd5ed2dc68d9fb78d9123cdaf271e374074f Mon Sep 17 00:00:00 2001 From: Shreeyash Date: Thu, 10 Apr 2025 12:36:59 +0530 Subject: [PATCH] fix(nimble): Fix incorrect OTA address assignment --- nimble/host/src/ble_hs_conn.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/nimble/host/src/ble_hs_conn.c b/nimble/host/src/ble_hs_conn.c index ff4183483..eb749c41a 100644 --- a/nimble/host/src/ble_hs_conn.c +++ b/nimble/host/src/ble_hs_conn.c @@ -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: