Commit Graph

746 Commits

Author SHA1 Message Date
wanglai@espressif.com
543a0aaa25 feat(bt): Add BQB enabling and rfcomm msc command sending support
1: add the CONFIG_BT_BQB_ENABLED for some functions of bqb test.
2: add bqb_rfc_send_msc_cmd function to send rfcomm msc command with
   only address arg input.
2023-07-31 17:58:01 +08:00
darshan.dobariya
9fa4ff5300 fix(nimble): Update Menuconfig option to remove separate 5.2 feature option 2023-07-27 14:38:53 +05:30
zhanghaipeng
cb85b7b7a7 fix(bt): Fix bug with address resolution enabling during non-connected activities 2023-07-26 16:39:06 +08:00
zhanghaipeng
0e9974a918 fix(bt): Fix ble periodic advertising data length 0 error
- Fixed issues about data length 0 when set ext adv data,ext scan rsp data and periodic adv data
2023-07-26 16:39:06 +08:00
Rahul Tank
4d301ef3a2 fix(nimble): Update connection type in reattempt connection code
Added change to set connection type correctly and clear array when it is
    full in reattempt connection flow
2023-07-20 09:37:34 +05:30
Jiang Jiang Jian
55976a5bd7 Merge branch 'bugfix/fix_some_bluedroid_bugs_v5.0' into 'release/v5.0'
Fixed some bluedroid bugs (backport v5.0)

See merge request espressif/esp-idf!24861
2023-07-19 17:07:33 +08:00
Rahul Tank
baecf8d44f Merge branch 'feature/services_health_therm_v5.0' into 'release/v5.0'
NimBLE: Added health thermometer profile (v5.0)

See merge request espressif/esp-idf!24834
2023-07-19 15:13:20 +08:00
chenjianhua
902c6973f1 fix(bt/bluedroid): Fix memory leak of gattc cache upon disconnection 2023-07-18 11:44:43 +08:00
chenjianhua
7ca9ca6f90 bluedroid: fixed compile warning when optimize for performance 2023-07-18 11:41:44 +08:00
Jiang Jiang Jian
1853b46a37 Merge branch 'backport_v5.0' into 'release/v5.0'
fix(bt): Fix the issue of not printing the Bluetooth MAC address for ESP32(backport v5.0)

See merge request espressif/esp-idf!24779
2023-07-18 10:52:39 +08:00
isha.pardikar@espressif.com
642aba7c03 feat (Nimble): Added Health Thermometer as a service 2023-07-17 14:20:05 +05:30
Rahul Tank
bc2772819d fix (nimble): Fixed setting macro values based on selected configuration 2023-07-14 11:51:14 +05:30
zhanghaipeng
cddca1adf4 fix(bt): Fix ble advertising data length 0 error
- Fixed an issue where the BLE advertisement length of 0 was causing an error
2023-07-13 16:42:48 +08:00
Rahul Tank
aa4635e52f Nimble: Removed the extra status field in the enh read transmit power level 2023-07-13 10:48:31 +05:30
Rahul Tank
ff9b9583ab Merge branch 'bugfix/fix_exception_in_wifi_prov_v5.0' into 'release/v5.0'
Nimble: Increase the number of semaphore count for allocation (v5.0)

See merge request espressif/esp-idf!24470
2023-07-13 13:00:35 +08:00
Jiang Jiang Jian
7c149c9fcc Merge branch 'feature/update_avrcp_v1.5_v5.0' into 'release/v5.0'
change(bt/Bluedroid): Update AVRCP version to 1.5(v5.0)

See merge request espressif/esp-idf!24583
2023-07-13 09:48:16 +08:00
Jiang Jiang Jian
d3031ddddc Merge branch 'bugfix/fix_some_bt_controller_bug_v5.0' into 'release/v5.0'
component_bt:Fixed some bluetooth bugs(v5.0)

See merge request espressif/esp-idf!24711
2023-07-13 07:52:21 +08:00
Rahul Tank
fdfe75a1fd Nimble: Increase the number of semaphore count to allow more semaphore
allocation

       Also updated the return value check for sem / mutex init to catch
allocation failure
2023-07-12 15:30:21 +05:30
xiongweichao
d666536a21 change(bt/Bluedroid): Update AVRCP version to 1.5 2023-07-11 11:43:59 +00:00
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
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
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
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
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
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
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
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
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
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
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
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
b9e9a60c4f Fixed ATT Ignore wrong response error 2023-05-11 02:45:56 +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
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
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