Commit Graph

676 Commits

Author SHA1 Message Date
isha.pardikar@espressif.com
dbeeaf6a21 NimBLE : Fixed config options in esp_nimble_cfg.h 2023-04-04 17:39:18 +05:30
Jin Cheng
02bfc34aa0 Optimized the document for GAP API:
`esp_bt_gap_set_cod`
2023-03-30 14:16:02 +08:00
isha.pardikar@espressif.com
a5b20d3d52 NimBLE: Added support for writing data more than BLE_ATT_ATTR_MAX_LEN 2023-03-30 11:26:52 +05:30
Jiang Jiang Jian
f944418ca4 Merge branch 'bugfix/delay_report_memory_leak_v5.0' into 'release/v5.0'
bugfix: fixed memory leak in AVDT delay report (v5.0)

See merge request espressif/esp-idf!22885
2023-03-29 19:14:40 +08:00
Jiang Jiang Jian
273b1b3bc5 Merge branch 'feature/add_ext_adv_instance_check' into 'release/v5.0'
NimBLE: Added ble_gap_ext_adv_active() to check if extended advertising instance is active or not.

See merge request espressif/esp-idf!22837
2023-03-29 19:11:45 +08:00
Jin Cheng
7d61e0bc52 Fixed memory leak in AVDT delay report 2023-03-23 11:23:43 +08:00
Jin Cheng
b0f6a4174a Fixed the index out of bounds of hfp_ag BTC control block 2023-03-22 15:48:32 +08:00
isha.pardikar@espressif.com
d3546e3fa3 NimBLE: Added ble_gap_ext_adv_active() to check if extended advertising instance is active or not. 2023-03-20 16:36:20 +05:30
Jiang Jiang Jian
fe743a057f Merge branch 'bugfix/avrcp_psth_cmd_rsp_v5.0' into 'release/v5.0'
bt:Added a parameter to tell the user the result of the pass through command implementation(v5.0)

See merge request espressif/esp-idf!22726
2023-03-17 14:22:22 +08:00
Jiang Jiang Jian
9718c91a38 Merge branch 'bugfix/bluedroid_le_coc_compile_error_v5.0' into 'release/v5.0'
bt: fix Bluedroid compile errors after enable CONFIG_ESP_SYSTEM_USE_EH_FRAME on RISC-V SoCs(backport v5.0)

See merge request espressif/esp-idf!22492
2023-03-17 13:56:36 +08:00
Jiang Jiang Jian
df0ec3f5e4 Merge branch 'bugfix/modify_configuration_for_ble_5_v5.0' into 'release/v5.0'
Nimble: Update example configuration to enable ext adv feature only for BLE5.0 supported chips (v5.0)

See merge request espressif/esp-idf!22780
2023-03-17 13:56:22 +08:00
Jiang Jiang Jian
b837e910a9 Merge branch 'bugfix/add_debug_check_v5.0' into 'release/v5.0'
Nimble: Added debug relate flag around debug code_v5.0

See merge request espressif/esp-idf!22782
2023-03-17 13:55:54 +08:00
Rahul Tank
32a02459dc Nimble: Update example configuration to enable ext adv feature only for BLE5.0 supported chips 2023-03-16 12:08:58 +05:30
Jiang Jiang Jian
10010b1976 Merge branch 'bugfix/fix_fast_packets_handling_v5.0' into 'release/v5.0'
Nimble: Retry buffer allocation, if previous allocation fails (v5.0)

See merge request espressif/esp-idf!22730
2023-03-16 10:27:42 +08:00
Rahul Tank
ce7df40968 Nimble: Added debug relate flag around debug code 2023-03-15 16:30:29 +05:30
Marius Vikhammer
420e20f95b docs: fix broken links 2023-03-14 10:24:51 +08:00
Rahul Tank
ceeff063e8 Nimble: Added change to give time to allocate buffers, in case previous
allocation fails

Closes https://github.com/espressif/esp-idf/issues/10849
2023-03-13 15:23:04 +05:30
Jiang Jiang Jian
358ed1af5d Merge branch 'bugfix/add_return_type_nimble_port_init_v5.0' into 'release/v5.0'
Nimble: Added return value (success / failure ) to nimble_port_init  / nimble_port_deinit (v5.0)

