Commit Graph
36903 Commits
Author SHA1 Message Date
Mahavir Jain ffaf55cd6b Merge branch 'fix/align_sw_psa_drivers_and_hw_esp_psa_drivers_v6.1' into 'release/v6.1'
Align s/w and h/w PSA drivers (v6.1)

See merge request espressif/esp-idf!49704
2026-07-02 15:22:15 +05:30
Jiang Jiang Jian 88554f3551 Merge branch 'fix/backport_some_wifi_fixes_v6.1' into 'release/v6.1'
fix(wifi): backport some wifi fixes to v6.1

See merge request espressif/esp-idf!50183
2026-07-02 17:38:57 +08:00
Ashish Sharma 33cb603e02 fix(mbedtls/port): add additional hardening for PSA drivers 2026-07-01 17:41:48 +08:00
harshal.patil b5d16d86dc fix(mbedtls/port): align ESP PSA hardware drivers with software references
Audited every esp_* PSA driver against its corresponding software driver in
mbedtls/library (psa_crypto_cipher.c, psa_crypto_aead.c, psa_crypto_mac.c,
psa_crypto_hash.c, psa_crypto_ecp.c, psa_crypto_rsa.c) and fixed gaps in
workflow ownership, error-path cleanup, sensitive-data wiping, and BAD_STATE
gating per the PSA Crypto API spec.

esp_aes (cipher): fix padding oracle in cipher_finish by replacing leaky
branches with mbedtls_ct_* primitives; abort wipes the driver-level ctx,
not just the inner mbedtls_aes_context; setup routes errors through abort.

esp_aes_gcm (AEAD): zeroize the 16-byte full_tag scratch; restore the
*output_length = finish_output_size assignment that the SW reference keeps
for future ciphers; NULL the inner ctx pointer after free in abort; gate
update/finish on a live ctx with PSA_ERROR_BAD_STATE.

esp_ecdsa: keep abort-at-exit in the one-shot wrappers so the stack-copy
of the hash (needed for little-endian byte order on HW) is wiped per
PSA spec 6.3.3, drop the over-defensive public-key qx/qy wipes that the
SW driver does not perform.

esp_cmac / esp_hmac_transparent / esp_hmac_opaque (MAC): make abort
idempotent, route setup errors through abort, gate update/finish/
verify_finish on PSA_ERROR_BAD_STATE, wipe M_last and intermediate hmac[]
buffers on completion or HW failure. HMAC opaque gains alg + computed
fields to mirror the SW psa_crypto_mac.c state machine. HMAC transparent
explicitly aborts the inner SHA context before reusing it for the outer
hash.

esp_sha: switch the per-op live indicator to (sha_ctx != NULL) so the
public esp_sha_operation_type_t enum keeps its original ordinal values;
free + NULL sha_ctx on every error path; gate update/finish/clone on a
live ctx; wipe per-algorithm core/parallel-engine scratch buffers
(W[], A[], state) on HW-engine failure.

esp_md5: replace bare memset in abort with mbedtls_platform_zeroize.

esp_rsa_ds: complete() no longer frees sig_buffer (abort owns that);
start() routes failures through abort; asymmetric_decrypt funnels all
cleanup through a single exit: label. RSA-DS utilities wipe the
decrypted-plaintext scratch on v15 / OAEP unpad failure.
2026-07-01 17:41:48 +08:00
morris 9583d6df06 Merge branch 'feat/async_color_converter_v6.1' into 'release/v6.1'
feat(esp_driver_dma): add async color convert driver (v6.1)

See merge request espressif/esp-idf!49747
2026-07-01 10:22:42 +08:00
Jiang Jiang Jian cf515d20d7 Merge branch 'feat/support_usb_wakeup_v6.1' into 'release/v6.1'
feat: support usb as wakeup source from light sleep (v6.1)

See merge request espressif/esp-idf!49497
2026-06-30 19:40:33 +08:00
Jiang Jiang Jian f71890ccec Merge branch 'bugfix/ai_review_btu_common_v6.1' into 'release/v6.1'
fix: Fix the critical issues of btu and bt_common from AI review report (v6.1)

