espressif / esp-nimble

A fork of NimBLE stack, for use with ESP32 and ESP-IDF
Apache License 2.0
76 stars 49 forks source link

ble_hs_id_addr() debug assert hit via ble_hs_pvcy_set_default_irk() #61

Closed kenh-sq closed 5 months ago

kenh-sq commented 5 months ago

BLE_HS_DBG_ASSERT(ble_hs_locked_by_cur_task()); is getting hit within the call to ble_hs_id_addr() from ble_hs_pvcy_set_default_irk().

Wrapping the ble_hs_id_addr() call with the respective ble_hs_lock()/ble_hs_unlock() might be all that's needed?

rahult-github commented 5 months ago

Hi @kenh-sq ,

Recently a fix was made around this here . I think this should resolve the issue for you .

rahult-github commented 5 months ago

Closing this issue. Please feel free to reopen if issue still persists.