See merge request espressif/esp-idf!22191
2023-03-13 15:19:06 +08:00
xiongweichao
46e7347177 bt:Added a parameter to tell the user the result of the pass through command implementation 2023-03-13 15:03:55 +08:00
liqigan
109d42bb85 fix HID Host bug when handling the two consecutive connection request
Closes https://github.com/espressif/esp-idf/issues/10504
2023-03-13 10:16:51 +08:00
wangmengyang
57b26802a5 bt: fix Bluedroid compile errors after enable CONFIG_ESP_SYSTEM_USE_EH_FRAME on RISC-V SoCs
This root cause is incorrect source code separation by conditonal MACROs for BLE L2CAP COC related functions
2023-03-10 07:37:24 +00:00
Rahul Tank
2b5f1140dd Nimble: Added return value (success / failure ) to nimble_port_init 2023-03-02 09:47:03 +05:30
Sumeet Singh
ace6a3b4bb NimBLE: Fix incomplete clearing of peer_dev_rec 2023-02-27 14:21:57 +05:30
Jiang Jiang Jian
5ca38da869 Merge branch 'bugfix/remove_global_min_max_def_v5.0' into 'release/v5.0'
Nimble: Removes global min/max definition causing problems with other libraries (v5.0)

See merge request espressif/esp-idf!21817
2023-02-27 15:11:28 +08:00
Jiang Jiang Jian
7c20c3742d Merge branch 'bugfix/fix_the_bluedroid_hci_crash_on_esp32c2' into 'release/v5.0'
Fixed the bluedroid hci crash due to insufficient memory on ESP32C2

See merge request espressif/esp-idf!22056
2023-02-27 15:07:31 +08:00
Jiang Jiang Jian
4cc03645e8 Merge branch 'bugfix/fix_some_ble_bug_v5.0' into 'release/v5.0'
Fixed some BLE bugs (backport v5.0)

See merge request espressif/esp-idf!22363
2023-02-27 15:05:38 +08:00
Wang Meng Yang
3d80d4b795 Merge branch 'bugfix/sdp_event_status_overwritten_by_handle_v5.0' into 'release/v5.0'
bt: Fixed SDP BTA_SDP_REMOVE_RECORD_USER_EVT event status overridden by handle

See merge request espressif/esp-idf!22213
2023-02-21 18:21:33 +08:00
Wang Meng Yang
8439e6184c Merge branch 'bugfix/build_err_with_ssr_enabled_v5.0' into 'release/v5.0'
bt: Fixed build errors when sniff subrating is enabled (v5.0)

See merge request espressif/esp-idf!22350
2023-02-21 18:20:06 +08:00
chenjianhua
58851cd5cd bluedroid: support ble privacy by controller 2023-02-14 11:24:02 +08:00
chenjianhua
a13b89a043 bluedroid: add params in GATT connect event 2023-02-14 11:23:50 +08:00
Jin Cheng
2db423c62b Fixed build errors when sniff subrating is enabled. 2023-02-13 17:26:35 +08:00
Shen Weilong
699dde8a38 Fixed the bluedroid hci crash due insufficient memory on ESP32C2 2023-02-03 20:41:23 +08:00
AlbertWDev
a16896af68 bt: fix SDP event status overwritten by handle 2023-02-02 20:13:52 +08:00
Jin Cheng
4c6aad37f6 Fixed crash caused by accessing nullptr in btm_acl_disconnected 2023-01-04 11:46:04 +08:00
Rahul Tank
72e637750e Nimble: Removes global min/max definition causing problems with other libraries 2022-12-28 10:17:10 +05:30
Jiang Jiang Jian
7dae4181a8 Merge branch 'bugfix/fix_some_ble_bugs_by_cjh_v5.0' into 'release/v5.0'
Fixed some BLE bugs (backport v5.0)

See merge request espressif/esp-idf!21682
2022-12-20 11:14:48 +08:00
Jiang Jiang Jian
368ede2eb4 Merge branch 'bugfix/spp_vfs_memory_leak_v5.0' into 'release/v5.0'
Component_bt/fix esp_spp_vfs_register memory leak(v5.0)

