Commit Graph
52404 Commits
Author SHA1 Message Date
Sarvesh Bodakhe 2da41618f5 test(wifi): NAN PMK derivation crypto test
Unit-test the ND-PMK derivation path against known-good vectors using
the wpa_supplicant-ported pbkdf2_sha256.
2026-05-19 11:07:07 +05:30
Sarvesh Bodakhe 0244cb362b feat(wifi): NAN encrypted NDP example apps
nan_publisher / nan_subscriber demonstrate the secure NDP path:
publisher acts as the responder + UDP echo server, subscriber as the
initiator. Both support passphrase and pre-shared PMK modes via
menuconfig; PMK hex strings are decoded with the same helper on both
sides so endpoints derive matching PMKIDs.
2026-05-19 11:07:06 +05:30
Sarvesh Bodakhe 94f226d73b feat(wifi): NAN encrypted datapath (Wi-Fi Aware M1-M4 handshake)
Implement the NAN Data Path encrypted datapath per Wi-Fi Aware v4.0
(§7.1.3.5, §9.5.16):

- Responder + initiator sides of the M1-M4 Shared-Key Descriptor
  exchange, with MIC compute/verify, PTK derivation, and PMK/PMKID
  derivation via PBKDF2-SHA256 over passphrase or pre-shared PMK.
- CSIA / SCIA attribute build + parse, NCS-SK-128 cipher suite.
- Per-NDL security context on ndl_info::security_ctx; per-svc PMK cache.
- ndp_response_indication callback for initiator peer-NDI binding.
- host<->blob ABI migrated from 27 direct esp_nan_* externs to a single
  nan_secure_dp_funcs callback struct in esp_private/wifi.h.
- nan_security.c split out of nan_app.c (~340 lines de-duplicated into
  shared M1-M4 helpers).
- CONFIG_ESP_WIFI_NAN_ENCRYPTED_DATAPATH gates the secure path so non-
  security builds compile out the crypto/handshake code.
- ROM patch (esp32s31): mask ieee80211_encap_esfbuf to match the
  c5/c6/c61 pattern for NAN-capable chips.

Hardening: PMK stack copies zeroized on every return, NDP attribute
parsers bounds-checked, CSID range-checked before shifting, NDL slot
reuse only when handshake state is IDLE, get_csia/scia_len aligned with
their builders on empty input.

API surface: NDP security types moved out of esp_wifi_types_generic.h
into esp_private/wifi.h (internal-only). security pointer dropped from
struct ndp_cb_peer_info. Discovery-side wifi_nan_security_type_t and
the NDP Info callbacks removed (subsumed by csid_bitmap and SSI
respectively).
2026-05-19 11:07:06 +05:30
Sarvesh Bodakhe 67aeac85e5 feat(wpa_supplicant): expose pbkdf2_sha256 for NAN crypto
Re-export the pbkdf2_sha256 declaration from sha256.h and add the
mbedTLS-backed implementation in crypto_mbedtls.c. NAN uses this for
ND-PMK derivation from a passphrase; the helper is also available for
any future caller that needs RFC 8018 PBKDF2 over SHA-256.
2026-05-19 10:48:13 +05:30
Island 8f28ebb6d1 Merge branch 'change/ble_update_lib_20260518' into 'master'
change(ble): [AUTO_MR] 20260518 - Update ESP BLE Controller Lib

Closes IDFCI-3078 and BT-4351

See merge request espressif/esp-idf!48652
2026-05-19 11:50:54 +08:00
Jiang Jiang Jian f091260321 Merge branch 'bugfix/update_wifi_scan_threshold_doc' into 'master'
fix(wifi): update auth mode threshold doc

Closes FCS-1689

See merge request espressif/esp-idf!37685
2026-05-19 11:29:18 +08:00
Hu Rui 2981e7ae01 Merge branch 'feat/touch_sleep_esp32s31' into 'master'
feat(touch): support touch sleep on ESP32-S31

Closes IDF-15566 and IDF-14796

See merge request espressif/esp-idf!48443
2026-05-19 11:24:01 +08:00
Chen Ji Chang 43b397eb9e Merge branch 'feat/support_parlio_on_s31' into 'master'
feat(parlio): support parlio on s31

Closes IDF-14711, IDF-14712, IDF-14713, and IDF-15645

See merge request espressif/esp-idf!48028
2026-05-19 10:40:45 +08:00
Shu Chen 51ac8546d5 Merge branch 'feat/add_target_esp32h21' into 'master'
Feat/add target esp32h21

