Commit Graph

3267 Commits

Author SHA1 Message Date
Jin Cheng
e4ab4499b0 fix(bt/bluedroid): Added some argument check in APIs of HFP AG 2023-11-20 11:59:01 +08:00
Rahul Tank
7e21aff12c fix(nimble): Added check to validate allowed random address 2023-11-20 08:19:38 +05:30
Abhinav Kudnar
c91c8a1197 fix(nimble): Handled crash caused due to incorrect use of reattempt_idx 2023-11-18 17:16:17 +05:30
Island
4023a22512 Merge branch 'bugfix/fix_some_ble_bugs_v5.1' into 'release/v5.1'
Fixed some BLE bugs (backport v5.1)

See merge request espressif/esp-idf!27196
2023-11-17 20:21:57 +08:00
Island
7f63951872 Merge branch 'backport/fix_ble_scan_rsp_v5.1' into 'release/v5.1'
Backport/fix ble scan rsp v5.1(backport v5.1)

See merge request espressif/esp-idf!27007
2023-11-17 18:18:29 +08:00
Ilia Lutchenko
71d08e38db feat(bt/bluedroid): Add new APIs for 32 and 128-bit UUIDs
1. Added new API functions that can add 32 and 128-bit UUID to the EIR data
when these UUIDs are set in SDP.
The old functions that only work with 16-bit UUIDs have been left
unchanged to avoid having to redo code that already utilizes them.

2. Fixed bug with zero handler return in btc_sdp.c
sdp_create_record.handle in tBTA_SDP struct wasn't saved before.
Because of it Bluetooth stack always returned zero handler to
application callback.

Closes https://github.com/espressif/esp-idf/issues/11529
2023-11-17 15:57:28 +08:00
Jin Cheng
ac4ee1d2d6 fix(bt/bluedroid): Fix the crash of invalid access to released resources
It is caused by the delayed timer is alarmed after esp_spp_deinit.
2023-11-17 10:38:55 +08:00
chenjianhua
b862072372 fix(bt): Update bt lib for ESP32-C3 and ESP32-S3(2758518)
- Fixed power state setting when entering modem sleep
2023-11-16 16:40:31 +08:00
chenjianhua
981d3d2336 Update bt lib for ESP32-C3 and ESP32-S3(f817304)
- Support get the range of TX power level
- Support clear legacy adv using vendor hci
2023-11-16 16:40:18 +08:00
zhanghaipeng
a6de577573 fix(ble/controller): Fix bugs in setting adv data and scan response data 2023-11-16 16:40:04 +08:00
chenjianhua
565c2e9d92 update esp32 bt-lib (6458728)
- Modify mesh proxy solic uuid to 0x18590303
- Support get the range of TX power level
- Support clear legacy adv using vendor hci
2023-11-16 16:39:46 +08:00
chenjianhua
aaf6f7433d feat(bt/bluedroid): support clear legacy advertising 2023-11-16 16:39:33 +08:00
linruihao
11d32279a0 fix(esp_coex): Fix deprecated configuration options not rename to new one 2023-11-16 03:16:15 +00:00
linruihao
f57826e239 fix(esp_coex): Fix dependency errors in coexist configuration 2023-11-16 03:16:15 +00:00
zhanghaipeng
fd478346fb fix(bt/bluedroid): Fix BLE remove bond list status 2023-11-15 07:18:04 +00:00
zhiweijian
e01f4c4d24 fix(ble/bluedroid): fixed BLE bond error after reboot 2023-11-15 07:18:04 +00:00
Jiang Jiang Jian
55f5b427ee Merge branch 'bugfix/build_error_when_enable_ag_and_hf_v5.1' into 'release/v5.1'
fix(bt/bluedroid): Fix build error when both of the HFP roles are enabled (v5.1)

See merge request espressif/esp-idf!27077
2023-11-14 15:36:42 +08:00
Wang Meng Yang
c46775031e Merge branch 'bugfix/backport_some_ble_bugs_20231020_v5.1' into 'release/v5.1'
Fixed some BLE bugs 20231020 (backport v5.1)

See merge request espressif/esp-idf!26604
2023-11-14 15:35:55 +08:00
Jiang Jiang Jian
9c5b538f05 Merge branch 'bugfix/remove_iram_attr_from_ceva_files_v5.1' into 'release/v5.1'
fix(nimble): remove IRAM_ATTR from npl_os_freertos.c file (v5.1)

