Commit Graph

3134 Commits

Author SHA1 Message Date
chenjianhua
51ba771176 fix(bt): Update bt lib for ESP32(fa43201)
- Fixed assert for instant passed workaround
- Fixed scan evt timeout
- Fixed random address setting when scanning
2023-12-06 10:51:38 +08:00
shangke
2c3b392b0e fix(bt/controller): Fixed some HCI commands parameter 2023-12-06 10:51:31 +08:00
luomanruo
8e48c4756e ble: update ble log on ESP32C2
ble(fix): clear event queue when init event queue
2023-12-05 16:11:15 +08:00
chenjianhua
259e8ab25b fix(bt): Update bt lib for ESP32-C3 and ESP32-S3(b8f0db9)
- Fixed assert when llcp instant passed
2023-12-04 17:09:50 +08:00
chenjianhua
19919a2222 fix(bt): Update bt lib for ESP32-C3 and ESP32-S3(70ab55f)
- Fixed assert for instant passed workaround
- Fixed add RPA to white list
- Fixed AES encryption for RPA resolution
2023-12-04 17:09:38 +08:00
chenjianhua
52333aeac9 fix(bt/bluedroid): Fixed add RPA to white list 2023-12-04 17:09:28 +08:00
Jiang Jiang Jian
1d611df0b5 Merge branch 'bugfix/alarm_args_double_free_v5.0' into 'release/v5.0'
Bugfix/alarm args double free v5.0

See merge request espressif/esp-idf!27539
2023-12-04 14:57:21 +08:00
zhanghaipeng
1355f58180 feat(bt/bluedroid): Support ble create sync report disable and filter duplicate 2023-12-04 14:38:51 +08:00
Jin Cheng
e7a52632f0 feat(bt/bluedroid): Added an API to specify data types for ACL-U traffic 2023-12-04 10:28:05 +08:00
luomanruo
63c78087ed ble(update):
Update c2 lib to 47a787f0
2023-12-01 19:30:43 +08:00
zhanghaipeng
7129df2ad5 fix(bt/bluedroid): Fix BLE SMP register log level 2023-12-01 17:01:26 +08:00
Jin Cheng
db287328bc fix(bt/bluedroid): Set the alarm_arg to NULL after releasing to avoid double free in L2CAP layer 2023-11-30 20:14:31 +08:00
Jin Cheng
bab64a98d8 fix(bt/bluedroid): Set the alarm_arg to NULL after releasing to avoid double free in BTC layer 2023-11-30 20:14:31 +08:00
zhanghaipeng
9ab954096a fix(bt/bluedroid): Fix bluedroid menuconfig 2023-11-30 10:39:06 +08:00
luomanruo
b147fcad42 ble: update sdkconfig_version on ESP32C2, ESP32H2 and ESP32C6 2023-11-24 20:17:28 +08:00
luomanruo
69e7b56c48 ble:
Update c2 lib to 79ed4e8a
2023-11-24 19:20:54 +08:00
Rahul Tank
94c90c71bc fix(nimble): Added check to validate allowed random address 2023-11-23 10:37:54 +05:30
Jiang Jiang Jian
20d82594d7 Merge branch 'bugfix/ble_gap_connect_v5.0' into 'release/v5.0'
fix(nimble):Handled the Load access fault crash caused due to an invalid setting of index-variable 'reattempt_idx'.(v5.0)

See merge request espressif/esp-idf!26950
2023-11-23 12:03:59 +08:00
Jiang Jiang Jian
a5c2e40416 Merge branch 'bugfix/ble_update_lib_1110_5.0' into 'release/v5.0'
Bugfix/ble update lib 1110 5.0

See merge request espressif/esp-idf!27063
2023-11-23 11:05:29 +08:00
Jiang Jiang Jian
5c1f5f2522 Merge branch 'bugfix/add_par_check_in_ag_cind_res_v5.0' into 'release/v5.0'
Bugfix/add par check in ag cind res v5.0

See merge request espressif/esp-idf!27258
2023-11-23 10:48:16 +08:00
Abhinav Kudnar
2e833a6a12 fix(nimble):Handled the Load access fault crash caused due to an invalid setting of index-varible 'reattempt_idx'. 2023-11-22 19:39:55 +05:30
Jiang Jiang Jian
2e0d1508c4 Merge branch 'bugfix/spp_deinit_crash_v5.0' into 'release/v5.0'
fix(bt/bluedroid): Fix the crash of invalid access to released resources (v5.0)