See merge request espressif/esp-idf!50121
2026-06-30 17:37:34 +08:00
yinqingzhao 5e3d5f8303 fix(wifi): fix tx issues introduced by keeping alive optimization 2026-06-30 15:13:36 +08:00
yinqingzhao e08a582209 fix(wifi): comment out functions from ld files 2026-06-30 15:13:26 +08:00
igor.udot 183273899f ci: skip h21 for coex_unit_test 2026-06-30 14:58:42 +08:00
zhangyanjiao 525928eee6 fix(wifi): added start check when calling smartconfig stop 2026-06-30 14:57:57 +08:00
Akshat Agrawal 6a22a21687 Remove hardcoded GSP subattributes 2026-06-30 14:57:04 +08:00
Akshat Agrawal 2151a0003f Fix unwanted encryption of NAFs 2026-06-30 14:56:55 +08:00
Nachiket Kukade 478be42bd1 feat(nan): Add aes_wrap/unwrap crypto callbacks
- Use crypto callbacks instead of calling internal API's
- Clean up of unused code, flags. Re-arrange functions
2026-06-30 14:56:45 +08:00
Akshat Agrawal 7475e1bced Address review comments VNC 2026-06-30 14:56:35 +08:00
Akshat Agrawal ff5df2e245 Address review comments and fix build errors 2026-06-30 14:56:26 +08:00
Akshat Agrawal 8a69a08567 fix(nan): Add service hash to NVS to maintain pairing states after reset 2026-06-30 14:56:18 +08:00
Akshat Agrawal fb56779fd1 Change the NIRA verification logic 2026-06-30 14:56:10 +08:00
Akshat Agrawal f3c2ff4019 fix(nan): Disable/Enable Pairing setup bit based on NIK stored in NVS
- Only send pairing followup only if nik caching is enabled
2026-06-30 14:56:00 +08:00
Nachiket Kukade ebf7dc9b31 feat(nan): persist NIK/NPK credentials in NVS
Replace nik/nik_valid in wifi_nan_sync_config_t with reset_current_nvs_creds
and use_nvs_for_caching. On NAN start, load the saved own NIK and peer
credentials from NVS (or erase them when reset is requested); generate and
persist a fresh own NIK only when none is valid and caching is enabled.

PASN reuses the SAE module (PWE/crypto and the comeback-token mechanism),
so define CONFIG_SAE whenever SoftAP-SAE or PASN is enabled. This fixes the
undefined references to check_comeback_token()/auth_build_token_req() when
SOFTAP config is disabled.
2026-06-30 14:55:51 +08:00
Nachiket Kukade e70033e6a7 refactor(nan): consolidate NIRA construction into esp_nan_construct_nira 2026-06-30 14:55:39 +08:00
Akshat Agrawal e9c4cfa0a5 Add pairing followup timeout and post CONFIRM Failure 2026-06-30 14:55:30 +08:00
Nachiket Kukade cf95c2ad90 fix(nan): Move Pairing API's to private header 2026-06-30 14:55:18 +08:00
Nachiket Kukade fd550bd66b fix(nan): address esp_ai_reviewer review comments 2026-06-30 14:55:08 +08:00
Akshat Agrawal 2e2e63e3d3 Address Review comments 2026-06-30 14:54:58 +08:00
Akshat Agrawal 3e81bc86c7 fix(nan): fix NAN pairing NIK/NIRA exchange and verification
Register esp_nan_verify_nira, cache NIRA for publish frames, send own_nik
in pairing follow-up, and complete pairing only after peer NIK is stored.
2026-06-30 14:54:14 +08:00
Akshat Agrawal 8ae605b70f fix(nan): Add CLUSTER_JOIN Event and Cluster merging feat 2026-06-30 14:54:05 +08:00
Akshat Agrawal b027033c98 fix(nan): Add NDP Setup timeout at the publisher side
- fix PASN initiator pmksa_cache_get() usage with the extra argument
- Add attributes to secured NDP frames according to Specs
- Resolve M2 MIC verification failure in secured datapath
2026-06-30 14:53:56 +08:00
muhaidong ba9f628f88 feat(coex): add external coex unit test for esp32h4 and esp32h21 2026-06-30 14:52:33 +08:00
muhaidong d7ac95f709 fix(coex): remove unsupported external coex soc caps 2026-06-30 14:52:19 +08:00
Sajia a1ab8394cc feat(ftm): Update ftm calibration values esp32s31 2026-06-30 14:52:08 +08:00
muhaidong 84beb7abcd fix(wifi): post disconnect event after disassociation tx callback 2026-06-30 14:51:56 +08:00
yinqingzhao 09589e3425 fix(wifi): fix still performing active scan on unsupported channels in auto policy 2026-06-30 14:51:35 +08:00
yinqingzhao 7a06b7db28 fix(wifi): fix cache access error in wifi interrupt with psram enabled 2026-06-30 14:51:09 +08:00
Jiang Jiang Jian 24d35f4c04 Merge branch 'bugfix/ai_review_a2dp_v6.1' into 'release/v6.1'
fix(bt): Fix the critical issues related to A2DP from AI review report (v6.1)

See merge request espressif/esp-idf!50127
2026-06-30 14:24:19 +08:00
Jiang Jiang Jian 7016e338b6 Merge branch 'feat/optimize_154_debug_v6.1' into 'release/v6.1'
feat(802.15.4): avoid missing abort reason for multievents in 154 debug (v6.1)

