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 2019/12/20 08:36:52 UTC

[mynewt-nimble] 02/04: nimble/ll: Use RPA regardless of address resolution state

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 9bb8e07b130897b6b68f6e36a8d246cff1bda908
Author: Szymon Janc <sz...@codecoup.pl>
AuthorDate: Wed Dec 18 11:23:29 2019 +0100

    nimble/ll: Use RPA regardless of address resolution state
    
    When initiating and local IRK is present we should use RPA regardless
    of address resolution state (as this controls peer's address resolution
    not local RPA generation).
    
    This was affecting LL/CON/INI/BV-23-C qualification testcase.
---
 nimble/controller/src/ble_ll_conn.c | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/nimble/controller/src/ble_ll_conn.c b/nimble/controller/src/ble_ll_conn.c
index b578ab7..fab8495 100644
--- a/nimble/controller/src/ble_ll_conn.c
+++ b/nimble/controller/src/ble_ll_conn.c
@@ -2569,9 +2569,11 @@ ble_ll_conn_connect_ind_prepare(struct ble_ll_conn_sm *connsm,
                     rl = &g_ble_ll_resolv_list[rpa_index];
                 }
             } else {
-                if (ble_ll_resolv_enabled()) {
-                    rl = ble_ll_resolv_list_find(adva, adva_type);
-                }
+                /* we look for RL entry to generate local RPA regardless if
+                 * resolving is enabled or not (as this is is for local RPA
+                 * not peer RPA)
+                 */
+                 rl = ble_ll_resolv_list_find(adva, adva_type);
             }
 
             /*