Commit Graph

38043 Commits

Author SHA1 Message Date
Sarvesh Bodakhe
94988c5aa4 fix(wpa_supplicant): accept NIK follow-up key descriptor with Key Type=0
iPhone (and hostap) set Key Type=0 in the pairing NIK follow-up Shared-Key
Descriptor (key_info=0x1340) since the NIK is not a pairwise key. We required
the pairwise bit and rejected the frame before decryption, so the NIK
exchange timed out and pairing was torn down. Require only the Encrypted
Key Data bit.
2026-08-06 17:25:35 +05:30
Mahavir Jain
846b17f1bd Merge branch 'fix/fix_esp_mbedtls_read_return_code' into 'master'
fix(esp-tls): correct return codes and harden TLS 1.3 ticket handling

Closes SEC-237, SEC-359, and SEC-360

See merge request espressif/esp-idf!48720
2026-08-06 16:10:05 +05:30
Erhan Kurubas
cc6cc219f8 Merge branch 'esp32s31_trace_encoder' into 'master'
feat(esp_riscv_trace): add ESP32-S31 support

See merge request espressif/esp-idf!51350
2026-08-06 12:38:03 +02:00
Alexey Lapshin
366ce3ebed Merge branch 'fix/kasan_heap_alignment' into 'master'
fix(heap): preserve aligned allocation with KASAN

See merge request espressif/esp-idf!51186
2026-08-06 14:06:58 +04:00
Ondrej Kosta
4d9524b308 Merge branch 'fix/ethernet_init_ver' into 'master'
ci(esp_eth): use fixed version of eth_test_app

See merge request espressif/esp-idf!51555
2026-08-06 16:51:05 +08:00
sibeibei
2b528716be fix(scan): prioritize if1_conn check for home channel return logic 2026-08-06 15:39:06 +08:00
Song Ruo Jing
1f2ea33cd8 Merge branch 'fix/h4_s31_enable_multi_board_test' into 'master'
fix(ci): re-enable some LEDC/UART tests for H4, S31

Closes IDF-15610 and IDF-15619

See merge request espressif/esp-idf!51529
2026-08-06 15:27:38 +08:00
Ondrej Kosta
fb07be93ba ci(esp_eth): use fixed version of eth_test_app 2026-08-06 15:03:08 +08:00
Mahavir Jain
2495e37a48 Merge branch 'feat/pma_pmp_lock_policy' into 'master'
Stop locking PMP in the bootloader and freeze the entry layout

See merge request espressif/esp-idf!50326
2026-08-06 11:31:39 +05:30
Ashish Sharma
06f2672046 fix(esp-tls): correct return codes and harden TLS 1.3 ticket handling 2026-08-06 13:52:21 +08:00
Erhan Kurubas
3dfd8f0154 feat(esp_riscv_trace): add ESP32-S31 support
ESP32-S31 uses the same trace encoder IP as ESP32-P4. Of the E-Trace v2.0
parameters the two targets report, only privilege_width_p differs (1 on P4,
2 on S31), and it affects both the sync packet layout and the filter's
privilege selector.

- Add the SOC_RISCV_TRACE_* caps for ESP32-S31 along with the esp32s31 LL, and
  declare TRACE0/TRACE1 in the target's trace_struct.h.
- Carry privilege_width_p as SOC_RISCV_TRACE_PRIV_WIDTH so the sync packet
  decoder can locate the address field, which starts one bit later on targets
  that implement supervisor mode.
- Use the RISC-V architectural privilege encoding (0 user, 1 supervisor,
  3 machine) in the public filter enum so the values do not change per target,
  and let each LL narrow them to its own register field.
- Add riscv_trace_ll_priv_is_supported() per target, so a privilege level the
  selector cannot represent is rejected with ESP_ERR_NOT_SUPPORTED rather than
  being silently narrowed to a different level. It lives next to the narrowing
  code so the two cannot drift apart.
- Fix trace buffer allocation on targets whose internal RAM is not reached
  through a cache. esp_cache_get_alignment() reports 0 there, which underflowed
  the size check and failed every allocation. Align base and size to the larger
  of the reported cache line and the encoder's 4-byte write granularity.
2026-08-06 13:08:26 +08:00
Jiang Jiang Jian
a063a8440f Merge branch 'fix/fix_scan_and_connect_issue' into 'master'
fix(wifi): fix wifi scan and wps connect issue

Closes WIFIBUG-2051

See merge request espressif/esp-idf!51528
2026-08-06 10:56:41 +08:00
Sudeep Mohanty
9b35fd4405 Merge branch 'fix/ulp_full_build_test_fix' into 'master'
fix(cxx): skip flag setup for custom-toolchain subprojects

Closes IDFCI-13457

See merge request espressif/esp-idf!51545
2026-08-05 12:25:37 +02:00
Sudeep Mohanty
39f757ebce fix(cxx): skip flag setup for custom-toolchain subprojects
Skip processing cxx/project_include.cmake when building subprojects such
as ULP as they use custom toolchain and IDF toolchain helpers are not
available.
2026-08-05 11:14:05 +02:00
Sudeep Mohanty
cbc4dff964 Merge branch 'feat/ulp_custom_linker_support' into 'master'
ULP: Support custom LP Core linker layouts via the LINKER option

