Commit Graph

36469 Commits

Author SHA1 Message Date
Nachiket Kukade
0f8d4b74a0 feat(esp_wifi): NAN Pairing Improvements and bugfixes
- Route NAN pairing bootstrap via NPBA receive path
- extend datapath_req wait time to fit secured M1-M4 handshake
- Plug ND-PMK derived from KDK into NDP
- prefers paired-peer cached ND-PMK (from PASN pairing complete), when available
- carry ND-PMK metadata in pairing install callback
- Extend PASN key-installed callback payload to include role, mapped NDP CSID
  and derived ND-PMK so the NAN layer can populate paired-peer security cache.

Co-authored-by: Akshat Agrawal <akshat.agrawal@espressif.com>
Co-authored-by: Sarvesh Bodakhe <sarvesh.bodakhe@espressif.com>
2026-05-22 11:30:00 +05:30
Nachiket Kukade
9f361f478d feat(esp_wifi): Add NAN Pairing support
- Add container struct for internal extra params for follow-up
- Support for parsing Shared Key Desc in Pairing follow-up
- Implement NAN Pairing API's with required parameters
- In KeyData set cipher_ver to 0, Key Info to 0x12C8
  (AKM-defined | Pairwise | Install | ACK |
   Secure | Encrypted Key Data) for iOS compatibility
- Move NAN PASN into esp_nan_supplicant.c, move declarations
  to esp_private/esp_supp_nan.h
- Align PASN/ND-PMK derivation with hostap

Co-authored-by: Sajia <sajia.ali@espressif.com>
Co-authored-by: Akshat Agrawal <akshat.agrawal@espressif.com>
Co-authored-by: Sarvesh Bodakhe <sarvesh.bodakhe@espressif.com>
2026-05-22 13:01:51 +08:00
Nachiket Kukade
e731ff3598 feat(wpa_supplicant): Add PASN Support to for NAN Pairing
- Create pasn module from upstream. Changes till 1a791e9c
- Add ecdh prime len api to MbedTLS port
- Integrate nan and pasn modules for PIN code method
- Fix KCK length and add auth timeout
- Add NAN Pairing PASN support
2026-05-22 13:01:51 +08:00
Nachiket Kukade
38182e38c0 feat(esp_wifi): Add NAN pairing bootstrapping APIs for Wi-Fi Aware 4.0
- Implement the bootstrapping handshake phase of NAN pairing (spec 7.6.4.1).
- Add pairing support to NAN Publish/Subscribe APIs:
- Add dummy NIRA , MME Attributes
2026-05-22 13:01:51 +08:00
Laukik Hase
0ee6ddc7db Merge branch 'feat/p4_pms_support' into 'master'
feat(security): Add support for the ESP32-P4 Permission Control (PMS) peripheral

Closes IDF-9997, IDF-13529, IDF-13737, and IDF-14381

See merge request espressif/esp-idf!44205
2026-05-22 09:33:37 +05:30
Wang Meng Yang
fcceb3023f Merge branch 'bugfix/sdp_null_access' into 'master'
fix(bt/bluedroid): fixed SDP deinit race with pending callbacks

Closes BTQABR2023-737

See merge request espressif/esp-idf!48753
2026-05-22 11:44:32 +08:00
Jiang Jiang Jian
90ec41a9f7 Merge branch 'feat/support_rom_psa_mbedtls' into 'master'
feat(mbedtls): enable ESP32-C2(Rev2.0) ROM mbedTLS crypto for PSA

Closes IDF-15012

See merge request espressif/esp-idf!48211
2026-05-22 11:24:42 +08:00
He Binglin
9c3a6b3f5d Merge branch 'feat/esp_idf_h4_optimize' into 'master'
Feat/esp idf h4 retention and active clk power optimize

Closes PM-746, PM-745, and PM-736

See merge request espressif/esp-idf!48319
2026-05-22 10:55:43 +08:00
Island
a22fda94cb Merge branch 'change/ble_update_lib_20260520' into 'master'
change(ble): [AUTO_MR] 20260520 - Update ESP BLE Controller Lib

Closes BLERP-2797

See merge request espressif/esp-idf!48757
2026-05-22 10:14:41 +08:00
morris
c62cd4d1c2 Merge branch 'fix/esp_hal_usb_esp32s31_utmi_phy_default_settings' into 'master'
fix(esp_hal_usb): Fix esp32s31 UTMI PHY default settings:

Closes IDF-15717

See merge request espressif/esp-idf!48748
2026-05-22 10:01:06 +08:00
Ondrej Kosta
fc41e66e47 Merge branch 'feat/gmac_s31' into 'master'
Feat/gmac s31