See merge request espressif/esp-idf!21678
2022-12-20 10:37:10 +08:00
chenjianhua
938d912daa bluedroid: fix ble connection update with same params 2022-12-19 20:17:00 +08:00
chenjianhua
c97df72bb2 bluedroid: fix encrypt keysize of GATT characteristic permission 2022-12-19 20:17:00 +08:00
chenjianhua
4b7702c0a4 bluedroid: correct the length of att read by type pdu 2022-12-19 20:17:00 +08:00
Jiang Jiang Jian
dfa9a81233 Merge branch 'feature/add_periodic_helper_macros_v5.0' into 'release/v5.0'
Nimble: Add helper macros to set interval min / max for periodic adv (v5.0)

See merge request espressif/esp-idf!21620
2022-12-19 19:33:27 +08:00
xiongweichao
32a50118a4 Assert when malloc user_data fail 2022-12-19 11:32:19 +08:00
xiongweichao
29b718bdf5 Fixed memory leak when SPP initialization failed 2022-12-19 11:32:09 +08:00
xiongweichao
3f5aaf11db Added esp_spp_vfs_unregister() to free memory allocated by esp_spp_vfs_register() 2022-12-19 11:32:01 +08:00
xiongweichao
71bd180095 bt: Update HFP version to v1.8 2022-12-15 16:57:56 +08:00
xiongweichao
e5794669de bt: Update A2DP version to v1.4 2022-12-15 16:57:51 +08:00
xiongweichao
9bd1484386 bt:Fixed the use of invalid configuration when the peer device configures the stream, and returned an incorrect error code 2022-12-15 16:57:46 +08:00
Rahul Tank
1623ad0a25 Nimble: Add helper macros to set interval min / max for periodic adv 2022-12-15 13:41:24 +05:30
Jiang Jiang Jian
232a4aee15 Merge branch 'feature/report_acl_conn_cmp_stat_to_app_v5.0' into 'release/v5.0'
feature/report ACL link related events to application (v5.0)

See merge request espressif/esp-idf!21524
2022-12-14 10:45:15 +08:00
Jiang Jiang Jian
88a82c89c6 Merge branch 'feature/nimble_support_ble_max_conn_num_v5.0' into 'release/v5.0'
Nimble:  Support maximum number of connections to 9 on ESP32-C3 and ESP32-S3 (v5.0)

See merge request espressif/esp-idf!21550
2022-12-14 10:44:50 +08:00
Rahul Tank
71e1c0a564 Nimble: Update documentation to include distinction between upstream
mesh example and ESP-BLE-MESH
2022-12-13 12:56:06 +05:30
Jiang Jiang Jian
12535d6d75 Merge branch 'contrib/github_pr_9529_v5.0' into 'release/v5.0'
component_bt: Fixed memory leak due to not freeing memory if posting a message to a thread fails(v5.0)

See merge request espressif/esp-idf!21556
2022-12-12 17:54:13 +08:00
Jiang Jiang Jian
640b86025b Merge branch 'bugfix/correct_the_default_SR_mode_v5.0' into 'release/v5.0'
bugfix/correct the SR_mode selection when konw nothing about Peripheral's SR_mode (v5.0)

See merge request espressif/esp-idf!21519
2022-12-12 14:51:57 +08:00
xiongweichao
6fdd8552da Fixed incorrect parameters in switching to BTC context 2022-12-12 11:26:39 +08:00
xiongweichao
c0392d3dd9 bt:Modify the member variable *arg in struct btc_msg to arg[0] 2022-12-12 11:26:34 +08:00
xiongweichao
f9732cb65f bt: Fixed memory leak due to not freeing memory if posting a message to a thread fails 2022-12-12 11:26:26 +08:00
Wang Meng Yang
818ba6affb Merge branch 'bugfix/spp_50005_crash_v5.0' into 'release/v5.0'
bt: Added esp_spp_enhanced_init() API to indicate whether to enable L2CAP ERTM(v5.0)

See merge request espressif/esp-idf!20822
2022-12-12 11:00:28 +08:00
Rahul Tank
7d68a35cbe Nimble: Support maximum number of connections to 9 on ESP32-C3 and ESP32-S3 2022-12-11 18:16:05 +05:30
jincheng
80da46eff3 Added reporting for ACL link related events to application 2022-12-09 11:07:50 +08:00
Jin Cheng
a1de1bfd3c correct the SR_mode selection when konw nothing about Peripheral 2022-12-09 10:24:24 +08:00
Jiang Jiang Jian
ed663e395f Merge branch 'feature/support_le_power_control_v5.0' into 'release/v5.0'
Nimble: Add LE Power CTRL changes (v5.0)

