Commit Graph

2989 Commits

Author SHA1 Message Date
xiongweichao
2cf7834db5 components/bt: Fix crash due to NULL point 2023-07-11 19:37:12 +08:00
Rahul Tank
55559c3b5b Nimble:Added change to expose addr resolution API outside stack 2023-07-11 11:36:06 +05:30
Rahul Tank
67f6b668bd Merge branch 'bufix/fix_assert_while_stack_deinit_v5.0' into 'release/v5.0'
fix(nimble): Fix assert due to controller event while stack deinit (v5.0)

See merge request espressif/esp-idf!24621
2023-07-11 12:50:48 +08:00
Rahul Tank
007ae93913 Merge branch 'bugfix/expose_clear_all_wl_api_v5.0' into 'release/v5.0'
fix(Nimble): Expose API to clear all addresses in whitelist out of stack (v5.0)

See merge request espressif/esp-idf!24308
2023-07-11 12:24:35 +08:00
Jiang Jiang Jian
095bb9f015 Merge branch 'bugfix/sdp_32_and_128_bit_UUID_v5.0' into 'release/v5.0'
bt:Fixed SDP not being able to configure 32-bit and 128-bit UUID(v5.0)

See merge request espressif/esp-idf!24443
2023-07-11 12:24:07 +08:00
Jiang Jiang Jian
12d9bafc37 Merge branch 'docs/update_esp_hid_host_v5.0' into 'release/v5.0'
[docs] fix documents for Bluetooth HID Host API reference (backport v5.0)

See merge request espressif/esp-idf!24390
2023-07-11 12:23:54 +08:00
Jiang Jiang Jian
5cb2736de6 Merge branch 'bugfix/alarm_not_free_when_a2dp_deinit_v5.0' into 'release/v5.0'
bugfix/Fixed the issue of alarm leak (v5.0)

See merge request espressif/esp-idf!24352
2023-07-11 12:23:33 +08:00
Jiang Jiang Jian
10ee73839f Merge branch 'bugfix/hfp_packet_type_err_v5.0' into 'release/v5.0'
Revised (e)SCO configuration parameter sets (v5.0)

See merge request espressif/esp-idf!24347
2023-07-11 12:23:16 +08:00
Jiang Jiang Jian
40aac8601b Merge branch 'bugfix/fix_some_ble_bugs_v5.0' into 'release/v5.0'
Fixed some BLE bugs (backport v5.0)

See merge request espressif/esp-idf!24276
2023-07-11 12:21:07 +08:00
Shen Weilong
9e0bd6f7aa ble: Update the libbt for ESP32-C2 2023-07-11 11:41:48 +08:00
Island
0f44414ce0 Merge branch 'bugfix/added_chip_based_cca_config_v5.0' into 'release/v5.0'
ble: fix cca for esp32c2

See merge request espressif/esp-idf!24256
2023-07-11 11:36:03 +08:00
Jin Cheng
f0a53601e0 Fixed the issue of alarm leak in hf-ag 2023-07-10 06:08:22 +00:00
Jin Cheng
3061770e7b Fixed the issue of alarm leak in A2DP 2023-07-10 06:08:22 +00:00
Jin Cheng
1b7e47d3d3 Revised (e)SCO configuration parameter sets 2023-07-10 06:07:55 +00:00
Roshan Bangar
b4c8d92d94 fix(nimble): Fix assert due to controller event while stack deinit 2023-07-06 11:49:09 +05:30
chenjianhua
64a2778d5f bluedroid: fixed gatt tcb free when disconnecting 2023-06-29 20:55:37 +08:00
cjin
75bd131a54 ble: fix cca for esp32c2 2023-06-29 20:02:34 +08:00
Ilia Lutchenko
837a46b5a7 btc_sdp: add_raw_sdp: fix 32 and 128-bit uuid configuration
Added proper conversion of 4 and 16-byte UUIDs values to binary streams.
UUIDs now set with SDP_AddAttribute() instead of
SDP_AddServiceClassIdList().
2023-06-28 14:18:20 +08:00
wangmengyang
49bb1e85b7 component/docs: enable generation of API-reference documents for Bluetooth HID host 2023-06-25 15:37:54 +08:00
gongyantao
df68489f15 resolve the conflicts 2023-06-25 15:37:54 +08:00
Rahul Tank
da223dd790 Nimble: Expose API to clear all addresses in whitelist out of stack 2023-06-21 15:55:58 +05:30
chenjianhua
da7cbbfb7f Update bt-lib for esp32
1 Fixed disconnection delay on peripheral when slave latency is not zero
2 Fixed LLCP info init for central and peripheral
3 Fixed sent cmd status evt twice when process disconnect cmd
2023-06-16 11:41:24 +08:00
chenjianhua
2be8e6e086 Update bt lib for ESP32-C3 and ESP32-S3
- Fixed crash when controller initialization fails due to insufficient memory
2023-06-16 11:41:19 +08:00
chenjianhua
2dea457d9a bluedroid: fixed default extended connection params 2023-06-16 11:41:06 +08:00
Jiang Jiang Jian
7684bd5cdb Merge branch 'bugfix/memory_cleanup_optimization_v5.0' into 'release/v5.0'
Nimble: Fixes for memory leak / optimization (v5.0)