Closes IDF-14730

See merge request espressif/esp-idf!48029
2026-05-21 22:51:44 +08:00
Suren Gabrielyan
8767c4c05b Merge branch 'fix/ws_transport_reject_oversize' into 'master'
fix(ws_transport): reject oversized 64-bit WebSocket payload length

See merge request espressif/esp-idf!48760
2026-05-21 14:36:40 +00:00
Jiang Jiang Jian
fff1564266 Merge branch 'fix/for_cache_after_p4_wb_loss_issue' into 'master'
fix(esp_rom): avoid critical issue in writeback

See merge request espressif/esp-idf!48498
2026-05-21 22:10:00 +08:00
sonika.rathi
d3a8009684 fix(storage): mark storage pytest apps flaky in CI 2026-05-21 20:35:24 +08:00
Jin Cheng
5d0b77797b fix(bt/bluedroid): fixed SDP deinit race with pending callbacks
Cancel any active SDP search during disabling and mark the BTA SDP
callbacks inactive so late search completions are not propagated
after deinit. Guard BTC side SDP completion handling after cleanup
to avoid null references.
2026-05-21 20:33:35 +08:00
Sonika Rathi
9f2675935a Merge branch 'bugfix/nvs-blockdev-skip-nvs-ram-test' into 'master'
fix(nvs_flash): skip SPIRAM heap test on non-spiram configs

Closes IDFCI-8120, IDFCI-8121, IDFCI-8122, IDFCI-8123, IDFCI-8124, IDFCI-8125, IDFCI-7827, IDFCI-7828, IDFCI-7829, IDFCI-7830, IDFCI-7831, IDFCI-7832, IDFCI-7833, and IDFCI-8077

See merge request espressif/esp-idf!48705
2026-05-21 20:17:32 +08:00
hebinglin
23f1ba150a change(esp_hw_support): change dcm_vset to optimize active and sleep current 2026-05-21 20:03:55 +08:00
hebinglin
a5b75c89d0 change(esp_hw_support): Align modem analog parameters with the active state in h4 2026-05-21 20:03:55 +08:00
hebinglin
1c98c0367d change(esp_hw_support): remove bbpll pu in retention to decrease the retetion duration 2026-05-21 20:03:55 +08:00
hebinglin
1c279178fa feat(esp_hw_support): support bbpll pd in modem state 2026-05-21 20:03:45 +08:00
hebinglin
1bfa301ee6 change(esp_hw_support): pd xtalx2 in modem state and selected as a2s&s2a retention clk 2026-05-21 19:55:38 +08:00
hebinglin
5710783a89 feat(esp_hw_support): support entry 2 xtalx2 power pu in esp32h4 2026-05-21 19:55:37 +08:00
hebinglin
2c91b280f4 change(esp_hw_support): disable some periph clk in cpu start 2026-05-21 19:53:51 +08:00
hebinglin
8104c5c491 feat(esp_hw_support): keep apm_func_ctrl value after sleep 2026-05-21 19:53:51 +08:00
hebinglin
312076e955 feat(esp_hw_support): decrease retention current and duration 2026-05-21 19:53:51 +08:00
hebinglin
b46b72cf19 feat(esp_hw_support): allow lp io clk close in cpu start 2026-05-21 19:53:51 +08:00
Ondrej Kosta
6a82c094fb fix(esp_clk_tree): temporarily disabled gating of all ref_clks on ESP32S31 2026-05-21 13:18:57 +02:00
surengab
d22d5e83b4 fix(ws_transport): reject oversized 64-bit WebSocket payload length 2026-05-21 14:54:12 +04:00
Li Shuai
d7a2e15164 Merge branch 'feat/pm-683' into 'master'
support sleep retention runtime module attach/detach feature

Closes PM-683, PM-656, and BT-4216

See merge request espressif/esp-idf!47164
2026-05-21 17:07:58 +08:00
Laukik Hase
4c39f0d006 ci(hal): Extend support for ESP32-P4 for the PMS HAL test-app 2026-05-21 13:42:18 +05:30
Ondrej Kosta
edbf8856ae feat(esp_eth): add ESP32-S31 EMAC support
Add internal EMAC support for ESP32-S31, including:
- HAL/LL layer: emac_ll, emac_hal, emac_clk, emac_periph for S31
- SOC layer: register structs, soc_caps, peripherals linker script,
  interrupt definitions
- MAC driver: clock source configuration via Kconfig, GPIO/DMA
  adaptations, PHY register defs for clause-45 MDIO
