OVMS3-idf/components/bt
Hrishikesh Dhayagude 4abe47437f components/bt: Fix broken API esp_bt_mem_release() for parameter ESP_BT_MODE_BTDM
Problem:
The new API esp_bt_mem_release() that was added freed BTDM data to heap from esp_bt_controller_mem_release().
Now with the BT memory optimization commit ee787085f9,
the BTDM data is optimized and reduced to only 32 bytes which is not sufficient amount to be added to heap.
So, using the API leads to assert saying that the region is too small.

Solution:
Modify heap_caps_add_region_with_caps to return ESP_ERR_INVALID_SIZE in case the range is too small to create a new heap.
Do not assert if return value is ESP_ERR_INVALID_SIZE

This also fixes using API esp_bt_controller_mem_release() with ESP_BT_MODE_BTDM

Signed-off-by: Hrishikesh Dhayagude <hrishi@espressif.com>
2018-08-31 14:28:23 +00:00
..
bluedroid Merge branch 'bugfix/fix_bt_hdr_files' into 'master' 2018-08-31 22:04:39 +08:00
include components/bt: Make a pass through Bluetooth header files 2018-08-25 21:21:42 +05:30
lib@c272133d6d fix bluetooth security vulnerability of ECDH publick key checking 2018-08-30 11:39:19 +08:00
test bt: build unit tests only when CONFIG_BT_ENABLED=1 2018-08-13 17:38:37 +03:00
bt.c components/bt: Fix broken API esp_bt_mem_release() for parameter ESP_BT_MODE_BTDM 2018-08-31 14:28:23 +00:00
component.mk component/bt: implement HFP Hands Free Unit Role 2018-05-21 11:33:30 +08:00
Kconfig tools: fix ci example build report reassign warnning 2018-08-16 11:12:22 +08:00