See merge request espressif/esp-idf!48531
2026-05-19 02:39:37 +00:00
Chen Chen 14c3147fd0 Merge branch 'feat/lcd_i2c_use_configurable_timeout' into 'master'
feat(lcd): add configurable timeout for lcd i2c panel

Closes IDFGH-17618 and IDFGH-17619

See merge request espressif/esp-idf!48426
2026-05-19 10:34:39 +08:00
Chen Chen 11e647e1a4 Merge branch 'doc/i2s_esp32_mclk_restriction' into 'master'
docs(i2s): add note for the restriction of MCLK on esp32

Closes IDFGH-17643

See merge request espressif/esp-idf!48313
2026-05-19 10:34:20 +08:00
Wang Meng Yang f04daa713e Merge branch 'bugfix/hfp_reg_data_cb' into 'master'
fix: Remove the check for recv and send being NULL

Closes BT-4329

See merge request espressif/esp-idf!48613
2026-05-19 09:33:34 +08:00
Igor Udot 14816cb743 Merge branch 'ci/reproducible-build-version-txt' into 'master'
ci: reproducible build set version.txt

See merge request espressif/esp-idf!48593
2026-05-19 08:55:41 +08:00
Hu Rui b8d34df12c Merge branch 'fix/touch_reg_typo' into 'master'
fix(touch): fix some typo in reg and ll

See merge request espressif/esp-idf!48586
2026-05-18 19:39:30 +08:00
C.S.M 9a0169eea4 Merge branch 'feat/temperature_esp32s31' into 'master'
feat(tsens): Add tsens support on esp32s31

Closes IDF-14799 and IDF-14800

See merge request espressif/esp-idf!48554
2026-05-18 19:11:09 +08:00
morris 22d07c837e Merge branch 'test/ana_cmpr_cxx_test_app' into 'master'
test(ana_cmpr): migrate analog comparator test sources to C++

See merge request espressif/esp-idf!48512
2026-05-18 18:12:49 +08:00
Chen Ji Chang 2c5fa76a80 Merge branch 'fix/fix_dma2d_async_memcpy_msync' into 'master'
fix(dma2d): fix dma2d async memcpy msync

See merge request espressif/esp-idf!48628
2026-05-18 18:06:45 +08:00
zhaoweiliang 149592acc5 change(ble): [AUTO_MR] Update lib_esp32c6 to 04040491 2026-05-18 18:03:10 +08:00
zhaoweiliang 6f0b0e9a0d change(ble): [AUTO_MR] Update lib_esp32c5 to 04040491 2026-05-18 18:03:10 +08:00
zhaoweiliang 330ae12e18 change(ble): [AUTO_MR] Update lib_esp32h2 to 04040491 2026-05-18 18:03:10 +08:00
Fu Hanxi e470d1a637 Merge branch 'ci/remove_deprecated_sha_update_job' into 'master'
ci: remove deprecated SHA update job

Closes CII-135

See merge request espressif/esp-idf!48198
2026-05-18 11:31:54 +02:00
Island 84e65bebdd Merge branch 'bugfix/fix_ble_reg_notify_no_fail' into 'master'
validate handle in esp_ble_gattc_register_for_notify

Closes BLERP-2717

See merge request espressif/esp-idf!47793
2026-05-18 17:22:49 +08:00
Hu Rui ccf6d53524 feat(touch): support touch sleep on ESP32-S31
Note: deep sleep wake-up currently has issue
2026-05-18 16:53:53 +08:00
Evgeny Torbin 29455e38c2 ci: remove deprecated SHA update job 2026-05-18 15:58:10 +08:00
muhaidong a1d2b468e8 fix(wifi): update auth mode threshold doc 2026-05-18 15:49:34 +08:00
Roland Dobai 40c01e1c11 Merge branch 'ci/forced_esptool_install' into 'master'
CI: Force the update of esptool to the latest dev release in every job

See merge request espressif/esp-idf!48581
2026-05-18 09:46:40 +02:00
Chen Jichang 58e6cad8cd fix(dma2d): fix dma2d async memcpy msync 2026-05-18 15:42:57 +08:00
zhuanghang 26df946075 feat(802.15.4): supported 802.15.4 for esp32h21 2026-05-18 15:15:32 +08:00
yangfeng 42624248d3 fix: Remove the check for recv and send being NULL 2026-05-18 15:11:23 +08:00
David Čermák 1dc52fb289 Merge branch 'test/lwip_mbedtls_psa' into 'master'
fix(lwip): Fix mbedtls PSA API

