Commit Graph

32937 Commits

Author SHA1 Message Date
Laukik Hase
eebabaff2f fix(esp_tee): Add missing input validation checks for TEE service calls
- MULTI_HEAP_ASSERT for TEE now aborts on failure, instead of ignoring the condition
- Prevent potential TEE OTA write bounds overflow
2026-04-09 16:34:21 +05:30
morris
727cd73fb4 Merge branch 'fix/fix_mmu_dirom_reserve_search_logic_v5.5' into 'release/v5.5'
mmu: fixed drom/irom reservation bus cap search logic (v5.5)

See merge request espressif/esp-idf!47390
2026-04-09 15:23:19 +08:00
Jiang Jiang Jian
42a045b2ff Merge branch 'bugfix/spp_deinit_v5.5' into 'release/v5.5'
fix(bt/bluedroid): flushed all the DM PM at the end of SPP deinit (v5.5)

See merge request espressif/esp-idf!47290
2026-04-09 12:26:26 +08:00
Jiang Jiang Jian
ed34e16106 Merge branch 'fix/wifi_nan_wrong_service_id_log_v5.5' into 'release/v5.5'
fix(nan): zero-init pub_id and sub_id in NAN service functions (Backport v5.5)

See merge request espressif/esp-idf!47131
2026-04-09 12:11:20 +08:00
Jiang Jiang Jian
6db7abf5f9 Merge branch 'bugfix/coverity_get_band_failure_v5.5' into 'release/v5.5'
fix(wpa_supplicant): Fix coverity issue (CID 900721) (v5.5)

See merge request espressif/esp-idf!47017
2026-04-09 12:10:34 +08:00
Island
436f59c101 Merge branch 'feat/ble_bluedroid_log_full_compression_enable_v5.5' into 'release/v5.5'
feat(ble_mesh): enable log full compression function for bluedroid host (v5.5)

See merge request espressif/esp-idf!46155
2026-04-09 11:20:38 +08:00
armando
b8cced080c fix(mmu): fixed drom/irom reservation bus cap search logic 2026-04-09 11:01:43 +08:00
morris
e8ea399d53 Merge branch 'fix/usb_iad_length_backport_v5.5' into 'release/v5.5'
fix(usb/host): Fix incorrect IAD descriptor length (backport v5.5)

See merge request espressif/esp-idf!47376
2026-04-08 23:58:31 +08:00
Tomas Rezucha
57c4a88ac2 fix(usb/host): Fix incorrect IAD descriptor length 2026-04-08 12:59:21 +02:00
Shu Chen
34ce1f17c2 Merge branch 'feat/update_ot_jan2026_v5.5' into 'release/v5.5'
feat(openthread): update OT to 9b887f6bd (v5.5)

See merge request espressif/esp-idf!46759
2026-04-08 09:42:54 +00:00
Luo Xu
ebebba4823 feat(ble): update log compression for bluedroid
(cherry picked from commit 05783fafd7)

Co-authored-by: luoxu <luoxu@espressif.com>
2026-04-08 16:53:04 +08:00
Luo Xu
4beb797190 feat(ble_mesh): enable log full compression function for bluedroid host
(cherry picked from commit 4cf88ce078)

Co-authored-by: luoxu <luoxu@espressif.com>
2026-04-08 16:53:04 +08:00
Rahul Tank
b3cbeb99ea Merge branch 'bugfix/fix_dtm_end_test_v5.5' into 'release/v5.5'
fix(nimble): Fix DTM test end packet count parsing (v5.5)

See merge request espressif/esp-idf!47332
2026-04-08 12:15:21 +05:30
Mahavir Jain
19731dd91a Merge branch 'fix/enable_key_mgr_clk_for_efuse_key_ops_v5.5' into 'release/v5.5'
Support newer Key Manager key sources for ESP32-P4 V3 (v5.5)