See merge request espressif/esp-idf!50120
2026-06-30 14:24:09 +08:00
Jiang Jiang Jian 8264c9589c Merge branch 'bugfix/fix_bluedroid_rpa_whitelist_conn_v6.1' into 'release/v6.1'
Fix connection failure when using RPA with whitelist filtering(ESP32) (6.1)

See merge request espressif/esp-idf!50092
2026-06-30 14:23:29 +08:00
Jiang Jiang Jian b0cd9819ee Merge branch 'bugfix/fix_bluedroid_static_random_conn_rpa_v6.1' into 'release/v6.1'
fix(ble/bluedroid): skip identity conversion for static random direct connect (6.1)

See merge request espressif/esp-idf!50086
2026-06-30 14:23:18 +08:00
Jiang Jiang Jian 6e1ac00adb Merge branch 'feat/add_ble_core_6x_feature_for_bluedroid_v6.1' into 'release/v6.1'
Feat/add ble core 6x feature for bluedroid (6.1)

See merge request espressif/esp-idf!50054
2026-06-30 14:21:41 +08:00
Jiang Jiang Jian 3efceac515 Merge branch 'change/esp_idf_dpd_optimize_v6.1' into 'release/v6.1'
Change/esp idf dpd optimize v6.1

See merge request espressif/esp-idf!50039
2026-06-30 14:21:10 +08:00
Jiang Jiang Jian 7219860f52 Merge branch 'bugfix/ai_review_avrcp_v6.1' into 'release/v6.1'
fix(bt): Fix the critical and high issues related to AVRCP from AI review report (v6.1)

See merge request espressif/esp-idf!50019
2026-06-30 14:20:16 +08:00
Jiang Jiang Jian e2a7c8b36c Merge branch 'bugfix/ai_review_hfp_v6.1' into 'release/v6.1'
fix(bt): Fix the critical issues related to HFP from AI review report (v6.1)

See merge request espressif/esp-idf!50006
2026-06-30 14:19:53 +08:00
Jiang Jiang Jian 74402d2c43 Merge branch 'feat/spi_log_qa_frame_check_v6.1' into 'release/v6.1'
feat(ble_log): add FINAL_STAT session-end frame and flush hook before controller restart (6.1)

See merge request espressif/esp-idf!49959
2026-06-30 14:18:54 +08:00
Jiang Jiang Jian 27f0ff78da Merge branch 'fix/httpd_clang_tidy_missing_close_v6.1' into 'release/v6.1'
fix(network/http_server): fix clang-tidy warnings for missing close (v6.1)

See merge request espressif/esp-idf!49863
2026-06-30 14:17:15 +08:00
Jiang Jiang Jian 6076baf054 Merge branch 'fix/use_unilock_for_sleep_process_v6.1' into 'release/v6.1'
fix(esp_hw_support): use same lock for lightsleep/deepsleep process (v6.1)

See merge request espressif/esp-idf!49848
2026-06-30 14:16:41 +08:00
Jiang Jiang Jian 6d69cde133 Merge branch 'bugfix/ag_unknown_codec_v6.1' into 'release/v6.1'
fix(bt): skip unknown codecs when parsing AT+BAC(v6.1)

See merge request espressif/esp-idf!49839
2026-06-30 14:16:32 +08:00
Jiang Jiang Jian 2152f07b36 Merge branch 'backport-49753-to-release/v6.1' into 'release/v6.1'
feat: update_s31_wifi_low_power V6.1

See merge request espressif/esp-idf!49813
2026-06-30 14:15:45 +08:00
Jiang Jiang Jian 9d36edbe30 Merge branch 'feat/ble-smp-multi-adv-static-random-address_v6.1' into 'release/v6.1'
feat(ble/bluedroid): Add BLE SMP support for multi-ADV with static random addresses (6.1)

See merge request espressif/esp-idf!49790
2026-06-30 14:15:32 +08:00
Jiang Jiang Jian 03f0364c0c Merge branch 'idf/ble_audio_mcc_fixes_v6.1' into 'release/v6.1'
fix(ble_audio): Fix mcc read may enter BUSY state while multiple notifications are received (v6.1)

See merge request espressif/esp-idf!49776
2026-06-30 14:15:10 +08:00
Jiang Jiang Jian d7053ae578 Merge branch 'fix/move_system_retention_to_esp_hw_support_v6.1' into 'release/v6.1'
refactor(esp_hw_support): move system_periph_retention from soc to esp_hw_support (v6.1)

See merge request espressif/esp-idf!49749
2026-06-30 14:14:08 +08:00