Commit Graph

2214 Commits

Author SHA1 Message Date
Wang Meng Yang
eb95e67ce3 Merge branch 'feature/refactor_with_broker' into 'master'
feat(bt): refactor bt sdk with broker for esp32h4 and esp32s31

Closes BTQABR2023-778, BTQABR2023-873, BTQABR2023-863, BTQABR2023-864, BLERP-3016, BLERP-3020, BLERP-3022, BLERP-3023, BLERP-3024, BLERP-3025, BLERP-3026, BLERP-3027, BLERP-3028, BLERP-3029, BLERP-3030, BLERP-3031, BLERP-3032, BLERP-3033, BLERP-3034, BT-4440, WIFI-7353, IDFGH-17891, BT-4466, and BLERP-3035

See merge request espressif/esp-idf!51381
2026-08-13 20:00:08 +08:00
Wang Meng Yang
362fa6b483 Merge branch 'bugfix/strncpy_compilation_issue' into 'master'
fix(bluedroid): Fix the compilation issue of BCM_STRNCPY_S

See merge request espressif/esp-idf!51578
2026-08-13 17:23:32 +08:00
Rahul Tank
846ab1ee50 Merge branch 'bugfix/fix_kconfig_warnings' into 'master'
fix(nimble): move BTDM defaults to esp32

See merge request espressif/esp-idf!51682
2026-08-13 14:27:15 +05:30
Wang Meng Yang
462d942b51 Merge branch 'bugfix/a2dp_sink_nego_sbc' into 'master'
fix(bt): do not cap AVDTP Discover results by local SEP count

Closes IDFGH-17987

See merge request espressif/esp-idf!51241
2026-08-13 14:51:08 +08:00
Wang Meng Yang
a05486f3dc Merge branch 'fix/aireview_pbap' into 'master'
fix(bt_pbap): Fix some bugs in bluedroid PBAP

See merge request espressif/esp-idf!51331
2026-08-13 14:18:20 +08:00
ShenWeilong
c48a8567a1 feat(bt): refactor bt sdk with broker for esp32h4 and esp32s31 2026-08-13 11:07:06 +08:00
yangfeng
0f2681a484 fix(bluedroid): Fix the compilation issue of BCM_STRNCPY_S 2026-08-13 10:04:28 +08:00
yangfeng
c4da788094 fix(bt): do not cap AVDTP Discover results by local SEP count
- Closes https://github.com/espressif/esp-idf/issues/18848
2026-08-13 09:53:07 +08:00
Zhou Xiao
08252a2dd5 fix(bt): initialize BLE Log in host-only mode 2026-08-12 18:50:08 +08:00
hejiaxin
abfd193662 fix(bt_pbap): Fix some bugs in bluedroid PBAP
- Add sdp_seq to avoid p_ccb being free during sdp
- Changed some BTA_Pba functions to return non-void value
- Improve error catching and report
- Refactor bta_pba_client_response to avoid UAF problem
- Rearrange btc_pba_client init flag to avoid some disturbing bug
2026-08-12 16:00:11 +08:00
Rahul Tank
8c194a826c fix(nimble): move BTDM defaults to esp32
BTDM_CTRL_MODE_* exists only on classic ESP32. Shared
sdkconfig.defaults caused unknown-symbol warnings on other targets.
2026-08-12 11:43:44 +05:30
Rahul Tank
e4ad55e6b0 fix(nimble): Added change to stop adv before starting new adv 2026-08-11 15:08:27 +05:30
Rahul Tank
70f451fab7 fix(nimble): deliver PAwR peripheral connection events
Route legacy PAwR peripheral completion events through the active periodic
    sync callback and accept the controller-established link without normal
    advertising state.
2026-08-06 18:53:18 +05:30
Rahul Tank
fd7dacb9bc fix(nimble): Remove extra free to avoid double free 2026-08-06 15:16:02 +05:30
Rahul Tank
e64735cbf6 fix(nimble): Fixes for various NimBLE CVEs 2026-08-03 16:47:17 +05:30
Island
5371ee669b Merge branch 'feat/support_pawr_connect_evt' into 'master'
feat(ble/bluedroid): Support PAWR connection event