See merge request espressif/esp-idf!46755
2026-04-08 11:19:56 +05:30
Jiang Jiang Jian
1584e74887 Merge branch 'fix/set_config_modification_v5.5' into 'release/v5.5'
Make some changes in get_config api (v5.5)

See merge request espressif/esp-idf!46729
2026-04-08 11:36:50 +08:00
Island
bde0a7361d Merge branch 'dev/ble-log-202603_v5.5' into 'release/v5.5'
dev: BLE Log 202603 (5.5)

See merge request espressif/esp-idf!47276
2026-04-08 10:32:01 +08:00
Nachiket Kukade
adda31a8b4 fix(wpa_supplicant): Fix coverity issue (CID 900721)
Return a valid band mode in case of get_band failure
2026-04-08 10:24:32 +08:00
Sarvesh Bodakhe
6118e17532 fix(nan): zero-init pub_id and sub_id in NAN service functions
Both variables were uninitialized, returning a garbage value on
the error (goto fail) path.
2026-04-08 10:24:12 +08:00
Rahul Tank
3f859b880d fix(nimble): Fix DTM test end packet count parsing 2026-04-07 15:35:39 +05:30
tarun.kumar
204c16573c fix(wifi) : Make some changes in get_config api 2026-04-07 13:07:43 +05:30
Jiang Jiang Jian
e46782886f Merge branch 'bugfix/btm_sec_free_dev_v5.5' into 'release/v5.5'
fix(bt): avoid deleting device record on partial transport cleanup (v5.5)

See merge request espressif/esp-idf!47295
2026-04-07 14:59:30 +08:00
Jiang Jiang Jian
e97edf2068 Merge branch 'feature/bdl_nand_extensions_v5.5' into 'release/v5.5'
feat(esp_blockdev): Updated BDL documentation (v5.5)

See merge request espressif/esp-idf!47288
2026-04-07 14:58:50 +08:00
Jiang Jiang Jian
828a353388 Merge branch 'bugfix/fix_ble_controller_emi_assert_v5.5' into 'release/v5.5'
fix(ble): Fixed BLE assert in "emi.c" when low memory (5.5)

See merge request espressif/esp-idf!46914
2026-04-07 14:55:44 +08:00
Jiang Jiang Jian
ceb2aa15da Merge branch 'feat/add_bluedroid_cancel_open_api_v5.5' into 'release/v5.5'
feat(ble/bluedroid): Added cancel open function for bluedroid (5.5)

See merge request espressif/esp-idf!46901
2026-04-07 14:55:13 +08:00
Jiang Jiang Jian
2a8e81b7fc Merge branch 'change/esp_idf_uart_wakeup_refactor_v5.5' into 'release/v5.5'
change(example): change uart wakeup mode 0 edge threshold (v5.5)

See merge request espressif/esp-idf!46376
2026-04-07 14:46:46 +08:00
Jiang Jiang Jian
cfac6d548c Merge branch 'fix/ble_mesh_nimble_connection_failed_v5.5' into 'release/v5.5'
fix(ble_mesh):fixed nimble connection failed (v5.5)

See merge request espressif/esp-idf!46117
2026-04-07 14:46:14 +08:00
Jiang Jiang Jian
69ccb0e8e1 Merge branch 'update/spiffs_sync_upstream_5.5' into 'release/v5.5'
change(spiffs): upgrade spiffs module to 0.2-265-gad902ca version (v5.5)

See merge request espressif/esp-idf!45970
2026-04-07 14:44:49 +08:00
Jiang Jiang Jian
1d131dbbbd Merge branch 'fix/restore_ble_mesh_c5_c61_v5.5' into 'release/v5.5'
Fix/restore ble mesh c5 c61 (v5.5)

See merge request espressif/esp-idf!45538
2026-04-07 14:43:27 +08:00
Jiang Jiang Jian
6ce852db70 Merge branch 'feat/add_new_api_to_return_value_for_vendor_ie_cb_v5.5' into 'release/v5.5'
feat(wifi): Added new API to return value for vendor ie cb (v5.5)