See merge request espressif/esp-idf!26839
2023-11-14 15:34:26 +08:00
Jiang Jiang Jian
8f4c9bdc03 Merge branch 'backport/fix_ble_bugs_v5.1' into 'release/v5.1'
Backport/fix ble bugs v5.1(backport v5.1)

See merge request espressif/esp-idf!26762
2023-11-14 15:15:40 +08:00
Jiang Jiang Jian
378bb1f0d1 Merge branch 'bugfix/unable_to_load_bonded_ble_devices_from_nvs_v5.1' into 'release/v5.1'
fix(bt&ble): fix BLE unable to load bonded device info after reboot. (backport v5.1)

See merge request espressif/esp-idf!26465
2023-11-14 15:10:38 +08:00
Wang Meng Yang
0f15eecd2c Merge branch 'feature/include_hf_and_ag_in_single_build_v5.1' into 'release/v5.1'
Feature/include hf and ag in single build v5.1

See merge request espressif/esp-idf!26841
2023-11-14 15:05:52 +08:00
Wang Mengyang
8f24e2731f fix(bt/bluedroid): Fix build error when both of the HFP roles are enabled and also CONFIG_BT_BLE_DYNAMIC_ENV_MEMORY is set to true 2023-11-10 21:08:08 +08:00
zhanghaipeng
e8dc62913b fix(bt/bluedroid): Fix ble keysize check 2023-11-08 19:46:23 +08:00
zhanghaipeng
253d19bfde fix(bt/bluedroid): Fix ble adv report evt type 2023-11-08 19:46:19 +08:00
luomanruo
287255026e change(ble): update c2 lib to 6ed444f2
update c6 and h2 lib to 77d09ce0
2023-11-08 18:09:39 +08:00
luomanruo
00f51f74e3 ble: update c2 rom.ld 2023-11-08 18:03:48 +08:00
cjin
8353ea3a09 change(ble): added option for msys buffer source 2023-11-08 18:03:48 +08:00
luomanruo
88af68f3c1 ble: update c6 h2 lib to 5bd7cb83, c2 lib to 1d31e175 2023-11-08 18:03:48 +08:00
Rahul Tank
9c44a4e1ec fix(nimble): remove IRAM_ATTR from npl_os_freertos.c file 2023-11-01 17:36:54 +05:30
Jin Cheng
716a47074a feat(bt/bluedroid): Support to build HID Host and HID Device in single binary 2023-11-01 19:32:13 +08:00
Wang Mengyang
8d9035c202 feat(bt/bluedroid): Support to build HFP Audio Gateway and Hands Free Unit in single binary 2023-11-01 19:31:18 +08:00
zhanghaipeng
4aa8a733ad feat(bt/bluedroid): Display BLE permission check handle in error trace 2023-10-31 14:38:42 +08:00
zhanghaipeng
568919e1c3 feat(bt/bluedroid): Support BLE gattc notify registration number 2023-10-31 14:38:42 +08:00
zhanghaipeng
bb587cd763 fix(bt/bluedroid): Fix key size check in BLE smp 2023-10-31 14:38:42 +08:00
zhiweijian
1d1939a1e4 Update BLE lib on ESP32-C3 and ESP32-S3
- modify mesh proxy solic uuid to 0x18590303
- Fixed DTM payload length cannot be 0
- Added config to enable Hw recorrect eco
- report the number of packets sent on the TX end
2023-10-20 16:49:15 +08:00
zhiweijian
5677692187 feat: add config to disable ble hci uart flow control 2023-10-20 16:48:33 +08:00
zhiweijian
51ebdfcbfa change: enable pll track by default on ESP32 2023-10-20 16:47:18 +08:00
zhiweijian
95e3dbcffe Add mesh adv type for exception list 2023-10-20 16:43:25 +08:00
chenjianhua
74a64755eb Update bt lib for ESP32-C3 and ESP32-S3(c8aa206)
- Fixed extended adv address setting after adv restart
- Fixed scan channel index setting for extended scan
- Add API to set aux channel index for extended adv
2023-10-20 16:24:38 +08:00
chenjianhua
0a57fb4183 Update bt lib for ESP32-C3 and ESP32-S3(29996e0)
- Fixed address resolution for directed adv with RPA when scanning
- Fixed resolvable private address renew after timeout
2023-10-20 16:24:09 +08:00
zhiweijian
567bf57805 Add new mesh types for exception list on ESP32-C3 and ESP32-S3 2023-10-20 16:23:15 +08:00
zhiweijian
15f8e677a2 Fixed bluedroid host build warning when log is disabled 2023-10-20 16:18:00 +08:00
gongyantao
f54e3ebea4 fix(bt/bluedroid): update the newest active device in bluetooth
1: update the newest active device when an ACL link is established and
   the remote device info is not in bond list. This updates will not stored
   into NVRAM until a new device is paired.
