Nimble: Fixes for memory leak / optimization

This commit is contained in:
Rahul Tank 2023-04-18 15:01:09 +05:30
parent d39b4d849e
commit 73639cf0b4
2 changed files with 2 additions and 1 deletions

View File

@ -479,7 +479,7 @@ config BT_NIMBLE_HS_STOP_TIMEOUT_MS
config BT_NIMBLE_HOST_BASED_PRIVACY
bool "Enable host based privacy for random address."
default n
depends on BT_NIMBLE_ENABLED && !IDF_TARGET_ESP32
depends on BT_NIMBLE_ENABLED && IDF_TARGET_ESP32
help
Use this option to do host based Random Private Address resolution.
If this option is disabled then controller based privacy is used.

View File

@ -216,6 +216,7 @@ static int host_rcv_pkt(uint8_t *data, uint16_t len)
assert(evbuf != NULL);
}
memset(evbuf, 0, sizeof *evbuf);
memcpy(evbuf, &data[1], totlen);
rc = ble_hci_trans_ll_evt_tx(evbuf);