See merge request espressif/esp-idf!27252
2023-11-22 17:29:27 +08:00
Jin Cheng
9998c2bd82 fix(bt/bluedroid): corrected the API documents of profile HFP and A2DP 2023-11-22 09:21:59 +00:00
Jin Cheng
4c8502e00d fix(bt/bluedroid): Added some argument check in APIs of HFP AG 2023-11-22 09:21:59 +00:00
luomanruo
1c0fb3bb4a ble(fix): deinit crash issue 2023-11-22 03:13:43 +00:00
luomanruo
1c261213d7 ble: update controller log module 2023-11-22 03:13:43 +00:00
luomanruo
30cd76b0f0 ble: update c2 lib to db4e1fb2 2023-11-22 03:13:43 +00:00
luomanruo
977b7f4bdb ble(fix): Fixed the issue of not returning memory to the memory pool after deinit callout
ble(fix): Fixed the issue of not returning memory to the memory pool after deinit callout
2023-11-22 03:13:43 +00:00
Ilia Lutchenko
fffc6f9328 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-22 03:10:00 +00:00
Jin Cheng
8ae138e7be 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-22 03:09:13 +00:00
Jiang Jiang Jian
6c9c30f125 Merge branch 'bugfix/coex_deprecate_config_rename_v5.0' into 'release/v5.0'
fix(esp_coex): Fix deprecated configuration options not rename to new one (Backport v5.0)

See merge request espressif/esp-idf!27092
2023-11-22 11:07:00 +08:00
Jiang Jiang Jian
13fdffbe98 Merge branch 'bugfix/pairing_when_enc_with_no_key_fails_v5.0' into 'release/v5.0'
fix(nimble): Initate pairing if encryption fails with reason no pin or key missing (v5.0)

See merge request espressif/esp-idf!27018
2023-11-22 10:47:22 +08:00
Island
6d77fe9b79 Merge branch 'backport/fix_ble_scan_rsp_v5.0' into 'release/v5.0'
Backport/fix ble scan rsp v5.0(backport v5.0)

See merge request espressif/esp-idf!27006
2023-11-21 12:15:09 +08:00
chenjianhua
50b49d856f fix(bt): Update bt lib for ESP32-C3 and ESP32-S3(2758518)
- Fixed power state setting when entering modem sleep
2023-11-15 17:16:46 +08:00
chenjianhua
cd242a5e3e 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-15 17:16:19 +08:00
zhanghaipeng
6bf79dfa8f fix(ble/controller): Fix bugs in setting adv data and scan response data 2023-11-15 17:16:08 +08:00
chenjianhua
905da8f5bf 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-15 17:15:16 +08:00
chenjianhua
8cc73fe6bf feat(bt/bluedroid): support clear legacy advertising 2023-11-15 17:12:40 +08:00
linruihao
27acfa5377 fix(esp_coex): Fix deprecated configuration options not rename to new one 2023-11-13 14:38:38 +08:00
Wang Mengyang
ee53260db8 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:17 +08:00
Rahul Tank
6ff708aa91 fix(nimble): Initate pairing if encryption fails with reason no pin or key missing 2023-11-09 11:52:16 +05:30
zhanghaipeng
44f7c7f6bb fix(bt/bluedroid): Fix ble keysize check 2023-11-08 19:47:32 +08:00
zhanghaipeng
ef444d6a1b fix(bt/bluedroid): Fix ble adv report evt type 2023-11-08 19:47:26 +08:00
Wang Meng Yang
2d00212e19 Merge branch 'feature/include_hf_and_ag_in_single_build_v5.0' into 'release/v5.0'
Feature/include hf and ag in single build v5.0

See merge request espressif/esp-idf!26842
2023-11-03 14:09:35 +08:00
Island
02089b1825 Merge branch 'bugfix/ble_update_lib_1027_5.0' into 'release/v5.0'
ble: update c2 lib to 1d31e175

See merge request espressif/esp-idf!26713
2023-11-02 14:11:34 +08:00
Jiang Jiang Jian
2aa66f5188 Merge branch 'bugfix/fix_ble_bond_error_after_reboot_v5.0' into 'release/v5.0'
fix(ble/bluedroid): fixed BLE bond error after reboot (backport v5.0)