See merge request espressif/esp-idf!24140
2023-06-13 23:43:08 +08:00
Jiang Jiang Jian
da24d50bb9 Merge branch 'bugfix/fix_bleqabr23_222_v5.0' into 'release/v5.0'
Revert "bluedroid: report disconnect event after BLE link closed" (backport 5.0)

See merge request espressif/esp-idf!24191
2023-06-13 18:00:19 +08:00
Rahul Tank
13f62f9d4b Nimble: Fixes for memory leak / optimization 2023-06-13 09:20:28 +05:30
Jiang Jiang Jian
1c07880c34 Merge branch 'bugfix/add_event_cb_for_pcl_v5.0' into 'release/v5.0'
Nimble: Add support to send power control event in registered callback(v5.0)

See merge request espressif/esp-idf!23584
2023-06-13 11:20:34 +08:00
chenjianhua
187d77d702 Revert "bluedroid: report disconnect event after BLE link closed"
This reverts commit 0cb5a90663.
2023-06-13 10:33:17 +08:00
Jiang Jiang Jian
6012986e2a Merge branch 'bugfix/delete_node_during_list_traverse_5.0' into 'release/v5.0'
bugfix: Fixed the crash of LoadProhibited caused by invalid operation on list node in handling hci_hardware_error event (v5.0)

See merge request espressif/esp-idf!23117
2023-06-12 18:16:25 +08:00
Jin Cheng
7e810cd65c fix a2dp source crash when connect to Bose speaker 2023-06-12 03:24:15 +00:00
Jin Cheng
95b363aa91 fixed the crash of LoadProhibited caused by taht
the nodes are deleted during the traversal of the linked list
2023-06-12 03:23:18 +00:00
Jiang Jiang Jian
9fb999e99a Merge branch 'bugfix/fix_blufi_conn_handle' into 'release/v5.0'
Blufi: use blufi_env.conn_id instead of local variable (v5.0)

See merge request espressif/esp-idf!24012
2023-06-05 21:16:34 +08:00
Jiang Jiang Jian
f9ad773288 Merge branch 'bugfix/hfp_ag_idx_invalid_v5.0' into 'release/v5.0'
bt: Fixed out of bounds access due to variable length array(v5.0)

See merge request espressif/esp-idf!23666
2023-06-01 19:59:22 +08:00
Rahul Tank
4377ba639b Blufi: use blufi_env.conn_id instead of local variable 2023-05-31 20:10:19 +05:30
zwl
2153f59574 ble:fixed the issue that slave reports the wrong address for master when address resolution disable 2023-05-29 20:29:55 +08:00
zwl
8ce59ffe14 ble:fixed build error when disable smp 2023-05-24 20:51:41 +08:00
zwl
bc96a1b6c7 ble:esp32c2 add rf temperature compensation 2023-05-24 20:51:41 +08:00
Jiang Jiang Jian
de419dbe0b 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!23709
2023-05-22 11:09:26 +08:00
Rahul Tank
dc63356910 Nimble: Add support to send power control event in registered callback 2023-05-18 14:02:07 +05:30
Jiang Jiang Jian
c21a4c9858 Merge branch 'bugfix/fix_esp32_bugs_230511' into 'release/v5.0'
Fixed some esp32 bugs(backport v5.0)

See merge request espressif/esp-idf!23704
2023-05-15 13:40:05 +08:00
Island
21cfccad3a Merge branch 'feature/add_interface_for_ble_QA_test_5.0' into 'release/v5.0'
BLE: Add interface for QA test

See merge request espressif/esp-idf!22980
2023-05-12 16:27:37 +08:00
Island
16b2071a4d Merge branch 'feature/esp32c2_add_hci_buf_get_checking' into 'release/v5.0'
Feature/esp32c2 add hci buf get checking