See merge request espressif/esp-idf!46958
2026-04-07 14:15:44 +08:00
Zhou Xiao
da680aa29a fix(ble_log_console): exclude from idf-ci pytest collection to fix CI
idf-ci discovers pyproject.toml pytest config and runs a separate
collection pass with --target all, which finds 0 target tests and
raises RuntimeError. Add to .idf_ci.toml exclude_dirs instead of
deleting tests. Restore all 227 unit tests with lint/mypy fixes.
2026-04-07 12:28:59 +08:00
Zhou Xiao
5288d2a246 docs(ble_log): update README for multi-buffer transport and removed modules
Reflect changes from dev/ble-log-202603: ping-pong to multi-buffer
transport (4 buffers/LBM), renamed Kconfig options (LBM_TRANS_SIZE →
LBM_TRANS_BUF_SIZE with new defaults), always-enabled checksum and
enhanced statistics, UART redirection support, UHCI Out removal,
SPI Out deprecation, and updated memory estimation.
2026-04-07 12:28:59 +08:00
Zhou Xiao
3b2852b9ee feat(bt): add BT_LOG_CRITICAL_ONLY bandwidth-optimized log mode
Add Kconfig options for bandwidth-optimized logging via the BLE Log
Async Output system. When enabled, controller log levels default to 2
and host/mesh log encoding is auto-selected.

- BT_LOG_CRITICAL_ONLY parent: selects BLE_LOG_ENABLED + compression
- BT_LOG_CRITICAL_ONLY_CTRL: supports both NimBLE and non-NimBLE (C3)
  controllers with default level override
- BT_LOG_CRITICAL_ONLY_HOST: host-agnostic, selects compressed log
  for Bluedroid conditionally
- BT_LOG_CRITICAL_ONLY_MESH: placeholder for mesh log encoding
- Guards against BT_STACK_NO_LOG conflict
2026-04-07 12:28:59 +08:00
Zhou Xiao
51c280d361 change(bt): consolidate BLE log Kconfig into common/Kconfig.in
Move per-chip BLE log Kconfig options (esp32c2/c5/c6/h2) into
components/bt/common/Kconfig.in for single-source-of-truth configuration.

Restructure menu as "BT Logs" with "Log Sources" sub-menu containing
controller log config options. Controller log output mode choice defaults
to BLE Log v2 when BLE_LOG_ENABLED, with legacy mode as deprecated
fallback. Migrate wrap_panic_handler and task_wdt_user_handler configs
as well since they depend on BT_LE_CONTROLLER_LOG_ENABLED.
2026-04-07 12:28:59 +08:00
Zhou Xiao
5484704db5 change(ble_log): update ble log module description 2026-04-07 12:28:59 +08:00
Zhou Xiao
fd40b4c0b9 feat(bt/ble_log): add cross-pool buffer fallback in LBM acquire
Replace the two-step acquire() + get_trans() flow with a unified
acquire_trans() that iterates all candidate pools. When a pool's
buffers are exhausted, the lock is released and the next pool is
tried, enabling load balancing across pools instead of only
resolving lock contention.
2026-04-07 12:28:59 +08:00
Zhou Xiao
705b8a02b5 fix(bt/ble_log): use atomic_load for inflight_peak in buf_util report
Replace __atomic_exchange_n with __atomic_load_n in
ble_log_emit_buf_util() so inflight_peak reports the all-time peak
since init rather than resetting to zero after each report.
2026-04-07 12:28:59 +08:00
Zhou Xiao
8b4458342e feat(ble_log): migrate from ping-pong to multi-buffer transport
Migrate all LBM, RT, and peripheral backend code from 2-buffer
ping-pong to 4-buffer transport with bitmask index arithmetic.

LBM changes:
- Init sets owner on each transport buffer
- get_trans/flush/dump use (idx+1) & (cnt-1) instead of !idx
- get_trans/flush use __atomic_load_n(ACQUIRE) for prph_owned
- New ble_log_write_buf_util() emits BUF_UTIL telemetry frames,
  exchange peak with 0 to avoid stale baseline after bursts