2023-10-20 14:44:54 +08:00
Jack
8c6114d0d2 Merge branch 'feature/free_bt_memory_v5.1' into release/v5.1
feat(bt): Frees BLE memory when no longer in use

See merge request espressif/esp-idf!26570
2023-10-20 08:41:19 +08:00
Jiang Jiang Jian
be63dddab4 Merge branch 'bugfix/fix_max_cccds_compilation_issue_v5.1' into 'release/v5.1'
fix(nimble): Fix compilation warnings when max bonds or cccd is set to 0 (v5.1)

See merge request espressif/esp-idf!26415
2023-10-20 08:15:48 +08:00
Jiang Jiang Jian
9e2a1b3109 Merge branch 'bugfix/deepfree' into 'release/v5.1'
fix(ble_mesh): fix compilation failure on using scene model.

See merge request espressif/esp-idf!26356
2023-10-20 08:15:20 +08:00
Shen Weilong
ea06b047c2 feat(bt): Frees BLE memory when no longer in use
It will free libble.a & libbt all txt, data and bss segment memory.
          This memory is combined into one large memory and put into the heap
          pool.
2023-10-19 14:52:29 +08:00
luomanruo
bacd3f40bb ble: update controller log module for ESP32-C6, ESP32-H2 and ESP32-C2 2023-10-18 18:11:34 +08:00
luomanruo
20533dccce ble: update controller log module for ESP32-C2 2023-10-18 17:10:28 +08:00
luomanruo
85bc272490 ble: update controller log module for ESP32-H2 and ESP32-C6 2023-10-18 17:10:28 +08:00
cjin
1d693ee133 change(ble): update ble lib on c6 h2 and c2 chip 2023-10-18 17:10:19 +08:00
Jiang Jiang Jian
fb2076c2e9 Merge branch 'bugfix/use_bt_sdp_bqb_include_macro_for_ertm_mode_flag_v5.1' into 'release/v5.1'
fix(bt/bluedroid): Add correct macro for ertm mode included flag (backport v5.1)

See merge request espressif/esp-idf!26455
2023-10-18 10:42:00 +08:00
Island
6b492690d3 Merge branch 'ble_dev/added_modem_reset_on_ble_v5_1' into 'release/v5.1'
feat(ble): added modem reset on c2 h2 and c6

See merge request espressif/esp-idf!26449
2023-10-17 15:43:35 +08:00
Jiang Jiang Jian
da79b8aa5a Merge branch 'bugfix/config_tpoll_fail_v5.1' into 'release/v5.1'
Bugfix/config tpoll fail v5.1

See merge request espressif/esp-idf!26451
2023-10-17 14:34:24 +08:00
Island
ca8d6f3740 Merge branch 'backport_v5.1' into 'release/v5.1'
Fix some BLE bugs in bluedroid host(backport v5.1)

See merge request espressif/esp-idf!26496
2023-10-17 11:01:55 +08:00
zhanghaipeng
296a6cddee fix(bt/bluedroid): Fix remove resolving list error for esp32 2023-10-16 19:56:31 +08:00
zhanghaipeng
f2c3bd38af fix(bt/bluedroid): Fix bugs in ble service change characteristic 2023-10-16 19:56:21 +08:00
zhanghaipeng
3f69d20d4d feat(bt/bluedroid): Support scan response data length zero in BLE 2023-10-16 19:56:12 +08:00
zhanghaipeng
e92c57c6cc fix(bt/bluedroid): Optimize the description of Scan Duplicate in BLE 2023-10-16 19:56:02 +08:00
Island
42efaf9794 Merge branch 'bugfix/BLEQABR23-632v51' into 'release/v5.1'
fix(ble_mesh): avoid executing bt_mesh_host_init() more than once when using nimble (v5.1)

