Commit Graph

3086 Commits

Author SHA1 Message Date
Wang Meng Yang
a6abcfb990 Merge branch 'test/bqb_test_bt_classic_sdp_v5.0' into 'release/v5.0'
feat(bt/bluedroid): Add language base attr list to SDP record for BQB test (backport v5.0)

See merge request espressif/esp-idf!25930
2023-09-18 11:06:52 +08:00
Wang Meng Yang
b212ab6176 Merge branch 'test/bqb_test_bt_classic_hid_v5.0' into 'release/v5.0'
feat(bt/bqb): Add setting local di record function for specific hid case of bqb auto test (backport v5.0)

See merge request espressif/esp-idf!25834
2023-09-18 11:05:35 +08:00
Jin Cheng
11ecd9e5cf fix(bt/bluedroid): Fixed incorrect arrangement in type esp_hf_dial_type_t 2023-09-18 11:04:19 +08:00
Jin Cheng
89bfe3e352 change(bt/bluedroid): Added line information printing when error occurs CHECK_HF_IDX 2023-09-18 11:04:19 +08:00
Jin Cheng
03d9d39ec7 fix(bt/bluedroid): Fixed the issue of uninitialized parameters in event BTA_AG_WBS_EVT 2023-09-18 11:04:19 +08:00
Wang Meng Yang
1b4464a6be Merge branch 'test/bqb_test_bt_classic_a2dp_v5.0' into 'release/v5.0'
feat(bt/bqb): Add setting SBC encoder and reject invalid codec type support for a2dp BQB test (backport v5.0)

See merge request espressif/esp-idf!25685
2023-09-18 11:02:56 +08:00
Wang Meng Yang
6314d3540b Merge branch 'bugfix/hf_ag_report_event_with_null_bdaddr_v5.0' into 'release/v5.0'
Bugfix/fixed bugs of HFP in BlueDroid (v5.0)

See merge request espressif/esp-idf!25828
2023-09-18 10:52:01 +08:00
zhanghaipeng
b0d4fb3b35 fix(bt/bluedroid): Fix memory no free issue when disconneting for mesh 2023-09-13 18:17:56 +08:00
luomanruo
79b2773102 change(ble): update controller log print interface 2023-09-12 17:40:50 +08:00
wanglai@espressif.com
a02cb1ebc0 feat(bt/bluedroid): Add language base attr list to SDP record for BQB test 2023-09-12 13:04:33 +08:00
liqigan
4b7f77a769 change(bt/bluedroid): Optimize HIDD sending interrupt report behavior
HID device is allowed to trigger reconnection by sending an interrupt
report. When reconnection is in progress, no more interrupt report can
be sent until the procedure is accomplished.
2023-09-11 20:14:25 +08:00
cjin
e741807b5a ble: support esp32c2 wakeup overhead 2023-09-08 17:03:06 +08:00
zwl
dc417eeab9 feat(ble): enable adv report flow control on esp32c2 2023-09-07 16:38:03 +08:00
zwl
99197d4a02 feat(ble): supported trace function and adv report flow control on esp32c2 2023-09-07 16:30:20 +08:00
wanglai@espressif.com
60b4e1f998 feat(bt/bluedroid): Add setting local di record function for bt classic hid device bqb test 2023-09-07 14:20:56 +08:00
chenqingqing
fbf196a7f9 feat(bt/api): Add new apis for hfp to get the numbers of packet status received and sent 2023-09-07 11:37:09 +08:00
Jin Cheng
54fecc5561 fix(bt/bluedroid): Deleted the redundant 'memset' in btc_hf_cb_handler 2023-09-07 10:59:06 +08:00
Jin Cheng
5dc39ebf5a docs(bt/bluedroid): Changed the description of esp_hf_client_reject_call 2023-09-07 10:56:11 +08:00
Jin Cheng
fbf2d5d5d9 fix(bt/bluedroid): Fixed wrong indexes of HF-AG indicators 2023-09-07 10:56:11 +08:00
Jin Cheng
774056bf62 fix(bt/bluedroid): Added peer Bluetooth device address into HF callback parameters 2023-09-07 10:56:11 +08:00
Jin Cheng
e1864ca1e8 fix(bt/bluedroid): Changed log level from WARNING to DEBUG in bta_ag_sco_read_cback 2023-09-07 10:56:11 +08:00
Jin Cheng
e36e0f5233 fix(bt/bluedroid): Fixed wrong code logic in 'AT+CIND?' of HFP 2023-09-07 10:56:11 +08:00
Jin Cheng
f0ed003d91 fix(bt/bluedroid): Fixed errors in parsing ATD command in HFP AG 2023-09-07 10:56:11 +08:00
Jin Cheng
fb14ef7c24 fix(bt/bluedroid): Fixed NULL Bluetooth device address in HF-AG events was reported to application layer 2023-09-07 10:56:11 +08:00
wanglai@espressif.com
c95c3ba38e feat(bt/bluedroid): Set SBC encoder as PTS required for BQB test.
1: set SBC encoder as PTS required. The encoder is effective first.
But it changes to default after media start.
2023-09-05 01:55:37 +00:00
wanglai@espressif.com
14b1290a20 fix(bt/bluedroid): Reject SET CONFIGURATION command with error code INVALID_CODEC_TYPE.
1: reset p_scb->avdt_handle in cleanup function.
2: cancel comparing p_scb->codec_type and p_scb->seps[xx].codec_type to
   send the error INVALID_CODEC_TYPE.