Closes IDF-12902

See merge request espressif/esp-idf!49991
2026-08-05 10:10:32 +02:00
Mahavir Jain
c9095b026f Merge branch 'feat/disable_constant_time_rsa_key_gen' into 'master'
fix(mbedtls): revert to non constant time rsa key gen

See merge request espressif/esp-idf!51026
2026-08-05 12:52:27 +05:30
Gao Xu
db9e5b4d31 Merge branch 'feat/rng_support_h21' into 'master'
H21 RNG support

Closes IDF-11503

See merge request espressif/esp-idf!50061
2026-08-05 14:15:43 +08:00
Mahavir Jain
d9f42b3fc6 Merge branch 'update/update_certs_bundle' into 'master'
Update esp_crt_bundle certificates

See merge request espressif/esp-idf!50852
2026-08-05 10:42:06 +05:30
Mahavir Jain
5e9ca673ac Merge branch 'contrib/github_pr_18880' into 'master'
fix(esp_https_ota): Add missing requirement to `bootloader_support` component (GitHub PR)

Closes IDFGH-18024

See merge request espressif/esp-idf!51505
2026-08-05 10:05:20 +05:30
Island
2720caabb1 Merge branch 'idf/ble_audio_fixes' into 'master'
fix(ble_audio): Miscellaneous fixes for ISO & LE Audio (stage 2)

See merge request espressif/esp-idf!51158
2026-08-05 10:47:55 +08:00
Sudeep Mohanty
60dc69391b Merge branch 'feat/buildv2_kasan' into 'master'
feat(build): support KASAN in the build system v2 (cmakev2)

See merge request espressif/esp-idf!51408
2026-08-04 17:34:00 +02:00
Song Ruo Jing
28acedf295 fix(ci): re-enable some LEDC/UART tests for H4, S31 2026-08-04 21:23:44 +08:00
wangtao@espressif.com
bbccbd5b1d fix(wifi): fix wifi scan and wps connect issue 2026-08-04 20:33:34 +08:00
Alexey Gerenkov
72732994ef Merge branch 'feature/enable_atomic_lock_policy_on_riscv' into 'master'
feat(build): add CONFIG_COMPILER_CXX_ATOMIC_LOCK_POLICY option

See merge request espressif/esp-idf!49913
2026-08-04 20:05:40 +08:00
Jiang Jiang Jian
43b98a4fcc Merge branch 'bugfix/fix_disconnect_failure_issue' into 'master'
fix(wifi): fix disconnect failure issue

Closes WIFI-7510

See merge request espressif/esp-idf!51176
2026-08-04 19:45:45 +08:00
Alexey Lapshin
36586b15d6 Merge branch 'fix/newlib_builds' into 'master'
Fix: newlib compatibility with libraries built with picolibc headers

Closes IDF-15962

See merge request espressif/esp-idf!51013
2026-08-04 14:41:32 +04:00
Alexey Lapshin
3003d738eb Merge branch 'fix/heap_trace_stack_corruption' into 'master'
fix(heap): avoid stack smash when heap tracing stack depth is 0

See merge request espressif/esp-idf!51416
2026-08-04 14:28:47 +04:00
muhaidong
33d39c304f fix(wifi): fix disconnect failure issue 2026-08-04 15:42:39 +08:00
Jiang Jiang Jian
bcce5b96c1 Merge branch 'fix/add_workaround_for_s31_beacon_timestamp_issue' into 'master'
fix(wifi): add workaround for s31 beacon timestamp issue

Closes WIFI-7526 and WIFIBUG-2039

See merge request espressif/esp-idf!51264
2026-08-04 14:48:08 +08:00
Rahul Tank
b5ced8374f Merge branch 'bugfix/add_nimble_cve' into 'master'
fix(nimble): Fixes for various NimBLE CVEs

See merge request espressif/esp-idf!51159
2026-08-04 12:13:47 +05:30
Zhang Wen Xu
bcda63636a Merge branch 'feat/ot_rx_sensitivity' into 'master'
feat(openthread): use the actual receive sensitivity for link quality evaluation

See merge request espressif/esp-idf!51309
2026-08-04 06:31:35 +00:00
Liu Linyan
af9ae1c0aa fix(ble_audio): Miscellaneous fixes for ISO & LE Audio (stage 2) 2026-08-04 14:07:10 +08:00
Island
94cce227dc Merge branch 'fix/ble_mesh_added_gatt_err_rsp' into 'master'
fix(ble_mesh): align GATTS read/write response handling with ATT

