bluetooth: host: smp: Update bt_keys addr when receiving identity addr
In addition to aligning the destination address of all connection objects during the identity resolution phase, we also need to update the corresponding address field in the `struct bt_keys` structure for each of these connection objects. If we don't do this, `bt_keys_get_type` for that connection won't find the `bt_keys` structure in the pool and will allocate a new one. This will result in orphaned `bt_keys` structures in the pool. This completes the change done in https://github.com/zephyrproject-rtos/zephyr/pull/61030/commits/637dabc3c9b018f47dee656d2ca0fe8f2fa21984 Signed-off-by:Pavel Vasilyev <pavel.vasilyev@nordicsemi.no>
Loading
Please sign in to comment