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.
@@ -2569,10 +2569,12 @@ 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()) {
+ /* 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);
}
- }
/*
* If peer in on resolving list, we use RPA generated with Local IRK