2023-09-05 01:55:37 +00:00
linruihao
7e4a64a9ab fix(bt/controller): Fixed some HCI commands parameter check
Fixed HCI_Change_Connection_Packet_Type Command parameter check
Fixed HCI_Accpet_Synchronous_Connection_Request Command parameter check
Fixed HCI_Set_Connectionless_Peripheral_Broadcast_Data Command parameter check
2023-09-04 11:36:29 +08:00
chenjianhua
11e8970a45 bluedroid: add GATT read multi variable API and evt 2023-08-30 15:17:56 +08:00
chenjianhua
0315b24514 bluedroid: add periodic adv sync transfer API and EVT 2023-08-30 15:17:47 +08:00
chenjianhua
630154ed2d bluedroid: support gatts show local database 2023-08-30 15:17:38 +08:00
chenjianhua
3100841f64 bluedroid: fixed GATT multi notify and robust caching 2023-08-30 15:17:30 +08:00
chenjianhua
285e86ad04 bluedroid: add config for GAP service and periodic adv sync transfer 2023-08-30 15:17:14 +08:00
chenjianhua
0b76c3615e bluedroid: add internal GATT API for PTS 2023-08-30 15:15:23 +08:00
chenjianhua
69b8b587c9 bluedroid: add config for robust caching and RPA timeout 2023-08-30 15:15:09 +08:00
chenjianhua
42a1d94830 bluedroid: support GATT robust caching feature 2023-08-30 15:13:03 +08:00
chenjianhua
1ce00f01ca bluedroid: support GATT services database hash calculate 2023-08-30 15:12:52 +08:00
chenjianhua
ed34a2b500 bluedroid: support periodic advertising sync transfer cmd 2023-08-30 15:12:41 +08:00
chenjianhua
52e3e684e0 bluedroid: support LE L2CAP credit based connection 2023-08-30 15:12:12 +08:00
chenjianhua
4145099bdc bluedroid: support oob pairing for smp secure connection 2023-08-30 15:11:34 +08:00
Island
7065c87963 Merge branch 'bugfix/ble_hci_issues_chain_mbuf_v5.0' into 'release/v5.0'
fix hci issues when chain mbuf exists

See merge request espressif/esp-idf!25533
2023-08-29 10:27:40 +08:00
Rahul Tank
4095399436 feat(nimble): Added support for high duty adv interval 2023-08-25 12:06:50 +05:30
luomanruo
eb8a741be2 ble: Assert when getting memory fail 2023-08-25 12:27:05 +08:00
luomanruo
0861bf4c55 ble: Fix hci issues when chain mbuf exists 2023-08-25 12:26:50 +08:00
baohongde
d82a2e2eec feat(bt/bluedroid): Add option whether to include device name in extended inquiry response 2023-08-24 19:36:26 +08:00
Jiang Jiang Jian
61ef154a60 Merge branch 'bugfix/v5.0_ble_issues_bugfix_c2' into 'release/v5.0'
Bugfix/v5.0 ble issues bugfix c2