See merge request espressif/esp-idf!22692
2023-05-12 14:47:59 +08:00
Island
d2e094d29a Merge branch 'bugfix/ble_mesh_fix_heartbeat_set_v5.0' into 'release/v5.0'
ble_mesh: stack: Update the heartbeat filter entry add/remove handling (v5.0)

See merge request espressif/esp-idf!23165
2023-05-11 21:34:21 +08:00
chenjianhua
90f52cf0c7 bluedroid: fix ble ext adv rand addr setting for NRPA 2023-05-11 20:47:45 +08:00
chenjianhua
d7a927190b bluedroid: fix ble adv data construct for device name 2023-05-11 20:47:36 +08:00
chenjianhua
dcd8427529 bluedroid: fix ble smp key distribution setting 2023-05-11 20:47:27 +08:00
chenjianhua
0cb5a90663 bluedroid: report disconnect event after BLE link closed 2023-05-11 20:47:09 +08:00
zhiweijian
81f9fdb6e6 Fixed BLE disconnection failure on ESP32 2023-05-11 20:04:38 +08:00
zwj
6545c5aad5 Fixed disconnection due to consecutive CRC errors in first 6 intervals 2023-05-11 20:04:19 +08:00
zwj
21f694dc81 Fixed no error report when own address type is rpa_random and no random address setting 2023-05-11 20:03:39 +08:00
zhiweijian
8e5d95c953 Fixed battery profile wrong condition 2023-05-11 20:03:18 +08:00
zwl
5c0d18b6f5 Add hci uart pin reconfig API 2023-05-11 12:01:21 +00:00
zwl
15d347f8c0 ble: Add assertion checking for bluedroid hci on ESP32-C2 and ESP32-H2 2023-05-11 12:01:21 +00:00
Shen Weilong
6bfeac7b6c BLE: Add interface for QA test
Fix sleep crash issue
2023-05-11 20:01:13 +08:00
Jiang Jiang Jian
e7d4c90277 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!23299
2023-05-11 17:28:00 +08:00
Jiang Jiang Jian
c323399520 Merge branch 'bugfix/fix_hw_ralunderrun_assert_v5.0' into 'release/v5.0'
Fixed BLE HW RAL_UNDERRUN assert and backport some bug fix 23-03-30 (back port v5.0)

See merge request espressif/esp-idf!22989
2023-05-11 17:27:32 +08:00
Jiang Jiang Jian
0117a6e7b1 Merge branch 'bugfix/hf_cind_ind_index_v5.0' into 'release/v5.0'
bt: Fixed the inconsistency between the indicator event received by the HF application layer and the actually received indicator(v5.0)

See merge request espressif/esp-idf!23560
2023-05-11 17:25:27 +08:00
Jiang Jiang Jian
bc2b5f52e2 Merge branch 'bugfix/bt_diable_enbale_crash_v5.0' into 'release/v5.0'
bt:Fixed esp32 controller bug (v5.0)

See merge request espressif/esp-idf!23154
2023-05-11 17:23:48 +08:00
Jiang Jiang Jian
65c71e9c12 Merge branch 'rebase/fix_conn_estab_tmo_issue' into 'release/v5.0'
ble:fix conn establishment timeout issue

See merge request espressif/esp-idf!23524
2023-05-11 17:21:17 +08:00
Jiang Jiang Jian
d84fc1ea4e Merge branch 'feature/write_blob_v5.0' into 'release/v5.0'
NimBLE: Added support for writing data more than BLE_ATT_ATTR_MAX_LEN (v5.0)

See merge request espressif/esp-idf!22993
2023-05-11 17:18:22 +08:00
Jiang Jiang Jian
f0426aed56 Merge branch 'bugfix/deinit_ble_v5.0' into 'release/v5.0'
bugfix: deinit ble for specifies ESP_BT_MODE_BTDM (backport v5.0)

See merge request espressif/esp-idf!23067
2023-05-11 17:17:10 +08:00
Jiang Jiang Jian
60e68189c4 Merge branch 'bugfix/esp_nimble_config_v5.0' into 'release/v5.0'
NimBLE : Fixed config options in esp_nimble_cfg.h (v5.0)

