mirror of
https://github.com/espressif/esp-nimble.git
synced 2026-08-18 07:50:02 +00:00
nimble/ll: Fix removing IRK from resolv list
We need to move proper number of bytes for complete resolv entry.
This commit is contained in:
@@ -348,7 +348,8 @@ ble_ll_resolv_list_rmv(uint8_t *cmdbuf)
|
||||
|
||||
memmove(&g_ble_ll_resolv_list[position - 1],
|
||||
&g_ble_ll_resolv_list[position],
|
||||
g_ble_ll_resolv_data.rl_cnt - position);
|
||||
(g_ble_ll_resolv_data.rl_cnt - position) *
|
||||
sizeof(g_ble_ll_resolv_list[0]));
|
||||
--g_ble_ll_resolv_data.rl_cnt;
|
||||
|
||||
/* Remove from HW list */
|
||||
|
||||
Reference in New Issue
Block a user