See merge request espressif/esp-idf!50612
2026-08-03 10:16:58 +08:00
zhiweijian
68dff5d798 fix(ble/bluedroid): Build LE event mask from host feature macros 2026-07-30 21:00:37 +08:00
zhiweijian
7da7fa42ac feat(ble/bluedroid): Support PAWR connection event 2026-07-30 21:00:26 +08:00
Rahul Tank
f992ff36f6 Merge branch 'bugfix/fix_pawr_conn_event' into 'master'
fix(nimble):  Deliver PAwR peripheral CONNECT via sync callback

Closes BLERP-2982

See merge request espressif/esp-idf!51042
2026-07-30 17:37:12 +05:30
Wang Meng Yang
744464271d Merge branch 'feat/bt_in_psram' into 'master'
feat(bluedroid): Add config to place btu and hci task stack in psram

Closes BT-4136

See merge request espressif/esp-idf!51002
2026-07-29 14:49:19 +08:00
Jiang Jiang Jian
139d968de0 Merge branch 'bugfix/sco_pkt_type_err' into 'master'
fix(bt/bluedroid): fixed incorrect eSCO packet type validation in secure connection mode

Closes BTQABR2023-849

See merge request espressif/esp-idf!51251
2026-07-29 14:41:23 +08:00
Rahul Tank
d485466018 fix(nimble): Deliver PAwR peripheral CONNECT via sync callback 2026-07-29 11:09:14 +05:30
Rahul Tank
a526754325 Merge branch 'feat/sbom_changes' into 'master'
fix(nimble): update sbom file with cve details

See merge request espressif/esp-idf!51152
2026-07-29 10:49:08 +05:30
Wang Meng Yang
82b28b2641 Merge branch 'fix/aireview_critical' into 'master'
fix: Fix some critical bugs in classic bt

See merge request espressif/esp-idf!50312
2026-07-29 11:41:36 +08:00
Rahul Tank
f6fcd6470c fix(nimble): update sbom file with cve details 2026-07-28 21:25:14 +05:30
Wang Meng Yang
d348f43f56 Merge branch 'bugfix/a2dp_api_init_check' into 'master'
fix(bt): Fix compatibility with A2DP API legacy usage methods

Closes IDFGH-17892

See merge request espressif/esp-idf!50611
2026-07-28 19:35:28 +08:00
Jin Cheng
c274987a7a fix(bt/bluedroid): fixed incorrect eSCO packet type validation under secure connection mode in BlueDroid 2026-07-28 15:21:29 +08:00
Rahul Tank
e08609e451 fix(nimble): Migrate to NimBLE 1.9.0 2026-07-27 14:14:35 +05:30
chenjianhua
0407893834 feat(bt): Add host-agnostic BT OSAL and shared BLE profile task
- Add bt_osal: event queues, mutexes, semaphores, callouts, etc.
- Add the shared BLE profile task and event queue
- Bring both up and tear them down in the host init/deinit paths
- Add unit tests for the OSAL and the profile task
2026-07-26 13:24:53 +08:00
Shreeyash Bhakare
c368c13d55 fix(nimble): Added security related fixes 2026-07-25 08:54:16 +05:30
Astha Verma
b360477e77 fix(nimble): Restore throughput after switching from LE Coded PHY 2026-07-24 16:36:44 +05:30
Wang Meng Yang
0185451ed1 Merge branch 'fix/bluedroid_aireview' into 'master'
Fix/bluedroid aireview

See merge request espressif/esp-idf!49972
2026-07-24 16:58:20 +08:00
Rahul Tank
d78d57c394 Merge branch 'bugfix/red_rem_feat_evt' into 'master'
Handle Read Remote Supported Feature failure

See merge request espressif/esp-idf!50243
2026-07-24 14:24:18 +05:30
hejiaxin
54cd579d3b fix(bt_stack): Fix some critical bugs in classic_bt stack
related: obex, smp, pbap, sdp, rfcomm, stack_dm