See merge request espressif/esp-idf!26240
2023-10-16 12:01:28 +08:00
Wu Meng Shi
b7d403ddfe fix(ble_mesh): avoid executing bt_mesh_host_init() more than once when using nimble (v5.1) 2023-10-16 12:01:28 +08:00
gongyantao
d4b6952328 fix(bt/bluedroid): ble fails to load bonded device info after reboot
1: add a quantity check in bt when writing paired device info into nvs.
2: delete the exceeded device info from NVS when get bonded list during
bluedroid initialization.
3: unify the process of bt and ble to load bonded list during bluedroid
initialization.
2023-10-13 19:20:20 +08:00
gongyantao
d62393472c fix(bt/bluedroid): Add correct macro for ertm mode included flag 2023-10-13 14:44:25 +08:00
baohongde
dc6120ee17 feat(bt/hci): Added Vendor-Specific HCI command to disable DM1 for ACL-U 2023-10-13 14:20:17 +08:00
baohongde
9fc04635d1 fix(bt/bluedroid): Triggering disconnect event of GAP correctly 2023-10-13 14:20:04 +08:00
baohongde
fb6a12d24c fix(bt/bluedroid): Fix issue of QoS configuration failure when t_poll is greater than 40 2023-10-13 14:19:47 +08:00
cjin
f94b64d820 feat(ble): added modem reset on c2 h2 and c6 2023-10-13 11:42:14 +08:00
luomanruo
c9f7186357 ble: update tx power level index of ESP32-H2 and ESP32-C2 2023-10-12 15:55:29 +08:00
luomanruo
5becfa46bc ble:update c2 libble to 6a8d1f3d, h2 c6 libble to 57ed7949 2023-10-12 15:55:29 +08:00
Rahul Tank
88093c8618 fix(nimble): Fix compilation issues when max bonds or cccd is set to 0 2023-10-11 14:01:51 +05:30
Wu Meng Shi
f75474f359 fix(ble_mesh): fix compilation failure on using scene model. 2023-10-08 16:37:00 +08:00
Jiang Jiang Jian
f3ac64840e Merge branch 'backport/esp_phy_init_refactor_c3_bt_fix' into 'release/v5.1'
Backport: esp phy init refactor c3 bt fix

See merge request espressif/esp-idf!26262
2023-09-28 12:53:32 +08:00
Rahul Tank
d72f2e1305 Merge branch 'bugfix/post_reattempt_cnt_event_v5.1' into 'release/v5.1'
fix(nimble): Add event for reattempt connection count information (v5.1)

See merge request espressif/esp-idf!26111
2023-09-27 23:09:20 +08:00
Wang Meng Yang
5a06ceebda Merge branch 'bugfix/fix_hid_congestion_v5.1' into 'release/v5.1'
Fix(bt/bluedroid): Fix the issue for HID congestion checking[backport 5.1]

See merge request espressif/esp-idf!26230
2023-09-27 16:24:56 +08:00
zhiweijian
e5b4308b9d change(ble/controller): disable pll track by default in BLE controller on ESP32-C3 and ESP32-S3 2023-09-27 14:55:26 +08:00
zhangwenxu
ee087e91c2 fix(CI): fix CI build 2023-09-27 14:55:26 +08:00
zwl
0bbc2805fc fix(phy): Fix ble phy_enable/disable api invoking issue for esp32c2,esp32h2 and esp32c6 2023-09-27 14:55:26 +08:00
Shu Chen
5b45d359d2 Merge branch 'feature/update_esp32h2_sleep_logic_backport_v5.1' into 'release/v5.1'
feat(pm): remove SOC_PM_RETENTION_HAS_CLOCK_BUG for esp32h2 (backport v5.1)

See merge request espressif/esp-idf!26181
2023-09-27 14:38:47 +08:00
Jiang Jiang Jian
8008dbe624 Merge branch 'test/bqb_test_bt_classic_hfp_v5.1' into 'release/v5.1'
feat(bt/hfp): Add support for HFP BQB auto test (backport v5.1)

See merge request espressif/esp-idf!26222
2023-09-27 14:15:22 +08:00
Wang Meng Yang
28e62166a0 Merge branch 'test/bqb_test_bt_classic_l2cap_v5.1' into 'release/v5.1'
feat(bt/bluedroid): Add flags for BQB auto test of L2CAP (backport v5.1)

