File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -1742,11 +1742,13 @@ ble_ll_conn_master_init(struct ble_ll_conn_sm *connsm,
17421742 * and we need to adjust here. If device is on resolve list mark type as
17431743 * 'identity' as this means also RPA is allowed for connection.
17441744 */
1745+ #if (MYNEWT_VAL (BLE_LL_CFG_FEAT_LL_PRIVACY ) == 1 )
17451746 if ((connsm -> peer_addr_type < BLE_HCI_CONN_PEER_ADDR_PUBLIC_IDENT ) &&
17461747 ble_ll_resolv_list_find (connsm -> peer_addr ,
17471748 connsm -> peer_addr_type )) {
17481749 connsm -> peer_addr_type += 2 ;
17491750 }
1751+ #endif
17501752
17511753 }
17521754
@@ -1858,10 +1860,12 @@ ble_ll_conn_ext_master_init(struct ble_ll_conn_sm *connsm,
18581860 * mark type as 'identity' as this means also RPA is allowed for
18591861 * connection.
18601862 */
1863+ #if (MYNEWT_VAL (BLE_LL_CFG_FEAT_LL_PRIVACY ) == 1 )
18611864 if (ble_ll_resolv_list_find (connsm -> peer_addr ,
18621865 connsm -> peer_addr_type )) {
18631866 connsm -> peer_addr_type += 2 ;
18641867 }
1868+ #endif
18651869 }
18661870
18671871 connsm -> initial_params = * hcc ;
You can’t perform that action at this time.
0 commit comments