Skip to content

Commit dd6a535

Browse files
committed
Nordic BLE: Remove peer manager handling.
1 parent 6f24078 commit dd6a535

File tree

1 file changed

+0
-10
lines changed
  • features/FEATURE_BLE/targets/TARGET_NORDIC/TARGET_NRF5x/source/btle

1 file changed

+0
-10
lines changed

features/FEATURE_BLE/targets/TARGET_NORDIC/TARGET_NRF5x/source/btle/btle.cpp

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -232,9 +232,6 @@ error_t btle_init(void)
232232
}
233233
#endif
234234

235-
// Peer Manger must been initialised prior any other call to its API (this file and btle_security_pm.cpp)
236-
pm_init();
237-
238235
#if (NRF_SD_BLE_API_VERSION <= 2)
239236
ble_gap_addr_t addr;
240237
if (sd_ble_gap_address_get(&addr) != NRF_SUCCESS) {
@@ -243,10 +240,6 @@ error_t btle_init(void)
243240
if (sd_ble_gap_address_set(BLE_GAP_ADDR_CYCLE_MODE_NONE, &addr) != NRF_SUCCESS) {
244241
return ERROR_INVALID_PARAM;
245242
}
246-
#else
247-
ble_gap_privacy_params_t privacy_params = {0};
248-
privacy_params.privacy_mode = BLE_GAP_PRIVACY_MODE_OFF;
249-
pm_privacy_set(&privacy_params);
250243
#endif
251244

252245
// From SDK 14 onwards event handlers are registered differently
@@ -287,9 +280,6 @@ void btle_handler(const ble_evt_t *p_ble_evt)
287280
// Forward BLE events to the Connection State module.
288281
// This must be called before any event handler that uses this module.
289282
ble_conn_state_on_ble_evt(p_ble_evt);
290-
291-
// Forward BLE events to the Peer Manager
292-
pm_on_ble_evt(p_ble_evt);
293283
#endif
294284
#endif
295285

0 commit comments

Comments
 (0)