See merge request espressif/esp-idf!21188
2022-12-08 11:53:00 +08:00
xiongweichao
654e198464 bt: Remove SPP default send buffer size option and add parameters to configure send buffer size in esp_spp_enhance_init() 2022-12-07 09:38:24 +00:00
xiongweichao
c2c9b090c7 bt: Added esp_spp_enhance_init() API to indicate whether to enable L2CAP ERTM 2022-12-07 09:38:24 +00:00
xiongweichao
6d57e7878d bt: Keep the maximum number of credits unchanged 2022-12-07 09:38:24 +00:00
xiongweichao
aa25c4391c bt: Replaced the tx queue in SPP VFS mode with ringbuffer 2022-12-07 09:38:24 +00:00
xiongweichao
6d9987f4c8 bt: Split SPP application layer data packets according to the MTU of the peer 2022-12-07 09:38:24 +00:00
xiongweichao
bce0e93b73 bt: Enter the congestion state when the queue length waiting for the peer to ack is greater than or equal to the L2CAP ERTM tx window size 2022-12-07 09:38:24 +00:00
Wang Meng Yang
23f7989006 Merge branch 'bugfix/reduce_BTU_TASK_stack_consumption_v5.0' into 'release/v5.0'
Reduce the stack consumption of BTU_TASK (backport v5.0)

See merge request espressif/esp-idf!21434
2022-12-07 11:29:39 +08:00
Rahul Tank
e8e79e8e16 Nimble: Add LE Power CTRL changes 2022-12-06 14:56:20 +05:30
Jiang Jiang Jian
0e04bff488 Merge branch 'feature/LE_Conn_Subrating_v5.0' into 'release/v5.0'
Nimble: Stack support for Connection subrating feature (v5.0)

See merge request espressif/esp-idf!20814
2022-12-06 17:21:57 +08:00
Island
8e4bcb4875 Merge branch 'feature/add_comments_for_bt_connections' into 'release/v5.0'
Explain how much memory that will be used by each connection/advertiser.

See merge request espressif/esp-idf!21322
2022-12-06 17:21:12 +08:00
zwj
7884457d1f Reduce the stack consumption of BTU_TASK 2022-12-05 17:12:27 +08:00
Wang Meng Yang
755ee147bd Merge branch 'feature/support_ble_max_conn_num_to_9_v5.0' into 'release/v5.0'
Support bluedroid host maximum number of connections to 9 (backport v5.0)

See merge request espressif/esp-idf!21400
2022-12-05 12:16:53 +08:00
Rahul Tank
586a4715ad Nimble: Stack support for Connection subrating feature 2022-12-05 09:26:11 +05:30
Jiang Jiang Jian
316e0e2295 Merge branch 'bugfix/fix_hid_device_vup_without_connection_5.0' into 'release/v5.0'
Bugfix/Fix HID Device can not remove virtually cabled device without a connection[backport 5.0]

See merge request espressif/esp-idf!21365
2022-12-02 20:38:57 +08:00
Jiang Jiang Jian
f83a531929 Merge branch 'bufix/a2dp_fail_connect_again_after_disconnect_v5.0' into 'release/v5.0'
component_bt: Fixed a2dp failing to connect again after disconnect(v5.0)

See merge request espressif/esp-idf!21342
2022-12-02 20:38:13 +08:00
Jiang Jiang Jian
d92765bf9c Merge branch 'bt/opt_audio_datapath_v5.0' into 'release/v5.0'
bt/optimized a2dp_sink audio datapath (v5.0)

See merge request espressif/esp-idf!21222
2022-12-02 20:36:14 +08:00
Jiang Jiang Jian
52b0a5a1d5 Merge branch 'bugfix/fix_hfp_clcc_parser_bug_5.0' into 'release/v5.0'
Bugfix/Fix HFP client parse CLCC command response bug[backport 5.0]

See merge request espressif/esp-idf!21155
2022-12-02 20:34:18 +08:00
Jiang Jiang Jian
6442112bb9 Merge branch 'bugfix/change_default_tx_power_on_c3_and_s3_v5.0' into 'release/v5.0'
Change BLE default TX power on ESP32C3 and ESP32S3(backport v5.0)