See merge request espressif/esp-idf!23070
2023-05-11 17:13:19 +08:00
xiongweichao
22eeaf2f70 bt: Deleted some redundant variables in HFP_AG 2023-05-11 06:12:38 +00:00
xiongweichao
d19ecff036 bt: Fixed the problem of out-of-bounds access caused by the variable-length array introduced in 3268075231
Closes https://github.com/espressif/esp-idf/issues/11264
2023-05-11 06:12:38 +00:00
xiongweichao
ff3377ddd1 bt: Fixed codec mode error in ESP_HF_WBS_RESPONSE_EVT 2023-05-11 06:12:38 +00:00
chenjianhua
c48debf246 Update bt lib for ESP32-C3 and ESP32-S3
- Fixed remote mic error during encryption procedure
2023-05-11 10:58:43 +08:00
chenjianhua
8c17ef00b1 Update bt lib for ESP32-C3 and ESP32-S3
- Fixed ble hopping selection for connection when disabled 5.0 feature
2023-05-11 10:57:30 +08:00
zhiweijian
70c30cad3d Disable controller 5.0 feature bits if host 5.0 feature is not enabled 2023-05-11 02:45:56 +00:00
zwj
4c506a9eea improve scan performance when scan and sync coexist on ESP32-C3 and ESP32-S3 2023-05-11 02:45:56 +00:00
chenjianhua
2279603842 Update bt lib for ESP32-C3 and ESP32-S3
- Fixed non-connectable and non-scannable directed adv can't be scanned
2023-05-11 02:45:56 +00:00
zwj
d8e4bdc69e Fixed BLE HW RAL_UNDERRUN assert on ESP32C3 and ESP32S3 2023-05-11 02:45:56 +00:00
zwj
45a72222d6 If it is not esp32 chips, hide the configuration item: BT_BLE_RPA_SUPPORTED 2023-05-11 02:45:56 +00:00
zhiweijian
f0c6c5962a set BT_CTRL_BLE_MAX_ACT default value to 6 2023-05-11 02:45:56 +00:00
zhiweijian
b9e9a60c4f Fixed ATT Ignore wrong response error 2023-05-11 02:45:56 +00:00
zwj
0e5c6144b7 - Support ESP32C3 and ESP32S3 new BLE lib
- Disable controller 5.0 feature bits if host 5.0 feature is not enabled
- Fixed extend ADV parameters check for ADV_DIRECT_HI
2023-05-11 02:45:56 +00:00
zwj
c6942be321 Merge ESP32C3 and ESP32S3 BLE bt.c files to one 2023-05-11 02:45:56 +00:00
zwj
cd1b88c97e Fixed duplicate scan refresh cycle is not accurate after restarting scan on ESP32 2023-05-04 06:37:19 +00:00
wangmengyang
239e97ff7e bt: added coex adapter operation to get version of coexist module to ESP32 Bluetooth Controller 2023-05-04 06:37:19 +00:00
xiongweichao
a83b16f18d bt:Fixed esp32 controller bug
1. Fixed crash after controller disable and re-enable
2. Fixed the crash caused by processing the HCI_Read_Remote_Extented_Features command in the non-connected state
3. Fixed disconnection due to not handling lmp_unsniff_req in LC_WAIT_SNIFF_SUB_RSP state
4. Fixed crash caused by supervision timeout greater than sniff interval

