From d01809680d27937d2732eabc66d51fa14c6ab3c5 Mon Sep 17 00:00:00 2001 From: Rahul Tank Date: Thu, 13 Apr 2023 10:06:45 +0530 Subject: [PATCH] Added change to expose addr resolution API outside stack --- nimble/host/include/host/ble_hs_pvcy.h | 2 ++ nimble/host/src/ble_hs_pvcy.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/nimble/host/include/host/ble_hs_pvcy.h b/nimble/host/include/host/ble_hs_pvcy.h index 19087f220..49a8866ca 100644 --- a/nimble/host/include/host/ble_hs_pvcy.h +++ b/nimble/host/include/host/ble_hs_pvcy.h @@ -66,6 +66,8 @@ extern "C" { int ble_hs_pvcy_rpa_config(uint8_t enable); #endif +int ble_hs_pvcy_set_resolve_enabled(int enable); + #ifdef __cplusplus } #endif diff --git a/nimble/host/src/ble_hs_pvcy.c b/nimble/host/src/ble_hs_pvcy.c index 9e92c660f..158da9b60 100644 --- a/nimble/host/src/ble_hs_pvcy.c +++ b/nimble/host/src/ble_hs_pvcy.c @@ -54,7 +54,7 @@ ble_hs_pvcy_set_addr_timeout(uint16_t timeout) } #if (!MYNEWT_VAL(BLE_HOST_BASED_PRIVACY)) -static int +int ble_hs_pvcy_set_resolve_enabled(int enable) { struct ble_hci_le_set_addr_res_en_cp cmd;