Commit Graph
57 Commits
Author SHA1 Message Date
yangfeng e7864669f7 fix(bt/example): Add log in the failure path for avrcp_ct_metadata example 2026-07-22 15:36:34 +08:00
yangfeng b7d0ef96a7 fix(bt/bluedroid): Fix unchecked p_ctrl_cback and p_msg_cback in AVRC
Closes SEC-1186
2026-07-19 10:10:59 +08:00
yangfeng 31d51adf4f fix(bt/bluedroid): Fix missing NULL check on p_cfg in AVDT_ReconfigReq
Closes SEC-1187
2026-07-19 10:10:59 +08:00
yangfeng b195d90679 fix(bt): Fix the validation of AVRCP metadata attr_id in handle_rc_attributes_rsp 2026-07-19 10:08:59 +08:00
yangfeng 2019b64bf5 fix(bt/example): Add print the device name to verify if it matches in HID example 2026-07-08 15:28:15 +08:00
yangfeng 8650c4ef67 fix: Fix the HFP example fails to discovery target device 2026-07-02 15:04:55 +08:00
yangfeng be3696cf1c 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:08 +08:00
yangfeng 5d71464c87 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-06-25 14:51:32 +08:00
yangfeng 39c167b539 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-06-25 14:51:22 +08:00
yangfeng aac3cf0286 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
- Return bt_status_t from btc_hf_ag_audio_data_send to avoid silent buffer leak on SLC failure
- 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:
- Check osi_calloc result before use when reassembling split mSBC frames
- 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 12:12:48 +08:00
yangfeng f675732259 fix: Fix the incorrect connection of the same-name devices in the HFP example 2026-06-10 19:12:38 +08:00
yangfeng e5b167cef9 fix: Fix the potential stack overflow issue in the Classic Bluetooth example 2026-06-09 09:42:53 +08:00
yangfeng 5d8aec60a5 fix: Fix missing handling for HCI_ERR_CONNECTION_EXISTS
- Closes https://github.com/espressif/esp-idf/issues/18562
2026-06-05 14:17:55 +08:00
yangfeng e99b0372f7 fix: Remove the check for recv and send being NULL 2026-05-18 15:15:18 +08:00
yangfeng a60308f5e9 fix(bt/example): fix critical issues of classic_bt examples reported by AI review 2026-05-11 11:35:46 +08:00
yangfeng b068183cd8 fix(bt): fix HFP api and btc component issues reported by AI review 2026-04-20 10:17:47 +08:00
yangfeng 193c42bf7b fix(bt): fix HFP bta component issues reported by AI review 2026-04-20 10:17:47 +08:00
yangfeng f2972abbf3 fix(bt): fix A2DP stack component issues reported by AI review 2026-04-20 09:55:02 +08:00
yangfeng 4416c4c556 fix(bt): fix A2DP bta component issues reported by AI review 2026-04-20 09:55:02 +08:00
yangfeng 23b55f1b34 fix(bt): fix A2DP api and btc component issues reported by AI review 2026-04-20 09:55:00 +08:00
yangfeng db64849624 fix(bt): fix AVRCP component issues reported by AI review 2026-04-16 17:12:38 +08:00
yangfeng fd0a34056c fix(bt): avoid deleting device record on partial transport cleanup 2026-04-07 10:23:47 +08:00
yangfeng 071985838b fix(bt/example): Fixed the HFP printing issue in the CI test 2026-03-30 11:47:26 +08:00
yangfeng 5830830175 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-24 14:28:55 +08:00
yangfeng 97f5f5db7a fix(hid): Fixed HID repeatedly reporting the close event 2026-03-13 16:26:22 +08:00
yangfeng 7ef1e28723 change(bt/examples): Add the use of internal codec APIs in the hfp_hf example
- Closes https://github.com/espressif/esp-idf/issues/18261
2026-03-11 17:02:18 +08:00
yangfeng 0412575ba7 fix: Fix the relative path of esp_bredr_cfg.h 2026-03-06 19:57:53 +08:00
yangfeng f0703f11b6 fix(bt/bluedroid): Handle stream reconfiguration via stream close and re-open for A2DP ACP 2026-01-28 11:46:46 +08:00
yangfeng fb62b97ef6 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-19 15:29:22 +08:00
yangfeng c05ed8670f docs(bt): update Classic Bluetooth api reference of SDP 2026-01-12 10:27:24 +08:00
yangfeng e0e0562013 docs(bt): update Classic Bluetooth api reference of L2CAP 2026-01-12 10:27:24 +08:00
yangfeng 171f8ab06d docs(bt): update Classic Bluetooth api reference of HID Host 2026-01-12 10:27:24 +08:00
yangfeng 389e50abf4 docs(bt): update Classic Bluetooth api reference of HID Device 2026-01-12 10:27:24 +08:00
yangfeng 9e11c7ba00 docs(bt): update Classic Bluetooth api reference of HFP AG 2026-01-12 10:27:24 +08:00
yangfeng aab8605340 docs(bt): update Classic Bluetooth api reference of HFP Client 2026-01-12 10:27:24 +08:00
yangfeng 38ad274b6f docs(bt): update Classic Bluetooth api reference of HFP Define 2026-01-12 10:27:24 +08:00
yangfeng 9618f956cf docs(bt): update Classic Bluetooth api reference of SPP 2026-01-12 10:27:24 +08:00
yangfeng d3944162d8 docs(bt): update Classic Bluetooth api reference of AVRCP 2026-01-12 10:27:24 +08:00
yangfeng 5da8d6df53 docs(bt): update Classic Bluetooth api reference of A2DP 2026-01-12 10:27:21 +08:00
yangfeng b7050c9326 docs(bt): update Classic Bluetooth api reference of GAP 2026-01-12 10:25:55 +08:00
yangfeng ad4943ee24 fix(bt/example): Fixed hf_ag build error 2026-01-04 18:57:46 +08:00
yangfeng 59cd911a83 refactor(examples/classic_bt): Add example tests for A2DP and AVRCP examples 2025-12-30 16:54:30 +08:00
yangfeng 167f52d1ad docs: Add explanations for the A2DP sink stream and AVRCP examples
- Modify the path of A2DP sink example
2025-12-30 16:47:23 +08:00
yangfeng 809327f5fd refactor(examples/classic_bt): Add AVRCP cover art example with LCD display 2025-12-30 16:47:23 +08:00
yangfeng 7086632105 refactor(examples/classic_bt): Add common code for AVRCP cover art example 2025-12-30 16:47:23 +08:00
yangfeng 2136c80f1f refactor: Refactor the example of the coexistence of A2DP sink and GATT service 2025-12-30 16:47:23 +08:00
yangfeng 93bb32df75 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-30 16:47:23 +08:00
yangfeng cba983628d fix(bt/bluedroid): Fix index boundary check and function return in SEP registration
Closes https://github.com/espressif/esp-idf/issues/18041
2025-12-30 15:12:41 +08:00
yangfeng 46c10bb9f9 fix(bt/bluedroid): Fix the status judgment of the A2DP source registration SEP 2025-12-01 14:21:42 +08:00
yangfeng 14a67afb04 fix(bt/examples): Fixed test_bt_l2cap not finding ESP_SDP_CREATE_RECORD_COMP_EVT 2025-11-24 10:37:02 +08:00
yangfeng 677d24732a fix(esp_coex): fix explicit null dereferenced reported by coverity 2025-10-17 16:02:36 +08:00
yangfeng a5735b3252 fix(example/classic_bt): Fix potential stack overflow tasks 2025-10-14 16:38:13 +08:00
yangfeng 1f4e41d2ac fix(bt/bluedroid): Fix the boundary conditions when checking EIR data 2025-10-13 11:43:50 +08:00
yangfeng 9664e406cc fix(example/classic_bt): Fix the stack overflow of the SPPAppT and mouse_move_task tasks 2025-10-10 16:13:51 +08:00
yangfeng c2c23e620a fix(bt/btc): Fix array compared against 0 in btc_manage.c 2025-09-22 11:49:31 +08:00
yangfeng f37f57bbe1 fix(esp_coex): Fix the issue of uninitialized pointer reading in coexist_printf 2025-09-22 11:49:31 +08:00
yangfeng 1cd73de8d9 fix(bt/bluedroid): Prevent out-of-bounds access and add type check when resolving EIR data 2025-08-20 14:30:46 +08:00