Closes https://github.com/espressif/esp-idf/issues/11164
Closes https://github.com/espressif/esp-idf/issues/10835
2023-05-04 06:37:19 +00:00
xiongweichao
0624049a60 bt: Fixed the inconsistency between the indicator event received by the HF application layer and the actually received indicator.
Closes https://github.com/espressif/esp-idf/issues/6486
2023-05-04 14:12:56 +08:00
Jin Chen
0f9ba10f4e ble:fix connection establishemnt timeout issue 2023-04-28 17:47:29 +08:00
chenjianhua
cceb2b4db6 bluedroid: support get bluetooth device name 2023-04-20 10:54:16 +08:00
chenjianhua
3eb5185b7b bluedroid: report status after clearing the BLE white list 2023-04-20 10:38:23 +08:00
chenjianhua
11147b0473 bluedroid: fix GATTC cache address save 2023-04-20 10:37:13 +08:00
chenjianhua
fa051d8dc4 bluedroid: fix adv and scan state conflict 2023-04-20 10:36:14 +08:00
wangjialiang
b9f7049bc5 ble_mesh: stack: Update the heartbeat filter entry add/remove handling 2023-04-12 16:11:24 +08:00
isha.pardikar@espressif.com
dbeeaf6a21 NimBLE : Fixed config options in esp_nimble_cfg.h 2023-04-04 17:39:18 +05:30
Yuan Mingfu
3cc5ad7ac4 bugfix: deinit ble for specifies ESP_BT_MODE_BTDM 2023-04-04 18:04:12 +08:00
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
lly
f92ee6d70b ble_mesh: stack: Minor fix for provisioner provisioning timeout 2023-03-28 04:29:07 +00:00
wangjialiang
353eade320 ble_mesh: add BQB LOG 2023-03-28 04:29:07 +00:00
luoxu
d63bcc75a4 ble_mesh: stack: forward rfu dst for the case NODE/RLY/BV-01 2023-03-28 04:29:07 +00:00
luoxu
d63200c0b4 ble_mesh: stack: add send transaction ack befor provisioner send prov failed msg 2023-03-28 04:29:07 +00:00
luoxu
0f87363e3e ble_mesh: stack: for the case MESH/PVNR/PBADV/BV-01, add the close link reason before reset link 2023-03-28 04:29:07 +00:00
wangjialiang
9f36ad8ab6 ble_mesh: stack: bug fix in bqb 2023-03-24 16:21:40 +08:00
wangjialiang
f02b18b392 ble_mesh: stack: add description of internal BQB Test 2023-03-24 16:20:06 +08:00
lly
71bc754b0a ble_mesh: stack: Minor updates for BQB test log 2023-03-24 16:05:08 +08:00
wangjialiang
161e78150f ble_mesh: stack: Add a BQB macro for BQB test to enable some internal function or log 2023-03-24 16:05:01 +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
Wang Meng Yang
e9092c2d2d Merge branch 'feature/support_ble_write_and_notify_throughput_test_at_the_same_time_v5.0' into 'release/v5.0'
support ble write and notify throughput test at the same time (backport v5.0)

See merge request espressif/esp-idf!22143
2023-03-09 11:38:15 +08:00
Rahul Tank
2b5f1140dd Nimble: Added return value (success / failure ) to nimble_port_init 2023-03-02 09:47:03 +05:30
Island
564b94fe5b Merge branch 'feature/esp32c2_optimize_npl_api_v5.0' into 'release/v5.0'
Optimized NPL Freertos API

See merge request espressif/esp-idf!21906
2023-02-28 20:51:49 +08:00
zhiweijian
61c3b96957 Fixed vulnerability attacks that could cause heap overflow in fragmented Blufi packet processing 2023-02-27 13:01:13 +00:00
Shen Weilong
0fce029b92 [esp32c2] Fixed the occasional assertion when deinit the ble controller 2023-02-27 16:56:05 +08:00
zwl
7b28d40c0a ble:Fixed issues of adv error stop and abnormal reporting of connection update complete event on ESP32-C2 2023-02-27 16:56:05 +08:00
zwl
530c07a5be Optimized NPL Freertos API 2023-02-27 16:56:05 +08:00
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
2ab97d57f9 Merge branch 'bugfix/fixed_hci_uart_flow_ctrl_error_on_esp32c2_v5.0' into 'release/v5.0'
Bugfix/fixed hci uart flow ctrl error on esp32c2 v5.0

See merge request espressif/esp-idf!21887
2023-02-27 15:08: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
f39c3b286c Merge branch 'bugfix/coex_enable_disable_not_in_pairs_v5.0' into 'release/v5.0'
bluetooth: fix that functions "coex_enable" and "coex_disable" are not used in pairs(backport v5.0)

See merge request espressif/esp-idf!22094
2023-02-27 15:05:49 +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
Wang Meng Yang
11c65947d8 Merge branch 'bugfix/access_nullptr_when_ble_disconn_v5.0' into 'release/v5.0'
Bugfix/Fixed crash caused by accessing nullptr in `btm_acl_disconnected` (v5.0)

See merge request espressif/esp-idf!21879
2023-02-21 18:18:48 +08:00
isha.pardikar@espressif.com
049cffcb2a BluFi : Fixed hdr getting free twice
Closes IDFGH-9378
2023-02-21 11:44:12 +05:30
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
chenjianhua
78437f48ae update bt-lib for ESP32
fix ble disconnect due to channel map update instant passed
2023-02-14 11:23:01 +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
wangmengyang
ebb7650e63 bluetooth: fix that functions "coex_enable" and "coex_disable" are not used in pairs on ESP32-C3, ESP32-S3 and ESP32-C2 2023-01-20 10:47:58 +08:00
zhaoweiliang
a68fad98ed Fixed task watchdog trigger issue when closed hci uart 2023-01-04 15:30:32 +08:00
Jin Cheng
4c6aad37f6 Fixed crash caused by accessing nullptr in btm_acl_disconnected 2023-01-04 11:46:04 +08:00
zhaoweiliang
6b0a64d722 Fixed hci uart flow ctrl error on ESP32-C2 and ESP32-H4 2023-01-04 09:59:32 +08:00
Rahul Tank
72e637750e Nimble: Removes global min/max definition causing problems with other libraries 2022-12-28 10:17:10 +05:30
Zim Kalinowski
6972b61ea5 Merge branch 'staging/esp_static_assert_v5.0' into 'release/v5.0'
C/Cxx: unify static assertions with the macro ESP_STATIC_ASSERT (backport v5.0)