- Ethernet examples updated for S31 (basic, build-test-rules, PTP
  readme)
- Refactored existing ESP32/ESP32-P4 EMAC code for shared patterns
  (emac_clk extraction, struct alignment, periph descriptor cleanup)
2026-05-21 15:59:42 +08:00
Ondrej Kosta
c7d6c41198 feat(clk_tree): support derived PLL clocks
Add a generic derived-PLL clock engine to esp_clk_tree_common that
handles acquire/release, mux selection, and divider programming for
target-defined derived clocks. Per-target descriptors (ESP32-P4,
ESP32-S31) plug into the engine via
esp_clk_tree_get_derived_clk_desc().
2026-05-21 15:59:42 +08:00
Zhou Xiao
1be9cb193f change(ble): [AUTO_MR] Update lib_esp32c6 to 4adb29e0 2026-05-21 15:27:54 +08:00
Zhou Xiao
edac0a5e14 change(ble): [AUTO_MR] Update lib_esp32c5 to 4adb29e0 2026-05-21 15:27:54 +08:00
Zhou Xiao
9ace4422d9 change(ble): [AUTO_MR] Update lib_esp32h2 to 4adb29e0 2026-05-21 15:27:54 +08:00
Laukik Hase
3acb4a3e0c refactor(hal): Refactor and update the ESP32-P4 APM LL/HAL APIs 2026-05-21 12:15:50 +05:30
Laukik Hase
384eba8a11 refactor(soc): Update the ESP32-P4v3+ PMS header files 2026-05-21 12:15:50 +05:30
Mahavir Jain
4811388910 Merge branch 'feat/spiram_enc_exempt' into 'master'
feat(esp_psram): add option to carve unencrypted PSRAM region

Closes IDF-15032

See merge request espressif/esp-idf!48214
2026-05-21 11:36:58 +05:30
wanglei
c7032e78aa fix(esp_rom): both addr and size need align to cache line size 2026-05-21 14:01:16 +08:00
morris
24058b19ee Merge branch 'feat/ana_cmpr_esp32h4_eco1' into 'master'
feat(ana_cmpr): enable ana_cmpr driver support on esp32h4

Closes IDF-12395 and IDF-15224

See merge request espressif/esp-idf!48316
2026-05-21 14:01:03 +08:00
Island
b970c5f674 Merge branch 'ble_dev/esp32h21_chip_20260513' into 'master'
Ble dev/esp32h21 chip 20260513

Closes BLERP-2798, IDF-11626, IDF-11652, IDF-11653, IDF-11655, IDF-14811, IDF-14812, IDF-14813, IDF-14814, and IDF-14815

See merge request espressif/esp-idf!48499
2026-05-21 14:00:09 +08:00
Rahul Tank
b5770ee1ff Merge branch 'feat/esp_insight_read_log_master' into 'master'
feat(nimble): ADD BLE HCI logging support for ESP Insights

See merge request espressif/esp-idf!46706
2026-05-21 11:28:44 +05:30
Armando (Dou Yiwen)
a6c0ea2289 Merge branch 'feat/sdmmc_s31' into 'master'
sdmmc: s31 support

Closes IDF-14705 and IDF-14706

See merge request espressif/esp-idf!47232
2026-05-21 04:59:49 +00:00
morris
3b9eb0b24c Merge branch 'fix/i2c_pd_management' into 'master'
fix(i2c): fix i2c pd management leak & resource recycle

Closes IDF-15642

See merge request espressif/esp-idf!48536
2026-05-21 12:23:32 +08:00
morris
9559f3114d Merge branch 'feat/i2s_destination_config' into 'master'
feat(i2s): add Bluetooth destination config for esp32s31

Closes IDF-15674

See merge request espressif/esp-idf!48482
2026-05-21 12:21:15 +08:00
He Binglin
e3fb6a0047 Merge branch 'feat/esp_idf_h21_keep_apm_func' into 'master'
feat(esp_hw_support): keep esp32h21 apm_func_ctrl value after sleep

See merge request espressif/esp-idf!48733
2026-05-21 12:05:18 +08:00
Li Shuai
00c03f61f0 fix(ci): fix the ci issue of Test target MISMATCH by esp32h21 2026-05-21 11:46:16 +08:00
Jack
5c7a8c0dc3 fix the ci issue Test target MISMATCH 2026-05-21 11:46:16 +08:00
sibeibei
68c9de209b feat(wifi): add sleep retention attach/detach in hw start/stop 2026-05-21 11:46:16 +08:00
Li Shuai
7b541be9d5 add comment for sleep_retention_module_detach interface 2026-05-21 11:46:16 +08:00