mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
Merge branch 'bugfix/memory_cleanup_optimization_v5.1' into 'release/v5.1'
Nimble: Fixes for memory leak / optimization (v5.1) See merge request espressif/esp-idf!24139
This commit is contained in:
commit
60163c3b0f
@ -479,7 +479,7 @@ config BT_NIMBLE_HS_STOP_TIMEOUT_MS
|
|||||||
config BT_NIMBLE_HOST_BASED_PRIVACY
|
config BT_NIMBLE_HOST_BASED_PRIVACY
|
||||||
bool "Enable host based privacy for random address."
|
bool "Enable host based privacy for random address."
|
||||||
default n
|
default n
|
||||||
depends on BT_NIMBLE_ENABLED && !IDF_TARGET_ESP32
|
depends on BT_NIMBLE_ENABLED && IDF_TARGET_ESP32
|
||||||
help
|
help
|
||||||
Use this option to do host based Random Private Address resolution.
|
Use this option to do host based Random Private Address resolution.
|
||||||
If this option is disabled then controller based privacy is used.
|
If this option is disabled then controller based privacy is used.
|
||||||
|
@ -216,6 +216,7 @@ static int host_rcv_pkt(uint8_t *data, uint16_t len)
|
|||||||
assert(evbuf != NULL);
|
assert(evbuf != NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
memset(evbuf, 0, sizeof *evbuf);
|
||||||
memcpy(evbuf, &data[1], totlen);
|
memcpy(evbuf, &data[1], totlen);
|
||||||
|
|
||||||
rc = ble_hci_trans_ll_evt_tx(evbuf);
|
rc = ble_hci_trans_ll_evt_tx(evbuf);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user