- Deinit function doesn't delete connection when OBEX_DYNAMIC_MEMORY is on
- Union tGOEPC_DATA sometimes is free by osi_free in some cases when it contains mtu_id
- Add correct free and return solution after fail
- Fix symbol mistake in mod calculation
- Fix pointer-related UAF problems and memory free problems
- Fix buffer overflows and out-of-bounds access
- Fix infinite loops triggered by integer overflow wraparound
- Fix double free
- Change layer_specific usage to avoid heap overflow
- Add some NULL check for pointers
- Fix sdp_db free function
- Fix state table mismatch
2026-07-23 15:46:38 +08:00
hejiaxin
b6b97b8e58 feat(bluedroid): Add config to place btu and hci task stack in psram
- Also adjust the osi_thread_stop implementation.
2026-07-23 14:40:37 +08:00
hejiaxin
1553b0ce67 fix(bt): Fix some bug in stm_sco.c
- Memory safety
- State machine & logic integrity
- Resource leaks
- Edge cases check
2026-07-23 10:56:32 +08:00
Wang Meng Yang
a151bc553a Merge branch 'bugfix/low_spp_throughput' into 'master'
change(bt/bluedroid): increased port low watermark of RFCOMM

Closes BTQABR2023-815

See merge request espressif/esp-idf!51031
2026-07-23 10:50:57 +08:00
liqigan
39b4b3f329 fix(bt/bluedroid): Fixed HID host reconnection bug and enabled load HID devices
Closes https://github.com/espressif/esp-idf/issues/18335
2026-07-22 14:41:20 +08:00
liqigan
540a4216df change(bt/bluedroid): Refactored HCI ACL datapath 2026-07-22 14:41:20 +08:00
liqigan
db12b3c279 change(bt/bluedroid): Refactored HID host datapath 2026-07-22 14:41:18 +08:00
Wang Meng Yang
bc428c91d5 Merge branch 'bugfix/bredr_critical_bugs' into 'master'
bugfix: fix issues raised from AI review

See merge request espressif/esp-idf!49755
2026-07-22 14:31:28 +08:00
Astha Verma
c653c09b9e fix(nimble): Handle Read Remote Supported Features failure correctly 2026-07-22 11:58:57 +05:30
Jin Cheng
1336f62653 change(bt/bluedroid): increased port low watermark of RFCOMM
When PORT_RX_BUF_LOW_WM is too low, RFCOMM replenishes credits only
after receiving a relatively large number of packets, which may cause
the peer to exhaust its credits and enter a stop-and-wait state.
Increase the low watermark to replenish credits more promptly and
reduce the likelihood of the peer stalling while waiting for additional
credits.
2026-07-21 19:29:08 +08:00
Island
c3083dfae5 Merge branch 'opt/bluedroid_trace_none_without_ble_log_host' into 'master'
change(ble/bluedroid): disable host trace logs when BLE Log host is off

See merge request espressif/esp-idf!50902
2026-07-21 10:39:36 +08:00
Island
30c632bebb Merge branch 'bugfix/fix_bluedroid_set_rand_addr_during_scan' into 'master'
fix(ble/bluedroid): report set rand addr result on HCI complete

Closes BLERP-2965

See merge request espressif/esp-idf!50663
2026-07-21 10:39:27 +08:00
zhanghaipeng
1f8f935e3f change(ble/bluedroid): disable host trace logs when BLE Log host is off
Default all Bluedroid layer trace levels to NONE when BLE async log
is enabled without BLE_LOG_HOST_LOG.
2026-07-20 15:43:27 +08:00
Wang Meng Yang
0a43435b7b Merge branch 'fix/ble_log_compression_add_local_header_file' into 'master'
feat(ble_log): mirror local compression headers

See merge request espressif/esp-idf!50870
2026-07-20 11:47:44 +08:00
yangfeng
94b05ceee6 fix(bt): Fix compatibility with A2DP API legacy usage methods
- Modify the timing of API calls in the A2DP example
- Add a2dp_stream_aac test case
- Closes https://github.com/espressif/esp-idf/issues/18786
2026-07-20 11:35:33 +08:00
Rahul Tank
4e3756889e Merge branch 'bugfix/add_dis_ieee_udi_to_config' into 'master'
fix(nimble): Add option to disable IEEE and UDI Characteristic in DIS

See merge request espressif/esp-idf!50254
2026-07-18 09:31:15 +05:30
Wang Meng Yang
c1eb1922bb Merge branch 'bugfix/hid_host_oob_read' into 'master'
fix(bt/bluedroid): fixed possible 1-byte OOB read in bta_hh_ctrl_dat_act

Closes SEC-786

See merge request espressif/esp-idf!50703
2026-07-17 20:06:45 +08:00