See merge request espressif/esp-idf!26721
2023-11-02 12:10:57 +08:00
Rahul Tank
2b5f344a21 fix(nimble): remove IRAM_ATTR from npl_os_freertos.c file 2023-11-01 17:40:22 +05:30
Jin Cheng
7135c2d1fa feat(bt/bluedroid): Support to build HID Host and HID Device in single binary 2023-11-01 19:34:15 +08:00
Wang Mengyang
37d94af1f7 feat(bt/bluedroid): Support to build HFP Audio Gateway and Hands Free Unit in single binary 2023-11-01 19:34:09 +08:00
zhanghaipeng
a84c563c1e fix(bt/bluedroid): Fix BLE remove bond list status 2023-11-01 17:14:32 +08:00
zhiweijian
52112a9b91 fix(ble/bluedroid): fixed BLE bond error after reboot 2023-11-01 17:13:50 +08:00
luomanruo
21885a0cf9 ble: update c2 lib to 6ed444f2 2023-10-31 16:28:50 +08:00
luomanruo
27f1557d70 ble: update c2 rom.ld 2023-10-31 16:28:50 +08:00
luomanruo
30f1c507d4 ble: update c2 lib to 1d31e175 2023-10-31 16:28:49 +08:00
zhanghaipeng
d6165c0859 feat(bt/bluedroid): Display BLE permission check handle in error trace 2023-10-31 14:37:39 +08:00
zhanghaipeng
ea64b7cb1b feat(bt/bluedroid): Support BLE gattc notify registration number 2023-10-31 14:37:39 +08:00
zhanghaipeng
5758407281 fix(bt/bluedroid): Fix key size check in BLE smp 2023-10-31 14:37:39 +08:00
Wang Meng Yang
8e5bd616be Merge branch 'bugfix/unable_to_load_bonded_ble_devices_from_nvs_v5.0' into 'release/v5.0'
fix(bt&ble): fix BLE unable to load bonded device info after reboot. (backport v5.0)

See merge request espressif/esp-idf!26466
2023-10-27 10:27:21 +08:00
gongyantao
dc85f670aa 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-26 19:33:06 +08:00
Jiang Jiang Jian
349bc1795c Merge branch 'feature/free_bt_memory_5.0' into 'release/v5.0'
feat(bt): Frees BLE memory when no longer in use

See merge request espressif/esp-idf!26574
2023-10-26 17:55:32 +08:00
Jiang Jiang Jian
231e822d03 Merge branch 'bugfix/backport_some_ble_bugs_20231020_v5.0' into 'release/v5.0'
Fixed some BLE bugs 20231020 (backport v5.0)

See merge request espressif/esp-idf!26606
2023-10-26 11:51:48 +08:00
Shen Weilong
6875e2b7d0 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-24 06:04:39 +00:00
Wang Meng Yang
46c75fc31c Merge branch 'bugfix/coex_cfg_option_invisible_v5.0' into 'release/v5.0'
fix(esp_coex): Fix dependency errors in coexist configuration (Backport v5.0)

See merge request espressif/esp-idf!26581
2023-10-23 16:21:00 +08:00
zhiweijian
c6588baf8f 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 17:16:53 +08:00
zhiweijian
f3729b1610 feat: add config to disable ble hci uart flow control 2023-10-20 17:16:45 +08:00
zhiweijian
b13e24f26c change: enable pll track by default on ESP32 2023-10-20 17:16:37 +08:00
zhiweijian
39674d11e0 Add mesh adv type for exception list 2023-10-20 17:16:27 +08:00
chenjianhua
3502d25a2e 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 17:16:17 +08:00
chenjianhua
ab427cc1c0 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 17:16:06 +08:00
zhiweijian
a16c26c4ca Add new mesh types for exception list on ESP32-C3 and ESP32-S3 2023-10-20 17:15:55 +08:00
zhiweijian
cc746091a9 Fixed bluedroid host build warning when log is disabled 2023-10-20 17:15:45 +08:00
linruihao
dd16903b51 fix(esp_coex): Fix dependency errors in coexist configuration 2023-10-19 19:04:32 +08:00
luomanruo
8b7c87028b ble: update controller log module for ESP32-C2 2023-10-18 18:03:45 +08:00
luomanruo
3d381ba560 ble: update controller log module for ESP32-C2 2023-10-18 16:59:11 +08:00
cjin
82563128c8 change(ble): update ble lib on c6 h2 and c2 chip 2023-10-18 16:28:22 +08:00
Island
00d58a92dc Merge branch 'ble_dev/added_modem_reset_on_ble_v5_0' into 'release/v5.0'
feat(ble): added modem reset on c2

See merge request espressif/esp-idf!26450
2023-10-17 15:42:12 +08:00
Island
467cae8a41 Merge branch 'backport_v5.0' into 'release/v5.0'
Fix some BLE bugs in bluedroid host(backport 5.0)