See merge request espressif/esp-idf!25437
2023-08-24 14:13:26 +08:00
luomanruo
ee1c3119a7 ble: update btlib to f9db7b90, some esp32c2 issues bugfixed 2023-08-23 10:23:02 +08:00
luomanruo
9806a1e7e2 update btlib to f9db7b90, some esp32c2 issues bugfixed 2023-08-21 11:52:56 +08:00
Jin Cheng
849ab66f5f fix(bt): Increased SDP maximum connections to avoid connection exhausted 2023-08-21 11:20:48 +08:00
Jiang Jiang Jian
01871aa91b Merge branch 'backport_v5.0' into 'release/v5.0'
fix(bt): Fix ble periodic advertising data length 0 error(backport v5.0)

See merge request espressif/esp-idf!25007
2023-08-15 11:04:47 +08:00
Wang Meng Yang
16aef4bbee Merge branch 'bugfix/remove_deprecated_err_code_v5.0' into 'release/v5.0'
fix(bt): Removed an incorrectly defined HCI error code (5.0)

See merge request espressif/esp-idf!25289
2023-08-14 14:56:10 +08:00
Island
9523b57c8d Merge branch 'bugfix/fix_current_issue_after_ble_init_5.0' into 'release/v5.0'
ble: move phy enabled/disable to controller enable/disable

See merge request espressif/esp-idf!25082
2023-08-14 13:11:36 +08:00
satish.solanke
c7cda1c489 Fix the mem corruption 2023-08-10 14:30:32 +00:00
Rahul Tank
52890aeb22 Merge branch 'bugix/nimble_port_run_crash_v5.0' into 'release/v5.0'
fix(nimble): Added checks before accessing event pointers (v5.0)

See merge request espressif/esp-idf!25267
2023-08-09 22:57:20 +08:00
Wang Meng Yang
e6c1c5cf6d Merge branch 'bugfix/role_switch_enc_mode_lmp_timeout_v5.0' into 'release/v5.0'
fix(bt/controller): Fix disconnection due to lmp messages not being processed by both sides(v5.0)

See merge request espressif/esp-idf!25203
2023-08-09 19:20:02 +08:00
Jin Cheng
48a31a8a51 fix(bt): Removed an incorrectly defined HCI error code 2023-08-09 17:32:41 +08:00
isha.pardikar@espressif.com
b412b1f2c9 fix(nimble): Added checks before accessing event pointers 2023-08-08 15:47:40 +05:30
cjin
42677134dc ble: move phy enabled/disable to controller enable/disable 2023-08-08 14:10:10 +08:00
Rahul Tank
b9c34e83f8 feat(mesh): Add support for Duplicate Exception list update VSC for
Nimble
2023-08-07 20:00:14 +05:30
Wang Meng Yang
bd23db594b Merge branch 'test/bqb_test_bt_classic_spp_rfcomm_v5.0' into 'release/v5.0'
feat(bt/bqb): Add BQB enabling and rfcomm msc command sending support (backport v5.0)

See merge request espressif/esp-idf!25098
2023-08-07 11:35:28 +08:00
xiongweichao
4fd3eb28d6 fix(bt/controller): Fix disconnection due to lmp messages not being processed by both sides
The master sent lmp_enc_mode_req, and the slave sent lmp_switch_req.
However, both sides failed to handle the LMP message, resulting in LMP timeout.
2023-08-04 11:04:46 +08:00
Rahul Tank
f34f4272a0 fix (nimble): Add check to set length only if data is valid in periodic adv 2023-08-03 14:45:47 +05:30
Island
6531a415f2 Merge branch 'ble_mesh/esp32c6_BLEQABR23-266v5.0' into 'release/v5.0'
ble mesh: stack: return error when scanning failed to be enabled(v5.0)