See merge request espressif/esp-idf!21099
2022-12-02 20:32:53 +08:00
Jiang Jiang Jian
af7322aed5 Merge branch 'bugfix/a2dp_can_not_connect_after_ble_connected_v5.0' into 'release/v5.0'
fixed the issue iOS devices cannot initiate connection (v5.0)

See merge request espressif/esp-idf!21063
2022-12-02 20:32:03 +08:00
Jiang Jiang Jian
5e461357a0 Merge branch 'bugfix/esp_spp_write_len_0_v5.0' into 'release/v5.0'
bt: Fixed esp_spp_write() crash when len is 0(v5.0)

See merge request espressif/esp-idf!20704
2022-12-02 19:53:19 +08:00
Jiang Jiang Jian
53746605d8 Merge branch 'bugfix/esprv_intc_int_set_type_error_v5.0' into 'release/v5.0'
Nimble: Fixed esprv_intc_int_set_type() usage (v5.0)

See merge request espressif/esp-idf!20616
2022-12-02 19:51:10 +08:00
Shen Weilong
dcc310f468 Explain how mush memory that will be used by each connection/advertiser. 2022-12-02 14:22:53 +08:00
zhiweijian
2a76e35ed1 bluedroid host supports the maximum number of connections to 9 2022-12-02 12:18:40 +08:00
liqigan
ad43b04898 fix HID device can not remove virtually cabled device without a connection
Closes https://github.com/espressif/esp-idf/issues/10107
2022-12-01 15:14:25 +08:00
xiongweichao
d47bf56850 Fixed a2dp failing to connect again after disconnect 2022-11-30 18:46:59 +08:00
Jin Cheng
75b2e639e1 optimized a2dp_sink audio datapath
1. removed audio cache in BTC layer of Bluedroid
2. added flow control for audio data in application layer

Closes https://github.com/espressif/esp-idf/issues/9622
2022-11-24 11:21:57 +08:00
zwj
0af189b012 Fixed errors reported by CI clang_tidy_check 2022-11-21 10:33:35 +08:00
zwj
2e0a5b3111 Fixed sometimes BTU task overflow when doing read and write performance test 2022-11-21 10:33:35 +08:00
liqigan
2539529360 fix HFP client parse CLCC command response bug 2022-11-18 19:38:58 +08:00
Jin Cheng
650b665384 fixed the issue iOS devices cannot initiate connection
to ESP32 while there is a BLE connection to this ESP32

Closes https://github.com/espressif/esp-idf/issues/6557
2022-11-14 09:45:34 +08:00
xiongweichao
cb647b5198 bt: Fixed SPP VFS mode not being able to send data 2022-10-26 16:41:09 +08:00
xiongweichao
47232f54a8 bt: Fixed esp_spp_write() crash when len is 0
Closes https://github.com/espressif/esp-idf/issues/9977
2022-10-26 16:40:56 +08:00
Rahul Tank
11c44c9838 Nimble: Added check to allocate memory for extended adv
reports from lower prioirty buffers instead of high prioirty pool.
2022-10-21 12:47:14 +05:30
Jin Cheng
3314fcfdf7 Revert "fixed the issue iOS devices cannot initiate connection"
This reverts commit da44fc9cbe.
2022-10-18 19:47:10 +08:00
Rahul Tank
50b1a99a47 Nimble: Update the esprv_intc_int_set_type() usage 2022-10-18 06:06:44 +00:00
Jiang Jiang Jian
5c2a41d659 Merge branch 'bugfix/close_stack_callback_during_ble_stop_v5.0' into 'release/v5.0'
Nimble: Added check to deregister stack callback with controller during (v5.0)

See merge request espressif/esp-idf!20603
2022-10-16 11:14:46 +08:00
Jiang Jiang Jian
7bd5af7f1e Merge branch 'bugfix/a2dp_can_not_connect_after_ble_connected_v5.0' into 'release/v5.0'
fixed the issue iOS devices cannot initiate connection (v5.0)

See merge request espressif/esp-idf!20403
2022-10-14 17:15:15 +08:00
Rahul Tank
d6ea9b9643 Nimble: Added check to deregister stack callback with controller during 2022-10-14 12:08:15 +05:30
Jiang Jiang Jian
d1b989dae2 Merge branch 'bugfix/reorder_stack_deinit_function_v5.0' into 'release/v5.0'
Nimble: Removed extra deinit for flow timer (v5.0)

See merge request espressif/esp-idf!20308
2022-10-14 13:58:53 +08:00