See merge request espressif/esp-idf!26218
2023-09-27 09:52:15 +08:00
Jiang Jiang Jian
f71eccb546 Merge branch 'bugfix/hfp_api_pkt_stat_nums_v5.1' into 'release/v5.1'
fix(bt/bluedroid): Fix the judgment condition for packet transmission status statistics (backport v5.1)

See merge request espressif/esp-idf!26169
2023-09-26 16:37:40 +08:00
Rahul Tank
361b6c00dc fix(nimble): Add event for reattempt connection count information 2023-09-26 13:41:29 +05:30
wanglai@espressif.com
8e58ffbd16 fix(bt/bluedroid): Revise the description for index in esp_hf_ag_clcc_response and correct the error return in btc_hf_indchange_notification
1: modify the description of param index in function
esp_hf_ag_clcc_response.
2: fix the error code return of function btc_hf_indchange_notification.
2023-09-26 15:10:04 +08:00
wanglai@espressif.com
928ece17c1 feat(bt/bluedroid): Add flag to control whether to send AT+CLIP cmd for BQB test 2023-09-26 15:10:04 +08:00
wanglai@espressif.com
8098e3a9ce feat(bt/bluedroid): Add flag to change HFP client features for BQB test 2023-09-26 15:10:04 +08:00
wanglai@espressif.com
5734d58c6f feat(bt/bluedroid): Add eSCO S1 support for hfp client BQB test 2023-09-26 15:10:04 +08:00
wanglai@espressif.com
8996222eb9 feat(bt/bluedroid): Add flag to send BRSF features for hfp ag BQB test 2023-09-26 15:10:04 +08:00
wanglai@espressif.com
d1c701bfaa feat(bt/bluedroid): Modify the btc hf features for AT+NREC cmd in BQB test 2023-09-26 15:10:04 +08:00
wanglai@espressif.com
768e15afc5 fix(bt/bluedroid): Fix the process of sending OK in ATD and COPS cmds 2023-09-26 15:10:04 +08:00
wanglai@espressif.com
e989d9eb32 feat(bt/bluedroid): Add supprot for specific indicator sending from AG to Client 2023-09-26 15:10:04 +08:00
wanglai@espressif.com
e1ead7ae40 feat(bt/bluedroid): Modify AT+CNUM response api and HFP AG example 2023-09-26 15:10:04 +08:00
wanglai@espressif.com
186ce934ed feat(bt/bluedroid): Add HFP config for BQB test 2023-09-26 15:10:03 +08:00
Rahul Tank
aaded3fd59 Merge branch 'bugfix/remove_unused_coex_header_v5.1' into 'release/v5.1'
remove(nimble): Removed unused coex header inclusion (v5.1)

See merge request espressif/esp-idf!26179
2023-09-26 14:27:59 +08:00
liqigan
f8402c7721 fix(bt/bluedroid): Fix the issue for HID congestion checking 2023-09-26 14:13:36 +08:00
wanglai@espressif.com
19575dbe3c feat(bt/bluedroid): Add flags for BQB auto test of L2CAP
1: add sdp_bqb_disable_flag to avoid running sdpu_build_n_send_error.
2: add sdp_bqb_inact_timeout_flag to set the SDP inactivity timeout to 90 seconds.
3: add l2cap_bqb_bad_cmd_len_rej_flag to reject the C-Frame with invalid PDU length
4: add l2cap_bqb_ertm_mode_included_flag to set L2CAP_FCR_ERTM_MODE for most L2CAP cases
2023-09-26 14:06:14 +08:00
Jiang Jiang Jian
0d2a52491b Merge branch 'bugfix/check_mapping_target_conflict_v5.1' into 'release/v5.1'
fix(ldgen): check target conflict for entries with section aliases (v5.1)

See merge request espressif/esp-idf!26123
2023-09-26 13:56:27 +08:00
Jiang Jiang Jian
4ac53c7cd7 Merge branch 'bugfix/add_params_check_for_hci_v5.1' into 'release/v5.1'
Fixed some HCI commands parameter (backport v5.1)

See merge request espressif/esp-idf!26147
2023-09-26 10:37:02 +08:00
Wu Meng Shi
d21aa2330a Fix PB-GATT adv is reported to the app layer too frequently (v5.1) 2023-09-26 10:26:30 +08:00
cjin
0e668ddf63 feat(ble): update ble sleep logic for esp32h2 2023-09-25 13:40:10 +08:00