See merge request espressif/esp-idf!21695
2022-12-20 20:53:02 +08:00
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
cf88b7a743 Merge branch 'bugfix/fix_ble_some_bugs_20221219' into 'release/v5.0'
backport some BLE bugs 20221219 (backport v5.0)

See merge request espressif/esp-idf!21697
2022-12-20 10:52:53 +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
Omar Chebib
0714847552 C/Cxx: unify static assertions with the macro ESP_STATIC_ASSERT
Closes https://github.com/espressif/esp-idf/issues/9938
2022-12-19 15:06:15 +01:00
zwj
0733694f1f Update bt lib for ESP32
- Add config to set duplicate scan list refresh period
- overwrite the oldest device infor if the list is full
- Fixed duplicate scan period is not accurate
2022-12-19 20:26:17 +08:00
zwj
e7ee437bcf Update bt lib for ESP32-C3 and ESP32-S3
- Add config to set duplicate scan list refresh period
- overwrite the oldest device infor if the list is full
- Fixed duplicate scan period is not accurate
2022-12-19 20:24:26 +08:00
chenjianhua
e95d7202ce update bt lib for ESP32-C3 and ESP32-S3
1 fixed privacy error for directed adv
2 fixed multi periodic adv sync failed in air
2022-12-19 20:23:34 +08:00
zwj
c656e7ec07 Fixed some memory was not released after bluetooth controller initialization failed on ESP32-C3 and ESP32-S3 2022-12-19 20:22:58 +08:00
chenjianhua
0b8f0e5456 update bt-lib for ESP32
1 change default TX power to 9 dBm
2 fixed disconnect reason 0x1f (unspecified error)
3 fixed connection timeout due to terminate ind has not been acknowledged
2022-12-19 20:19:59 +08:00
zwj
5fff471b50 Fixed some memory was not released after bluetooth controller initialization failed on ESP32 2022-12-19 20:19:28 +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
liuning
8ba9f8a6cf ci: fix esp_phy_modem_deinit issue 2022-12-15 10:48:04 +08:00
liuning
7d16868e32 phy: only set phy_init_flag at power domain off, when all modems deinit 2022-12-15 10:45:09 +08:00
Island
eb08eb6578 Merge branch 'feature/esp32c2_optimize_npl_element_count_v5.0' into 'release/v5.0'
Feature/esp32c2 optimize npl element count v5.0

See merge request espressif/esp-idf!21563
2022-12-14 15:13:42 +08:00
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
zwl
e8555efe5b Renamed BAH 2022-12-13 18:05:00 +08:00
zwl
756dbc3f94 Fixed some occasional ble issues on ESP32H2BETA2 2022-12-13 17:50:14 +08:00
zwl
5cab9686bb Optimized the number of npl on ESP32C2 2022-12-13 17:50:00 +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
Jiang Jiang Jian
3fcbf617ec Merge branch 'rebase/remove_redundant_pm_lock_on_ble_v5.0' into 'release/v5.0'
Rebase/remove redundant pm lock on ble v5.0

See merge request espressif/esp-idf!21423
2022-12-12 14:49:37 +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
cjin
842349de6d ble: fix occasional assertion on ble rtc intr 2022-12-09 15:25:37 +08:00
zwl
de7e62fdfe Unify controller internal error code on ESP32-C2 2022-12-09 15:25:37 +08:00
cjin
5c481c5a08 ble: remove redundant pm lock on ble 2022-12-09 15:25:37 +08:00
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
2693c89c05 Merge branch 'bugfix/notify_gattc_to_gatts_v5.0' into 'release/v5.0'
NimBLE : Change GATT notify/indicate from gattc to gatts (v5.0)

See merge request espressif/esp-idf!20892
2022-12-08 20:36:25 +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
isha.pardikar@espressif.com
b1d87a41d2 NimBLE : Change GATT notify/indicate from gattc to gatts 2022-12-07 14:41:51 +05:30
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