See merge request espressif/esp-idf!24774
2023-08-02 21:07:21 +08:00
Wu Meng Shi
e81d8f8329 ble mesh: stack: return error when scanning failed to be enabled(v5.0) 2023-08-02 21:07:20 +08:00
Island
6db7b11d7e Merge branch 'doc/c2_5.0' into 'release/v5.0'
c2 5.0 doc, header files re-organized

See merge request espressif/esp-idf!25112
2023-08-01 23:11:33 +08:00
luomanruo
3fd6493ade c2 5.0 doc, header files re-organized 2023-08-01 14:43:11 +08:00
wanglai@espressif.com
f5ad81e04a fix(bt/bqb): Modify BQB related configurations 2023-07-31 18:18:29 +08:00
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
aff7ff1a9f docs(bt): Organize header files for esp32c3 and esp32s3 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
isha.pardikar@espressif.com
71f5dc4973 NimBLE: Added health thermometer profile 2023-07-17 11:24:04 +05:30
Rahul Tank
c68e7eab06 Merge branch 'bugfix/fix_config_option_v5.0' into 'release/v5.0'
Nimble: Fixed setting macro values based on selected configuration (v5.0)

See merge request espressif/esp-idf!24138
2023-07-14 21:23:51 +08:00
Island
168f2adc28 Merge branch 'update/ble_mesh_debug_log_level_update_v5.0' into 'release/v5.0'
update(ble_mesh: stack): Update provisioning bearer check debug log to INFO level (v5.0)

See merge request espressif/esp-idf!24770
2023-07-14 16:56:11 +08:00
Rahul Tank
bc2772819d fix (nimble): Fixed setting macro values based on selected configuration 2023-07-14 11:51:14 +05:30
zhanghaipeng
e8810e86fc fix(bt): Fix the issue of not printing the Bluetooth MAC address for ESP32
- Add a log statement to print the Bluetooth MAC address
2023-07-13 16:42:48 +08:00
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
Liu Linyan
c6d190e568 update(ble_mesh: stack): Update provisioning bearer check debug log to INFO level 2023-07-13 14:39:01 +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
Jiang Jiang Jian
2173ff9cc0 Merge branch 'bugfix/resume_ext_scan_pti_in_time_v5.0' into 'release/v5.0'
bt: fix the issue that BLE scan uses high priority incorrectly and causes Wi-Fi unable to work normally on ESP32-C3 and ESP32-S3(backport v5.0)

See merge request espressif/esp-idf!24404
2023-07-12 10:51:54 +08:00
Rahul Tank
82ce7dc165 Merge branch 'feature/expose_addr_resolv_out_stack_v5.0' into 'release/v5.0'
Nimble:Added change to expose addr resolution API outside stack_v5.0

See merge request espressif/esp-idf!23247
2023-07-12 04:21:32 +08:00
wangmengyang
9b96d5bd96 bt-coexist: fix the issue for BLE scan in using whitelist that scan PTI keeps high and not resumes after reception of ADV_EXT_IND but no AUX_ADV_IND followed on ESP32-C3 and ESP32-S3, which causes Wi-Fi unable to work normally 2023-07-11 22:11:04 +08:00
Island
10c1004629 Merge branch 'feature/update_ble_libs_5.0' into 'release/v5.0'
ble: Updated the libbt for ESP32-C2

See merge request espressif/esp-idf!24652
2023-07-11 21:40:05 +08:00
xiongweichao
d666536a21 change(bt/Bluedroid): Update AVRCP version to 1.5 2023-07-11 11:43:59 +00:00
xiongweichao
1c5619b738 bt: Fixed some bluetooth bugs
1. Fixed LC_AFH_UPDATE_IND  has not benn processed causing memory exhaustion
2. Fixed no free elt in prog push
3. Fixed disconnect due to sniff with error Dsniff
4. Fixed the problem that the host continued to send ACL data to the controller after disconnection, which caused the connection to fail again
2023-07-11 19:37:21 +08:00
chenjianhua
5d7b60ec5c Update bt-lib for esp32
- Fixed memory leak when setting adv data
2023-07-11 19:37:17 +08: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
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