Commit Graph

51088 Commits

Author SHA1 Message Date
yiwenxiu
b8efdd725f ci: seperate openthread test cases 2026-06-30 10:56:57 +08:00
morris
b5c96c43e4 Merge branch 'refactor/jpeg_encoder_example_v6.0' into 'release/v6.0'
feat(jpeg): simplify encode example and add pytest coverage (v6.0)

See merge request espressif/esp-idf!50140
2026-06-30 10:24:36 +08:00
Island
518eabeb7d Merge branch 'bugfix/fix_bluedroid_static_random_conn_rpa_v6.0' into 'release/v6.0'
fix(ble/bluedroid): skip identity conversion for static random direct connect (6.0)

See merge request espressif/esp-idf!50085
2026-06-30 10:24:28 +08:00
Island
e73366f64c Merge branch 'bugfix/fix_bluedroid_rpa_whitelist_conn_v6.0' into 'release/v6.0'
Fix connection failure when using RPA with whitelist filtering(ESP32) (6.0)

See merge request espressif/esp-idf!50091
2026-06-30 10:23:12 +08:00
Rahul Tank
cd0ad239a6 Merge branch 'bugfix/nimble_issues_02062026_v6.0' into 'release/v6.0'
fix(nimble):  Fix few nimble issues 02062026 (v6.0)

See merge request espressif/esp-idf!49153
2026-06-29 21:52:48 +05:30
Mahavir Jain
d5dff24868 Merge branch 'fix/remove_nonexistent_crypto_registers_c61_v6.0' into 'release/v6.0'
Remove non-existent crypto registers (ESP32-C61) (v6.0)

See merge request espressif/esp-idf!49450
2026-06-29 19:01:30 +05:30
Rahul Tank
ab7f9a8cac Merge branch 'bugfix/fix_security_proto_nimble_v6.0' into 'release/v6.0'
fix(protocomm): harden nimble/bluedroid transport size handling (v6.0)

See merge request espressif/esp-idf!49180
2026-06-29 18:01:00 +05:30
Island
6e73125228 Merge branch 'feat/spi_log_qa_frame_check_v6.0' into 'release/v6.0'
feat(ble_log): add FINAL_STAT session-end frame and flush hook before controller restart (6.0)

See merge request espressif/esp-idf!49958
2026-06-29 20:25:50 +08:00
Zhang Hai Peng
af02bd9018 fix(ble/bluedroid): return ESP_ERR_INVALID_ARG for invalid conn params
Return ESP_ERR_INVALID_ARG instead of ESP_FAIL when connection
parameter validation fails


(cherry picked from commit 6c53838e66)

Co-authored-by: zhanghaipeng <zhanghaipeng@espressif.com>
2026-06-29 19:04:29 +08:00
Zhang Hai Peng
add48e6f2c fix(ble/bluedroid): add context to GATTC reg-notify cache warning
Include client_if, handle, bd_addr, and server cache state in the
warning logged when notification registration skips handle validation.


(cherry picked from commit 1085a32be8)

Co-authored-by: zhanghaipeng <zhanghaipeng@espressif.com>
2026-06-29 19:04:29 +08:00
Zhang Hai Peng
b13f63fd7f fix(ble/bluedroid): report conn param update failure for unknown BD_ADDR
Route unknown BD_ADDR and other immediate failures through the existing
need_cb path so ESP_GAP_BLE_UPDATE_CONN_PARAMS_EVT is always delivered.


(cherry picked from commit f9eaeb5e84)

Co-authored-by: zhanghaipeng <zhanghaipeng@espressif.com>
2026-06-29 19:04:29 +08:00
Zhang Hai Peng
0217c922fe fix(ble/bluedroid): preserve ATT error on prepare write completion
Skip prepare-write echo validation when the GATT stack reports a
non-success status. ATT Error Response carries no prepare-write echo
body (rsp_len=0), so the check incorrectly overwrote errors such as
GATT_INSUF_AUTHENTICATION (0x05) with GATT_INVALID_PDU (0x04).


(cherry picked from commit d5b9350d0f)

Co-authored-by: zhanghaipeng <zhanghaipeng@espressif.com>
2026-06-29 19:04:29 +08:00
Zhang Hai Peng
a8ee33b38f fix(ble/bluedroid): preserve HCI status on BLE 4.2 GAP failures
Return BTM_HCI_ERROR | hci_status from legacy BLE 4.2 GAP HCI command
paths instead of mapping failures to BTM_ILLEGAL_VALUE or
BTM_NO_RESOURCES. Add btm_ble_status_from_hci() helper and propagate
real status through scan start/stop completion callbacks.


(cherry picked from commit 47dd785a18)

Co-authored-by: zhanghaipeng <zhanghaipeng@espressif.com>
2026-06-29 19:04:29 +08:00
Zhang Hai Peng
005e8029a9 feat(ble/bluedroid): Optimize Bluedroid memory usage
- Delete unused device records (~356B each)


(cherry picked from commit 7d1c0e9a32)