See merge request espressif/esp-idf!26168
2023-10-17 11:00:39 +08:00
zhanghaipeng
98d88f86a7 fix(bt/bluedroid): Fix remove resolving list error for esp32 2023-10-16 19:30:18 +08:00
zhanghaipeng
5c6533d574 fix(bt/bluedroid): Fix bugs in ble service change characteristic 2023-10-16 19:30:08 +08:00
zhanghaipeng
c1b8734fb9 feat(bt/bluedroid): Support scan response data length zero in BLE 2023-10-16 19:29:56 +08:00
zhanghaipeng
18c8d0e04c fix(bt/bluedroid): Optimize the description of Scan Duplicate in BLE 2023-10-16 19:29:45 +08:00
Jiang Jiang Jian
65321ea317 Merge branch 'bugfix/use_bt_sdp_bqb_include_macro_for_ertm_mode_flag_v5.0' into 'release/v5.0'
fix(bt/bluedroid): Add correct macro for ertm mode included flag (v5.0)

See merge request espressif/esp-idf!26456
2023-10-16 11:51:56 +08:00
Wang Meng Yang
209608623c Merge branch 'bugfix/config_tpoll_fail_v5.0' into 'release/v5.0'
Bugfix/config tpoll fail v5.0

See merge request espressif/esp-idf!26452
2023-10-16 10:59:05 +08:00
gongyantao
c80e82fa07 fix(bt/bluedroid): Add correct macro for ertm mode included flag 2023-10-13 14:44:35 +08:00
baohongde
64e1f2fe5e feat(bt/hci): Added Vendor-Specific HCI command to disable DM1 for ACL-U 2023-10-13 14:22:39 +08:00
baohongde
299fa49d75 fix(bt/bluedroid): Triggering disconnect event of GAP correctly 2023-10-13 14:22:39 +08:00
baohongde
363f37cc67 fix(bt/bluedroid): Fix issue of QoS configuration failure when t_poll is greater than 40 2023-10-13 14:22:39 +08:00
cjin
dc8e00e22f feat(ble): added modem reset on c2 2023-10-13 11:44:18 +08:00
luomanruo
26fbfe7d94 ble: update tx power level index of ESP32-C2 2023-10-11 21:05:21 +08:00
luomanruo
b7f17f7531 ble:update c2 libble to 6a8d1f3d 2023-10-11 20:55:26 +08:00
Island
6a33321693 Merge branch 'bugfix/deepfree_v50' into 'release/v5.0'
fix(ble_mesh): fix compilation failure on using scene model. (v5.0)

See merge request espressif/esp-idf!26358
2023-10-11 19:28:53 +08:00
Wu Meng Shi
d9af38524b fix(ble_mesh): fix compilation failure on using scene model. (v5.0) 2023-10-11 19:28:53 +08:00
Island
3df12b0c7d Merge branch 'bugfix/BLEQABR23-414_v50' into 'release/v5.0'
bugfix(mesh): Fix PB-GATT adv is reported to the app layer too frequently(v5.0)

See merge request espressif/esp-idf!25896
2023-10-10 12:01:42 +08:00
Wu Meng Shi
f3f0917166 bugfix(mesh): Fix PB-GATT adv is reported to the app layer too frequently(v5.0) 2023-10-10 12:01:41 +08:00
Jiang Jiang Jian
1b5a9a9420 Merge branch 'bugfix/check_mapping_target_conflict_v5.0' into 'release/v5.0'
fix(ldgen): check target conflict for entries with section aliases (v5.0)

See merge request espressif/esp-idf!26124
2023-10-07 14:38:01 +08:00
Jiang Jiang Jian
f2dbd880ee Merge branch 'bugfix/set_eir_when_no_eir_data_v5.0' into 'release/v5.0'
change(bt/bluedroid): Send a name tag with zero length when there is no EIR data

See merge request espressif/esp-idf!25950
2023-10-07 14:31:11 +08:00
Jiang Jiang Jian
32dcb1abd9 Merge branch 'bugfix/BLEQABR23-632v50' into 'release/v5.0'
fix(ble_mesh): avoid executing bt_mesh_host_init() more than once when using nimble (v5.0)

See merge request espressif/esp-idf!26242
2023-10-07 14:29:17 +08:00
Wu Meng Shi
9dc12cb8c2 fix(ble_mesh): avoid executing bt_mesh_host_init() more than once when using nimble (v5.0) 2023-10-07 14:29:16 +08:00
Jiang Jiang Jian
64639bb296 Merge branch 'test/bqb_test_bt_classic_hfp_v5.0' into 'release/v5.0'
feat(bt/hfp): Add support for HFP BQB auto test (backport v5.0)

See merge request espressif/esp-idf!26223
2023-10-07 14:28:28 +08:00
Jiang Jiang Jian
d4b9cb7e63 Merge branch 'test/bqb_test_bt_classic_l2cap_v5.0' into 'release/v5.0'
feat(bt/bluedroid): Add flags for BQB auto test of L2CAP (backport v5.0)

See merge request espressif/esp-idf!26219
2023-10-07 14:27:06 +08:00