Commit Graph
52 Commits
Author SHA1 Message Date
yangfeng cd93bd63b9 fix(bt): Fix compatibility with A2DP API legacy usage methods
- Modify the timing of API calls in the A2DP example
- Closes https://github.com/espressif/esp-idf/issues/18786
2026-08-07 08:04:07 +08:00
yangfeng 16f9983d0c fix(bt/example): Add log in the failure path for avrcp_ct_metadata example 2026-07-22 15:37:01 +08:00
yangfeng 895ca78695 fix(bt): Fix the pointer sbc_start_frame is not initialized
- Closes https://github.com/espressif/esp-idf/issues/18835
2026-07-21 16:10:40 +08:00
yangfeng d1ed5d3e84 fix(bt): Fix the high issues related to AVRCP from AI review report
- SDP/registration: handle SDP record creation and discovery failures safely
- AVRC stack: fix packet checks, fragment leaks, response build, and compile guards
- BTC AVRCP: fix return codes, connection state, metadata parsing, and memory leaks
- AVCTP: fix event passing, L2CAP conflicts, TX queue leaks, and disconnect handling
- Example: remove TG RN capability setup before initialization
2026-07-20 09:56:54 +08:00
yangfeng 85a3cebb7a fix(bt): Fix the critical issues related to AVRCP from AI review report
- recalculate len_left per attribute in avrc_bld_app_setting_text_rsp
- abort fragmented message reassembly when reassembly buffer alloc fails
2026-07-20 09:48:39 +08:00
yangfeng 3568ec1c45 fix(bt/bluedroid): Fix unchecked p_ctrl_cback and p_msg_cback in AVRC
Closes SEC-1186
2026-07-19 12:43:59 +08:00
yangfeng b78a508f66 fix(bt/bluedroid): Fix missing NULL check on p_cfg in AVDT_ReconfigReq
Closes SEC-1187
2026-07-19 12:43:59 +08:00
yangfeng c13a6f42aa fix(bt/example): Add print the device name to verify if it matches in HID example 2026-07-17 20:10:50 +08:00
yangfeng 83a970fa4c fix: Fix the HFP example fails to discovery target device 2026-07-02 15:08:22 +08:00
yangfeng fc2b420742 fix(bt): Fix the critical issues related to A2DP from AI review report
AVDT:
- Roll back CCB allocation when cmd/rsp queue creation fails
- Free media packet on invalid handle in AVDT_WriteReqOpt
- Zero-init timeout failure message before GETCAP callback
- Initialize lcid_tbl to 0xFF to avoid mapping to tc_tbl[0]
BTA/AVRCP:
- Use size_t for AVRC message copy buffer allocation
- Allocate before register in BTA_AvEnable
- Guard BTA_AvRegister callback when enable never completed
A2DP BTC/API:
- Default g_a2dp_on_deinit to true before profile init
- Add shutdown state check in btc_a2dp_sink_shutdown
- Guard A2DP source timer against freed dynamic local param
2026-06-29 15:17:40 +08:00
yangfeng 6e48173373 fix: Fix the critical issues of btu and bt_common from AI review report
- advance connect queue on synchronous connect_cb failure
- lock bta_alarm_hash_map in all BTA timer APIs
- free controller params after stack disable; cleanup on init fail
- handle BTE_InitStack failure and signal init future
- validate HCI remote name event length before parse
- drop stale L2CAP quick-timer alarm events
2026-06-29 14:49:41 +08:00
yangfeng b14b748d07 fix(bt): Fix the critical issues related to HFP from AI review report
HFP AG:
- Fix mSBC EV3 second-packet payload length calculation to prevent OOB read and infinite loop
- Add init/deinit guards in HF AG helper functions to avoid NULL deref
- Break SCO CI data loop when SCO is not open to prevent CPU starvation
- Guard BTM_FreeSCN(0) and reset SCN after free in bta_ag_del_records
- Use OI_UINT32 for mSBC decode frame length to avoid stack corruption
- Bound AT Dial command string copy to BTA_AG_AT_MAX_LEN
HFP Client:
- Use OI_UINT32 for mSBC decode frame length to avoid stack corruption
- Free SDP db, collision/AT timers and queued AT cmds before scb reset on disable
- Fix mSBC EV3 second-packet payload length calculation (same as AG)
- Reject pcm_resample input smaller than overlap window (96 bytes) on filtered path
- Break SCO CI data loop when SCO is not open to prevent CPU starvation
- Guard BTM_FreeSCN(0) and reset SCN after free in bta_hf_client_del_record
2026-06-25 14:30:24 +08:00
yangfeng cbe290c1d2 fix: Fix the potential stack overflow issue in the Classic Bluetooth example 2026-06-09 09:44:30 +08:00
yangfeng a9af2eee5c fix: Fix missing handling for HCI_ERR_CONNECTION_EXISTS
- Closes https://github.com/espressif/esp-idf/issues/18562
2026-06-05 14:20:43 +08:00
yangfeng fcdc85eedb fix(bt): fix HFP api and btc component issues reported by AI review 2026-05-18 15:19:11 +08:00
yangfeng 0ddfba47e3 fix(bt): fix HFP bta component issues reported by AI review 2026-05-18 14:28:37 +08:00
yangfeng 4772e323bb fix(bt/example): fix critical issues of classic_bt examples reported by AI review 2026-05-11 11:47:24 +08:00
yangfeng cea7c8502b fix(bt): fix A2DP stack component issues reported by AI review 2026-05-06 14:50:56 +08:00
yangfeng e7adfbb8b5 fix(bt): fix A2DP bta component issues reported by AI review 2026-05-06 14:50:56 +08:00
yangfeng 37560cbaf1 fix(bt): fix A2DP api and btc component issues reported by AI review 2026-05-06 14:50:56 +08:00
yangfeng 231300f785 fix(bt): fix AVRCP component issues reported by AI review 2026-04-16 17:18:55 +08:00
yangfeng e7d5f1bbe8 fix(bt): avoid deleting device record on partial transport cleanup 2026-04-07 12:03:29 +08:00
yangfeng 07fc9e3127 fix(bt/example): Fixed the HFP printing issue in the CI test 2026-03-30 11:52:23 +08:00
yangfeng d7fc14f15d feat(bt): Add APIs to control transmit power level
- API to read ACL real RSSI
- APIs to read/write tx power of inq/iscan/page/pscan/ACL
2026-03-16 16:00:25 +08:00
yangfeng 8e5a1ea31d fix(hid): Fixed HID repeatedly reporting the close event 2026-03-13 16:26:51 +08:00
yangfeng 2315b4b61f fix: Fix the relative path of esp_bredr_cfg.h 2026-03-09 19:17:02 +08:00
yangfeng 3cf0db55c3 fix(bt/bluedroid): Handle stream reconfiguration via stream close and re-open for A2DP ACP 2026-02-02 16:48:52 +08:00
yangfeng 0085dc5793 feat(bt): set BR/EDR max sync conn eff for Bluedroid HFP on ESP32
Closes https://github.com/espressif/esp-idf/issues/18060
2026-01-23 17:38:22 +08:00
yangfeng 586bd953db docs(bt): update Classic Bluetooth api reference of SDP 2026-01-12 11:04:08 +08:00
yangfeng 7faaa8e686 docs(bt): update Classic Bluetooth api reference of L2CAP 2026-01-12 11:04:07 +08:00
yangfeng 257f909204 docs(bt): update Classic Bluetooth api reference of HID Host 2026-01-12 11:04:07 +08:00
yangfeng a2542ba49b docs(bt): update Classic Bluetooth api reference of HID Device 2026-01-12 11:04:07 +08:00
yangfeng 9ac2fce9bd docs(bt): update Classic Bluetooth api reference of HFP AG 2026-01-12 11:04:07 +08:00
yangfeng 20c47f7191 docs(bt): update Classic Bluetooth api reference of HFP Client 2026-01-12 11:04:07 +08:00
yangfeng 9f17cbf831 docs(bt): update Classic Bluetooth api reference of HFP Define 2026-01-12 11:04:07 +08:00
yangfeng b6b22e8c45 docs(bt): update Classic Bluetooth api reference of SPP 2026-01-12 11:04:07 +08:00
yangfeng 5e3ee4b25a docs(bt): update Classic Bluetooth api reference of AVRCP 2026-01-12 11:04:07 +08:00
yangfeng 5345ed99ee docs(bt): update Classic Bluetooth api reference of A2DP 2026-01-12 11:04:07 +08:00
yangfeng cb7a1c5e8e docs(bt): update Classic Bluetooth api reference of GAP 2026-01-12 11:04:06 +08:00
yangfeng 040d4b948b refactor(examples/classic_bt): Add example tests for A2DP and AVRCP examples 2025-12-25 11:08:30 +08:00
yangfeng 898c087e51 docs: Add explanations for the A2DP sink stream and AVRCP examples
- Modify the path of A2DP sink example
2025-12-25 11:08:30 +08:00
yangfeng 2f794197c9 refactor: Refactor the example of the coexistence of A2DP sink and GATT service 2025-12-25 11:08:02 +08:00
yangfeng 52e364f346 refactor(examples/classic_bt): Refactor A2DP sink and AVRCP examples
- Add avrcp_ct_metadata example
- Add avrcp_absolute_volume example
- Add the example components about common code for a2dp sink and avrcp
2025-12-25 11:07:55 +08:00
yangfeng d07513df16 fix(bt/examples): Fixed test_bt_l2cap not finding ESP_SDP_CREATE_RECORD_COMP_EVT 2025-11-21 19:35:48 +08:00
yangfeng d36bef0eac fix(bt/example): Fixed hf_ag build error 2025-11-21 13:33:00 +08:00
yangfeng 4760c73488 fix: delete the file components/esp_coex/src/lib_printf.c 2025-10-17 19:38:29 +08:00
yangfeng aea9cb9cd9 fix(example/classic_bt): Fix potential stack overflow tasks 2025-10-14 16:27:29 +08:00
yangfeng 33517e535f fix(bt/bluedroid): Fix the boundary conditions when checking EIR data 2025-10-13 11:59:43 +08:00
yangfeng 36fac54400 fix(example/classic_bt): Fix the stack overflow of the SPPAppT and mouse_move_task tasks 2025-10-10 16:14:30 +08:00
yangfeng 861c7581ab fix(bt/btc): Fix array compared against 0 in btc_manage.c 2025-09-22 14:19:05 +08:00
yangfeng 7d09bca49f fix(esp_coex): Fix the issue of uninitialized pointer reading in coexist_printf 2025-09-22 14:18:42 +08:00
yangfeng d9fe6d8940 fix(bt/bluedroid): Prevent out-of-bounds access and add type check when resolving EIR data 2025-08-20 14:31:07 +08:00