Co-authored-by: zhanghaipeng <zhanghaipeng@espressif.com>
2026-06-29 19:04:29 +08:00
Zhang Hai Peng
ad3a325cc9 fix(ble/bluedroid): cap Read By Type response length at ATT maximum
Read By Type Response Length is one octet (max 255). When MTU was
large enough to return a long characteristic value in one pair, the
server wrote (UINT8)(value_len + 2) and overflowed (e.g. 513 -> 1),
so the client rejected the PDU as GATT_INVALID_PDU (0x04).

Cap server value to 253 bytes per pair, clamp the length byte, and
continue long reads via Read Blob when the capped size is returned.


(cherry picked from commit 97905afccc)

Co-authored-by: zhanghaipeng <zhanghaipeng@espressif.com>
2026-06-29 19:04:29 +08:00
Zhang Hai Peng
50b98393c6 fix(ble/bluedroid): Fixed potential double Execute Write Response
(cherry picked from commit 0a93ccd3b3)

Co-authored-by: zhanghaipeng <zhanghaipeng@espressif.com>
2026-06-29 19:04:29 +08:00
Zhang Hai Peng
be3b2cf56b fix(ble/bluedroid): unblock sync HCI cmd on Command Status error
Release the BLE sync semaphore and record HCI status when a
synchronous command is rejected via Command Status, since no
Command Complete event follows.


(cherry picked from commit 29ae92f4ef)

Co-authored-by: zhanghaipeng <zhanghaipeng@espressif.com>
2026-06-29 19:04:29 +08:00
Zhang Hai Peng
78f1bd2ccf fix(ble/bluedroid): set REQ_WAITING before GATTC service-change rediscovery
When service change cancels in-progress discovery, bta_gattc_disc_cmpl()
re-triggers discovery without marking auto_update as REQ_WAITING. If a
client command is queued in p_q_cmd, bta_gattc_start_discover() refuses
to restart and the command is never dispatched.


(cherry picked from commit 13926bb9bc)

Co-authored-by: zhanghaipeng <zhanghaipeng@espressif.com>
2026-06-29 19:04:29 +08:00
Zhang Hai Peng
702972227d fix(ble/bluedroid): reject adv data on legacy directed ext adv
(cherry picked from commit c339cec380)

Co-authored-by: zhanghaipeng <zhanghaipeng@espressif.com>
2026-06-29 19:04:29 +08:00
Zhang Hai Peng
3a0344e321 fix(ble/bluedroid): skip identity conversion for static random direct connect
Do not rewrite static or non-resolvable random peer addresses to
identity type 0x03 when CONFIG_BT_BLE_RPA_SUPPORTED is enabled.


(cherry picked from commit 2ef10ef488)

Co-authored-by: zhanghaipeng <zhanghaipeng@espressif.com>
2026-06-29 19:04:29 +08:00
Rahul Tank
d645a68bde fix(protocomm): harden nimble transport size handling 2026-06-29 18:18:49 +08:00
Sumeet Singh
5dfb38a6d3 fix(nimble): Add npl locks to avoid race condition (v6.0) 2026-06-29 15:45:00 +05:30
Astha Verma
b0f278ec19 fix(nimble): Added l2cap_coc throughput examples 2026-06-29 15:41:54 +05:30
Rahul Tank
13ce6692eb fix(nimble): Gaurd ble_hs_log_mbuf/flat_buf against non-DEBUG log level 2026-06-29 15:38:45 +05:30
Island
0ced163703 Merge branch 'feat/add_ble_core_6x_feature_for_bluedroid_v6.0' into 'release/v6.0'
Feat/add ble core 6x feature for bluedroid (6.0)

See merge request espressif/esp-idf!50053
2026-06-29 17:59:32 +08:00
Sumeet Singh
dbe2e860da fix(nimble): Change remaining vars from Static to Dynamic (v6.0) 2026-06-29 15:25:37 +05:30
Rahul Tank
f783d3a7eb fix(nimble): Deinit NimBLE stop event in host task 2026-06-29 15:25:37 +05:30
Rahul Tank
609ad13324 fix(nimble): Fix for clang compilation issues 2026-06-29 15:25:37 +05:30
Rahul Tank
b633c5e2a5 fix(nimble): Add support for shorter connection intervals 2026-06-29 15:25:37 +05:30
Rahul Tank
b2ab997d3f fix(nimble): Fix compilation issues in Gatt SPS service 2026-06-29 15:25:37 +05:30
Rahul Tank
3b270b8c67 fix(nimble): Remove extra/unwanted prints 2026-06-29 15:25:36 +05:30
Mayank Tyagi
562a32ba46 fix(nimble): Avoid deadlock caused by local writes taking s_hidd_mutex 2026-06-29 15:25:36 +05:30
Mayank Tyagi
7c151a7082 fix(nimble): Always read initial BAS level 2026-06-29 15:25:36 +05:30
Mayank Tyagi
842941b488 fix(nimble): Forward HID report/control/protocol writes as HIDD events 2026-06-29 15:25:36 +05:30
Mayank Tyagi
0a90976237 feat(nimble): ADD BLE HCI logging support for ESP Insights 2026-06-29 15:25:36 +05:30
Ashish Sharma
72041a1e79 Merge branch 'fix/sb_digest_revocation_workflow_v6.0' into 'release/v6.0'
change(bootloader): honor SECURE_BOOT_ALLOW_UNUSED_DIGEST_SLOTS during first boot (v6.0)