RT changes:
- Queue depth uses unified BLE_LOG_TRANS_TOTAL_CNT
- rt_queue_trans uses __atomic_store_n for prph_owned, tracks
  per-LBM inflight count and peak via lock-free CAS
- ISR path captures pxHigherPriorityTaskWoken and yields

Peripheral changes:
- All tx_done callbacks: decrement inflight before releasing
  prph_owned with __atomic_store_n(RELEASE)
- SPI/UART send_trans error paths: decrement inflight and
  release prph_owned to allow retry on next get_trans pass
- Dummy send_trans: recycle buffer immediately (pos=0, decrement
  inflight, release prph_owned) since no DMA hardware to wait for
- Redir LBM upgraded to 4-buffer with owner and reset support
- All peripherals implement ble_log_prph_reset_util_counters()
2026-04-07 12:28:59 +08:00
Zhou Xiao
ec30e32dd1 feat(ble_log): define multi-buffer transport types and Kconfig
Replace ping-pong (2-buffer) transport constants with configurable
multi-buffer (4-buffer) types. Add buffer utilization reporting types,
unified queue depth derivation macros, and compile-time guards.

Rename Kconfig options to total-per-LBM semantics:
- BLE_LOG_LBM_TRANS_SIZE (512) -> BLE_LOG_LBM_TRANS_BUF_SIZE (2048)
- BLE_LOG_LBM_LL_TRANS_SIZE (1024) -> BLE_LOG_LBM_LL_TRANS_BUF_SIZE (2048)

Key type changes:
- ble_log_prph_trans_t: volatile bool -> plain bool (atomic ops used),
  add void *owner back-reference
- ble_log_lbm_t: trans array sized to BLE_LOG_TRANS_BUF_CNT (4),
  add trans_inflight and trans_inflight_peak counters
- BLE_LOG_TRANS_BUF_CNT replaces BLE_LOG_TRANS_PING_PONG_BUF_CNT
- New ble_log_buf_util_t for buffer utilization telemetry
- _Static_assert guards for divisibility, power-of-2, index limits
2026-04-07 12:28:59 +08:00
Zhou Xiao
2099d27a76 feat(ble_log): consume frame_sn on loss path and bump BLE_LOG_VERSION
Add BLE_LOG_GET_FRAME_SN() on the buffer-full loss path so the SN
counter advances even when frames are dropped. This allows the console
to detect firmware-side buffer loss via SN gaps. Bump BLE_LOG_VERSION
to reflect the semantic change.
2026-04-07 12:28:59 +08:00
Zhou Xiao
e6cb5ee3cb feat(bt/ble_log): implement UART redirection stream write
Introduce stream write API with deferred frame encapsulation for UART
redirection on port 0. Redirected data is now properly framed (header +
payload + checksum) instead of being sent as raw ASCII, preventing frame
parser sync oscillation on the receiver.

- Add stream_seal/stream_write/stream_flush in ble_log_lbm.c
- Add BLE_LOG_SRC_REDIR source and BLE_LOG_UART_REDIR_ENABLED gate
- Simplify redir_uart_tx_chars and timer callback to use stream API
- Flush pending stream data in ble_log_prph_deinit
- Make get_trans static (no external callers after refactor)
- Move UART wrap linker flags outside CONFIG_BT_ENABLED guard
- Default UART DMA peripheral when SOC_UHCI_SUPPORTED
- Default baud rate 921600 -> 3000000
2026-04-07 12:28:59 +08:00
Zhou Xiao
cf297c7718 fix(bt/ble_log): fix flush timer callback in UART redirect module
Fix incorrect esp_timer callback signature, replace blocking mutex
with non-blocking trylock, add prph_inited guard, correct timer
period from 100us to 1s, and remove fragile idle-based flush logic.
2026-04-07 12:28:59 +08:00
Zhou Xiao
7ebb8343d5 fix(bt/ble_log): use aligned counters in ble_log_stat_mgr_t
Replace embedded ble_log_enh_stat_t (packed wire struct) inside
ble_log_stat_mgr_t with flat uint32_t counters. Natural 4-byte
alignment ensures each load/store compiles to a single l32i/s32i
on Xtensa/RISC-V, making individual field access atomic without
locks.

