You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by ja...@apache.org on 2025/04/22 15:44:33 UTC
(mynewt-nimble) branch master updated (71eaa1cc5 -> 4c113a93f)
This is an automated email from the ASF dual-hosted git repository.
janc pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-nimble.git
from 71eaa1cc5 porting: Update ports syscfg
new 192203094 nimble/phy: Fix resolving list entry removal in nRF5X
new 4c113a93f nimble/phy: Fix resolving list entry removal in nRF51
The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
nimble/drivers/nrf51/src/ble_hw.c | 2 +-
nimble/drivers/nrf5x/src/ble_hw.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
(mynewt-nimble) 01/02: nimble/phy: Fix resolving list entry removal in nRF5X
Posted by ja...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
janc pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-nimble.git
commit 1922030943d8b21daab92a604b9911a41e3d30ed
Author: Szymon Janc <sz...@codecoup.pl>
AuthorDate: Tue Apr 22 16:27:36 2025 +0200
nimble/phy: Fix resolving list entry removal in nRF5X
g_nrf_irk_list is array of uint32_t while IRKs are 4 words long so
this needs to be accounted for.
This was causing IRK corruption if entry removed was not the first
entry in memory.
---
nimble/drivers/nrf5x/src/ble_hw.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/nimble/drivers/nrf5x/src/ble_hw.c b/nimble/drivers/nrf5x/src/ble_hw.c
index 9a46fa6c8..f8cd59f09 100644
--- a/nimble/drivers/nrf5x/src/ble_hw.c
+++ b/nimble/drivers/nrf5x/src/ble_hw.c
@@ -482,7 +482,7 @@ ble_hw_resolv_list_rmv(int index)
if (index < g_nrf_num_irks) {
--g_nrf_num_irks;
- irk_entry = &g_nrf_irk_list[index];
+ irk_entry = &g_nrf_irk_list[4 * index];
if (g_nrf_num_irks > index) {
memmove(irk_entry, irk_entry + 4, 16 * (g_nrf_num_irks - index));
}
(mynewt-nimble) 02/02: nimble/phy: Fix resolving list entry removal in nRF51
Posted by ja...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
janc pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-nimble.git
commit 4c113a93f887c7dfd7bb38df00937dee3b62a666
Author: Szymon Janc <sz...@codecoup.pl>
AuthorDate: Tue Apr 22 16:31:10 2025 +0200
nimble/phy: Fix resolving list entry removal in nRF51
g_nrf_irk_list is array of uint32_t while IRKs are 4 words long so
this needs to be accounted for.
This was causing IRK corruption if entry removed was not the first
entry in memory.
---
nimble/drivers/nrf51/src/ble_hw.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/nimble/drivers/nrf51/src/ble_hw.c b/nimble/drivers/nrf51/src/ble_hw.c
index fb6e844b0..fc07506ef 100644
--- a/nimble/drivers/nrf51/src/ble_hw.c
+++ b/nimble/drivers/nrf51/src/ble_hw.c
@@ -452,7 +452,7 @@ ble_hw_resolv_list_rmv(int index)
if (index < g_nrf_num_irks) {
--g_nrf_num_irks;
- irk_entry = &g_nrf_irk_list[index];
+ irk_entry = &g_nrf_irk_list[4 * index];
if (g_nrf_num_irks > index) {
memmove(irk_entry, irk_entry + 4, 16 * (g_nrf_num_irks - index));
}