See merge request espressif/esp-idf!49713
2026-06-29 17:46:30 +08:00
morris
e2f23ea0bd feat(jpeg): simplify encode example and add pytest coverage
Embed a 720p BGR raw asset and stream the encoded JPEG over UART so
this example no longer depends on SD card setup.

Add pytest coverage that reconstructs the JPEG from base64 output and
compares it against a checked-in golden image.
2026-06-29 17:26:21 +08:00
Fu Hanxi
3a77af68b2 Merge branch 'ci/stable-build-jobs-v6.0' into 'release/v6.0'
Ci/stable build jobs v6.0

See merge request espressif/esp-idf!48715
2026-06-29 10:03:00 +02:00
Jiang Jiang Jian
a4a6bc9a78 Merge branch 'feat/optimize_154_debug_v6.0' into 'release/v6.0'
feat(802.15.4): avoid missing abort reason for multievents in 154 debug (v6.0)

See merge request espressif/esp-idf!50111
2026-06-29 15:44:33 +08:00
Jiang Jiang Jian
f02fad8ce1 Merge branch 'bugfix/ai_review_avrcp_v6.0' into 'release/v6.0'
fix(bt): Fix the critical and high issues related to AVRCP from AI review report (v6.0)

See merge request espressif/esp-idf!50020
2026-06-29 15:43:53 +08:00
Jiang Jiang Jian
965ebfce03 Merge branch 'bugfix/ai_review_hfp_v6.0' into 'release/v6.0'
fix(bt): Fix the critical issues related to HFP from AI review report (v6.0)

See merge request espressif/esp-idf!50007
2026-06-29 15:43:38 +08:00
Jiang Jiang Jian
bcfdd44e40 Merge branch 'docs/add_semihosting_chapter_v6.0' into 'release/v6.0'
docs(jtag-debugging): add semihosting chapter (v6.0)

See merge request espressif/esp-idf!49888
2026-06-29 15:42:54 +08:00
Jiang Jiang Jian
0ad95fbb97 Merge branch 'fix/httpd_clang_tidy_missing_close_v6.0' into 'release/v6.0'
fix(network/http_server): fix clang-tidy warnings for missing close (v6.0)

See merge request espressif/esp-idf!49864
2026-06-29 15:42:34 +08:00
Jiang Jiang Jian
1189d24f1f Merge branch 'bugfix/optimize_nimble_throughput_example_v6.0' into 'release/v6.0'
fix(nimble): Optimize Nimble throughput example for 1M/2M/S2/S8 (v6.0)

See merge request espressif/esp-idf!49979
2026-06-29 15:42:31 +08:00
Jiang Jiang Jian
543395fb87 Merge branch 'fix/use_unilock_for_sleep_process_v6.0' into 'release/v6.0'
fix(esp_hw_support): use same lock for lightsleep/deepsleep process (v6.0)

See merge request espressif/esp-idf!49847
2026-06-29 15:42:06 +08:00
Jiang Jiang Jian
777411abb9 Merge branch 'feat/ble-smp-multi-adv-static-random-address_v6.0' into 'release/v6.0'
feat(ble/bluedroid): Add BLE SMP support for multi-ADV with static random addresses (6.0)

See merge request espressif/esp-idf!49789
2026-06-29 15:41:49 +08:00
Jiang Jiang Jian
76c727dfdf Merge branch 'bugfix/ag_unknown_codec_vv6.0' into 'release/v6.0'
fix(bt): skip unknown codecs when parsing AT+BAC(v6.0)

See merge request espressif/esp-idf!49840
2026-06-29 15:41:42 +08:00
Jiang Jiang Jian
87d6d58dc8 Merge branch 'fix/move_system_retention_to_esp_hw_support_v6.0' into 'release/v6.0'
refactor(esp_hw_support): move system_periph_retention from soc to esp_hw_support (v6.0)

See merge request espressif/esp-idf!49750
2026-06-29 15:41:21 +08:00
Jiang Jiang Jian
e8fe4def62 Merge branch 'fix-malloc_pm_lock_in_internal_mem_v6.0' into 'release/v6.0'
fix(esp_pm): malloc pm_lock in internal mem (v6.0)

See merge request espressif/esp-idf!49689
2026-06-29 15:40:29 +08:00
Jiang Jiang Jian
d82a2d4af2 Merge branch 'fix/vfs_fatfs_unregister_path_possible_leak_v6.0' into 'release/v6.0'
Fix esp_vfs_fat_unregister_path possible leak, incorrect check in esp_vfs_register_fs_common and optimize memory usage (v6.0)

See merge request espressif/esp-idf!49638
2026-06-29 15:40:19 +08:00