Build the packed wire format on the stack inside a critical section
in ble_log_write_enh_stat() so the full snapshot is consistent.
2026-04-07 12:28:59 +08:00
Zhou Xiao
d9f109b66b change(bt/ble_log): make checksum and enhanced statistics always enabled
Remove CONFIG_BLE_LOG_PAYLOAD_CHECKSUM_ENABLED conditional compilation
-- payload checksum is always computed over the full frame.

Remove CONFIG_BLE_LOG_XOR_CHECKSUM_ENABLED conditional -- XOR checksum
is always used; delete the sum checksum dead code path.

Remove CONFIG_BLE_LOG_ENH_STAT_ENABLED conditional -- enhanced
statistics (frame/byte counters per source) are always active.

Remove incorrect select on choice symbol
BT_LE_CONTROLLER_LOG_MODE_BLE_LOG_V2 from BLE_LOG_IS_ESP_CONTROLLER.
2026-04-07 12:28:59 +08:00
Zhou Xiao
dbff06632f change(bt/ble_log): deprecate legacy SPI log output module
Move ble_log_spi_out.c and ble_log_spi_out.h into a deprecated/
subdirectory under components/bt/common/ble_log/. Extract all
BT_BLE_LOG_SPI_OUT_* Kconfig options into deprecated/Kconfig.in
with an if-block to reduce depends-on repetition, sourced from
ble_log/Kconfig.in inside a "Legacy SPI Log Output (Deprecated)"
menu. Add mutual exclusion with BLE_LOG_ENABLED so that the legacy
SPI Out and the new BLE Log Module cannot be enabled simultaneously.
Update CMakeLists.txt source path and add deprecated/include to
include dirs so existing callers are unaffected. The BLE Log
Module's SPI Master DMA peripheral transport is the replacement.
2026-04-07 12:28:59 +08:00
Zhou Xiao
f56b739d33 change(bt/ble_log): remove BLE Log UHCI Out module
Delete ble_log_uhci_out.c and its header. Remove the UHCI Out source
from CMakeLists.txt and all BT_BLE_LOG_UHCI_OUT_* Kconfig options.
Remove per-chip BT_LE_CONTROLLER_LOG_UHCI_OUT_ENABLED Kconfig and
all UHCI Out caller references in esp32c5/c6/h2 controller bt.c.
Update ble_log_console README to reference the new BLE Log Module
UART DMA config. The functionality is superseded by the BLE Log
Module's UART DMA peripheral transport.
2026-04-07 12:28:41 +08:00
Island
9651a6bc5d Merge branch 'feat/use_common_config_to_sel_crypt_lib_v5.5' into 'release/v5.5'
Feat/use common config to sel crypt lib (v5.5)

See merge request espressif/esp-idf!46407
2026-04-07 12:11:55 +08:00
Jiang Jiang Jian
8f9b7fd327 Merge branch 'fix/picolibc_setvbuf_ionbf_workaround_v5.5' into 'release/v5.5'
fix(esp_libc): picolibc: add workaround for setvbuf on _IONBF (v5.5)

See merge request espressif/esp-idf!47163
2026-04-07 12:01:53 +08:00
yangfeng
fd0a34056c fix(bt): avoid deleting device record on partial transport cleanup 2026-04-07 10:23:47 +08:00
zhangyanjiao
2c3f1b72a4 feat(wifi): update wifi lib for vendor ie cb and home channel 2026-04-07 10:21:26 +08:00
zhangyanjiao
0e1d7a5c32 feat(wifi): add new api to return home channel info 2026-04-07 10:10:31 +08:00