See merge request espressif/esp-idf!51382
2026-08-04 10:44:55 +08:00
Shu Chen
52790bf4f5 feat(openthread): use the actual receive sensitivity for link quality evaluation 2026-08-04 02:39:08 +00:00
Sudeep Mohanty
9c778c954c feat(build): support KASAN in the build system v2 (cmakev2)
Mirror Kernel Address Sanitizer support into cmakev2 so that
CONFIG_COMPILER_KASAN instruments application code the same way build system v1
does.
2026-08-03 17:31:17 +02:00
yinqingzhao
ab8568f547 fix(wifi): add workaround for s31 beacon timestamp issue 2026-08-03 21:48:27 +08:00
Rahul Tank
e64735cbf6 fix(nimble): Fixes for various NimBLE CVEs 2026-08-03 16:47:17 +05:30
Island
cf4564ffe4 Merge branch 'fix/fix_on_rf_regdma_trigger' into 'master'
Fix/fix on rf regdma trigger

Closes BLERP-2995

See merge request espressif/esp-idf!51272
2026-08-03 18:01:13 +08:00
Steven (Yang Minghui)
8588a299ac Merge branch 'feat/tsens_intr_priority_configurable' into 'master'
feat(tsens): support configurable interrupt priority

Closes IDF-7960

See merge request espressif/esp-idf!51413
2026-08-03 17:20:14 +08:00
Alexey Lapshin
aecc6eab60 fix(heap): avoid stack smash when heap tracing stack depth is 0
On RISC-V without frame pointers, STACK_DEPTH defaults to 0, so
alloced_by[] is empty. Writing callers[0] still ran and overwrote the
caller's cm.push saved ra, causing an illegal-instruction fault after
the first traced malloc (e.g. with HEAP_TRACING on ESP32-S31).
2026-08-03 16:07:54 +07:00
Mahavir Jain
628c1f8785 Merge branch 'fix/harden_esp_hw_support' into 'master'
fix(esp_hw_support): harden memprot and fix bugs

Closes SEC-234, SEC-235, SEC-331, SEC-334, SEC-332, and SEC-333

See merge request espressif/esp-idf!49919
2026-08-03 14:24:39 +05:30
Chen Chen
a0ecc0611a Merge branch 'fix/i2s_tdm_5slot_clock_test' into 'master'
fix(hal): prevent overflow in fractional clock division

See merge request espressif/esp-idf!51357
2026-08-03 15:14:41 +08:00
Steven (Yang Minghui)
cd8cea7e61 feat(tsens): support configurable interrupt priority 2026-08-03 15:12:58 +08:00
Alexey Lapshin
2c0ecc64fa fix(heap): preserve aligned allocation with KASAN
Account for the left redzone when aligning user pointers.
Add regression coverage for KASAN-enabled allocations.
2026-08-03 13:13:16 +07:00
Wan Lei
6d980d673f Merge branch 'contrib/github_pr_18898' into 'master'
fix(spi_master): avoid NULL memcpy when DMA buffer setup fails (GitHub PR)

Closes IDFGH-18048

See merge request espressif/esp-idf!51277
2026-08-03 11:43:18 +08:00
morris
ceec18c51e Merge branch 'fix/sdio_revert_intrstatus_alloc' into 'master'
fix(sdio): restore generic interrupt allocation

See merge request espressif/esp-idf!51389
2026-08-03 11:39:46 +08:00
luoxu
ed1f4de3a3 fix(ble_mesh): align GATTS read/write response handling with ATT
bt_mesh_bta_gatts_cb did not always answer ATT Read/Write Requests:
- READ: on a callback error it only logged a warning and sent nothing; a
  0-byte read (Read Blob at an offset equal to the value length) also sent
  nothing, although it is a successful empty read.
- WRITE: on a callback error it sent nothing, and a partial/zero write was
  treated as success.
- Both: when the handle was not found or the attribute had no read/write
  callback, the request was silently dropped.

An ATT Request must always be answered:

- READ: len >= 0 is success -> Read Response (a 0-byte read yields an empty
  value); len < 0 -> ATT Error Response carrying the callback's error code
  (-len, since BLE_MESH_GATT_ERR(x) == -x). The copy length is clamped to
  the source buffer size as a defensive bound. If the handle is unknown or
  the attribute has no read callback, respond with INVALID_HANDLE /
  READ_NOT_PERMITTED.
- WRITE: when need_rsp is set, always reply. len == write length -> Write
  Response; otherwise (negative ATT error, partial write, or 0) -> ATT
  Error Response (the negative code, or UNLIKELY for partial/0). If the
  handle is unknown or the attribute has no write callback, respond with
  INVALID_HANDLE / WRITE_NOT_PERMITTED. Write Without Response still sends
  no response.

A non-success status passed to BTA_GATTS_SendRsp is turned into an ATT
Error Response by the GATT layer (gatt_sr_process_app_rsp ->
gatt_send_error_rsp).
2026-08-03 11:13:28 +08:00
cjin
12474f80a7 fix(phy): add fe dependency when enable rf with regdma 2026-08-03 10:21:32 +08:00
cjin
6f5e9e7b8e fix(sleep): fix reject trigger when wifi is enabled 2026-08-03 10:21:32 +08:00
Island
5371ee669b Merge branch 'feat/support_pawr_connect_evt' into 'master'
feat(ble/bluedroid): Support PAWR connection event

See merge request espressif/esp-idf!50612
2026-08-03 10:16:58 +08:00