Commit Graph
41 Commits
Author SHA1 Message Date
yangfeng 1b62ff0703 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:28:17 +08:00
yangfeng 6f25834da2 fix: Fix the potential stack overflow issue in the Classic Bluetooth example 2026-06-09 09:44:24 +08:00
yangfeng 634f171e68 fix: Fix missing handling for HCI_ERR_CONNECTION_EXISTS
- Closes https://github.com/espressif/esp-idf/issues/18562
2026-06-05 14:18:12 +08:00
yangfeng a20689f419 fix: Remove the check for recv and send being NULL 2026-05-19 09:45:27 +08:00
yangfeng b8e118c3bf fix(bt/example): fix critical issues of classic_bt examples reported by AI review 2026-05-11 11:46:53 +08:00
yangfeng fffb3adf3c fix(bt): fix HFP api and btc component issues reported by AI review 2026-04-27 09:54:32 +08:00
yangfeng b13e110097 fix(bt): fix HFP bta component issues reported by AI review 2026-04-27 09:54:32 +08:00
yangfeng 9ac2f9864f fix(bt): fix A2DP stack component issues reported by AI review 2026-04-24 19:21:19 +08:00
yangfeng d4752ccdd5 fix(bt): fix A2DP bta component issues reported by AI review 2026-04-24 19:21:19 +08:00
yangfeng e812f543d1 fix(bt): fix A2DP api and btc component issues reported by AI review 2026-04-23 16:19:39 +08:00
yangfeng 8d01ad7f7f fix(bt): fix AVRCP component issues reported by AI review 2026-04-17 10:04:28 +08:00
yangfeng 22405337e3 fix(bt): avoid deleting device record on partial transport cleanup 2026-04-07 12:00:24 +08:00
yangfeng 8ae5176464 fix(bt/example): Fixed the HFP printing issue in the CI test 2026-03-30 11:51:02 +08:00
yangfeng 4efd748983 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 19:56:38 +08:00
yangfeng d5ebefbe0e fix(hid): Fixed HID repeatedly reporting the close event 2026-03-13 16:26:41 +08:00
yangfeng 0e518934d2 fix: Fix the relative path of esp_bredr_cfg.h 2026-03-02 09:45:49 +08:00
yangfeng 7d10416565 fix(bt/bluedroid): Handle stream reconfiguration via stream close and re-open for A2DP ACP 2026-02-02 16:48:12 +08:00
yangfeng 1700b91a72 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:32:13 +08:00
yangfeng fe976dec92 docs(bt): update Classic Bluetooth api reference of SDP 2026-01-12 10:59:10 +08:00
yangfeng dea96e254f docs(bt): update Classic Bluetooth api reference of L2CAP 2026-01-12 10:59:08 +08:00
yangfeng b0929670cf docs(bt): update Classic Bluetooth api reference of HID Host 2026-01-12 10:58:30 +08:00
yangfeng adb163d9b3 docs(bt): update Classic Bluetooth api reference of HID Device 2026-01-12 10:58:30 +08:00
yangfeng 27ad163c7f docs(bt): update Classic Bluetooth api reference of HFP AG 2026-01-12 10:58:30 +08:00
yangfeng 51f1f0207f docs(bt): update Classic Bluetooth api reference of HFP Client 2026-01-12 10:58:30 +08:00
yangfeng fcb0242dca docs(bt): update Classic Bluetooth api reference of HFP Define 2026-01-12 10:58:30 +08:00
yangfeng 97065c7bb6 docs(bt): update Classic Bluetooth api reference of SPP 2026-01-12 10:58:30 +08:00
yangfeng 53e596c06d docs(bt): update Classic Bluetooth api reference of AVRCP 2026-01-12 10:58:29 +08:00
yangfeng e3e958c9b1 docs(bt): update Classic Bluetooth api reference of A2DP 2026-01-12 10:56:54 +08:00
yangfeng 3455af6904 docs(bt): update Classic Bluetooth api reference of GAP 2026-01-12 10:55:22 +08:00
yangfeng 76a279798d refactor(examples/classic_bt): Add example tests for A2DP and AVRCP examples 2025-12-25 11:01:59 +08:00
yangfeng 9bd5f968bf docs: Add explanations for the A2DP sink stream and AVRCP examples
- Modify the path of A2DP sink example
2025-12-25 11:01:59 +08:00
yangfeng 41ee112dc1 refactor: Refactor the example of the coexistence of A2DP sink and GATT service 2025-12-25 11:01:53 +08:00
yangfeng 3298da92e1 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 10:59:57 +08:00
yangfeng 12ea0d186b fix(bt/example): Fixed hf_ag build error 2025-12-09 14:21:58 +08:00
yangfeng 18c3237449 fix(bt/examples): Fixed test_bt_l2cap not finding ESP_SDP_CREATE_RECORD_COMP_EVT 2025-11-21 19:33:08 +08:00
yangfeng e3f0e1ee07 fix(esp_coex): Fix the issue of uninitialized pointer reading in coexist_printf 2025-10-20 11:05:38 +08:00
yangfeng cc935d0440 fix(bt/btc): Fix array compared against 0 in btc_manage.c 2025-10-20 10:46:13 +08:00
yangfeng 927c0cbe21 fix(example/classic_bt): Fix potential stack overflow tasks 2025-10-14 16:08:04 +08:00
yangfeng d94d3e67ca fix(bt/bluedroid): Fix the boundary conditions when checking EIR data 2025-10-13 11:58:51 +08:00
yangfeng 5c0c9d4c0e fix(example/classic_bt): Fix the stack overflow of the SPPAppT and mouse_move_task tasks 2025-10-10 16:14:20 +08:00
yangfeng 47c41de0b2 fix(bt/bluedroid): Prevent out-of-bounds access and add type check when resolving EIR data 2025-08-20 14:30:59 +08:00