See merge request espressif/esp-idf!48445
2026-05-18 15:04:54 +08:00
He Binglin 49d8998189 Merge branch 'bugfix/esp_idf_s2_rtc_wdt_mistakenly_enabled' into 'master'
Bugfix/esp idf s2 rtc wdt mistakenly enabled

See merge request espressif/esp-idf!48582
2026-05-18 14:42:17 +08:00
muhaidong b173349c3b fix(wifi): update wifi scan threshold doc 2026-05-18 14:36:01 +08:00
Alexey Lapshin 653e6007e6 Merge branch 'fix/picolibc-disable-c11-annex-k' into 'master'
fix(libc): picolibc: disable C11 annex K in compatibility mode

See merge request espressif/esp-idf!48197
2026-05-18 10:34:43 +04:00
hebinglin 1339cc41f9 change(modem): update esp32h21 modem_syscon header 2026-05-18 14:15:27 +08:00
morrisandCursor 49bb908f3e test(ana_cmpr): migrate analog comparator test sources to C++
Convert test files in the analog comparator test app from C to C++ and update initializations/types for strict C++ compilation while keeping test behavior unchanged.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-18 11:20:06 +08:00
C.S.M e4d26b2572 feat(tsens): Add tsens support on esp32s31 2026-05-18 11:07:58 +08:00
igor.udot ea6b6dac0b ci: reproducible build set version.txt 2026-05-18 10:37:21 +08:00
Chen Chen 0ceada9d0a feat(lcd): add configurable timeout for lcd i2c panel
Closes https://github.com/espressif/esp-idf/issues/18542
Closes https://github.com/espressif/esp-idf/pull/18543
2026-05-18 10:34:12 +08:00
Roland Dobai fce70533fa Merge branch 'fix/component_manager_version' into 'master'
Tools: seed IDF_VERSION before idf.py parses dependencies.lock

Closes IDF-15689

See merge request espressif/esp-idf!48535
2026-05-15 16:25:20 +02:00
Jiang Jiang Jian ef338c61b4 Merge branch 'feat/support_weak_func_wifi_assert' into 'master'
fix(wifi): support weak func for wifi lmac assert

Closes WIFIBUG-1715

See merge request espressif/esp-idf!45496
2026-05-15 20:46:48 +08:00
Sudeep Mohanty d09693fdc8 Merge branch 'fix/freertos_delete_with_caps_smp_race' into 'master'
fix(freertos): close vTaskDeleteWithCaps cross-core delete race on SMP preview kernel

Closes IDFCI-11425

See merge request espressif/esp-idf!48501
2026-05-15 14:41:45 +02:00
Jiang Jiang Jian 900a72f7b6 Merge branch 'bugfix/roaming_app_track_data' into 'master'
fix(roaming): prevent timeout payload double-free on deinit

Closes WIFIBUG-1880

See merge request espressif/esp-idf!48361
2026-05-15 19:43:12 +08:00
Island 2d1033d4f8 Merge branch 'update/ble_iso_expose_i2s_api' into 'master'
fix(ble): Fix ble iso i2s API missing issue

See merge request espressif/esp-idf!48506
2026-05-15 18:05:12 +08:00
Hu Rui cc9cda4069 fix(touch): fix some typo in reg and ll 2026-05-15 17:49:26 +08:00
zhanghaipeng 747c9adeaa fix(bt/bluedroid): validate handle in esp_ble_gattc_register_for_notify 2026-05-15 17:48:39 +08:00
Roland Dobai 44772bf454 ci(gitlab): Force the update of esptool to the latest dev release 2026-05-15 11:33:19 +02:00
hebinglin 482eb947c7 fix(esp_hw_support): fix rtc wdt mistakenly enabled during lslp in esp32s2 2026-05-15 17:31:51 +08:00
Chen Jichang 78e47e3ebf feat(parlio): support parlio on s31 2026-05-15 16:53:17 +08:00
Jiang Jiang Jian 1adf5e6613 Merge branch 'feat/support_esp3261_cert_test_example' into 'master'
feat(phy): support esp32c61 example cert test and antenna

Closes WIFI-6696 and IDF-9859

See merge request espressif/esp-idf!47122
2026-05-15 16:48:24 +08:00
Chen Chen a766fcf526 docs(i2s): add note for the restriction of MCLK on esp32
Closes https://github.com/espressif/esp-idf/issues/18564
2026-05-15 16:36:14 +08:00