Commit Graph
37131 Commits
Author SHA1 Message Date
zhanghaipeng cc62c8bfb4 fix(bt): update ESP32 libbtdm_app.a to 4a0f94d5
- Fix connection failure when using RPA with whitelist filtering
- Fix disconnect with reason 0x08 during full scan
- Fix peer RPA resolution failure when advertising with a local identity address
2026-06-25 19:34:13 +08:00
igor.udot f2a8beca37 ci: skip h21 for coex_unit_test 2026-06-25 14:27:12 +08:00
Meet Patel d51e467e7c Merge branch 'feature/add_kasan_support' into 'master'
feat(kasan): add Kernel Address Sanitizer (KASAN) support for ESP-IDF

Closes IDF-13467

See merge request espressif/esp-idf!48106
2026-06-25 11:30:48 +05:30
Island d598b2d14d Merge branch 'feat/add_ble_core_6x_feature_for_bluedroid' into 'master'
Feat/add ble core 6x feature for bluedroid

See merge request espressif/esp-idf!49409
2026-06-25 12:01:05 +08:00
morris 4555f005eb Merge branch 'fix/fix_rgb_frame_buffer_alignment' into 'master'
fix(gdma): fix buffer alignment when psram ecc enabled

Closes IDFGH-17836

See merge request espressif/esp-idf!49936
2026-06-25 10:17:02 +08:00
Wang Meng Yang d0a96988f2 Merge branch 'bugfix/ai_review_avrcp' into 'master'
fix(bt): Fix the critical and high issues related to AVRCP from AI review report

See merge request espressif/esp-idf!49375
2026-06-24 21:25:54 +08:00
Jiang Jiang Jian 87a6c90160 Merge branch 'bugfix/pub_ndp_setup_timeout' into 'master'
fix(nan): Cluster merging and NIK NVS persistence, including pairing and NDP fixes

Closes WIFIBUG-1932, WIFIBUG-1931, WIFIBUG-1927, WIFIBUG-1942, WIFIBUG-1948, WIFIBUG-1955, WIFIBUG-1986, and WIFIBUG-1975

See merge request espressif/esp-idf!49185
2026-06-24 20:57:22 +08:00
Wang Meng Yang 3be1a334c0 Merge branch 'bugfix/ai_review_hfp' into 'master'
fix(bt): Fix the critical issues related to HFP from AI review report

See merge request espressif/esp-idf!49400
2026-06-24 20:54:46 +08:00
Sonika Rathi 752e91b89a Merge branch 'bugfix/idf-15330-fatfs-normalize-cli-output' into 'master'
fix(fatfs): normalize fatfs Python tool CLI output

Closes IDF-15330

See merge request espressif/esp-idf!49271
2026-06-24 19:13:26 +08:00
zhiweijian 919622c01c feat(ble/bluedroid): add CS Security Requirements host support (Core 6.3) 2026-06-24 17:54:53 +08:00
zhiweijian 3844e24207 feat(ble/bluedroid): add LE UTP host support (Core 6.2) 2026-06-24 17:54:53 +08:00
zhiweijianandCursor 2a8a96d650 feat(ble/bluedroid): add Shorter Connection Intervals host support (Core 6.2)
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-24 17:54:53 +08:00
Jiang Jiang Jian 05ea6b2900 Merge branch 'bugfix/fix_some_external_coex_issues' into 'master'
Bugfix/fix some external coex issues

See merge request espressif/esp-idf!49259
2026-06-24 17:45:52 +08:00
Chen Jichang 0853d69715 fix(gdma): fix buffer alignment when psram ecc enabled
Closes https://github.com/espressif/esp-idf/issues/18739
2026-06-24 17:02:39 +08:00
Sonika Rathi 5dc3bddd20 Merge branch 'bugfix/nvs-partition-tool-normalize-output' into 'master'
fix(nvs_flash): normalize nvs partition tool CLI output

Closes IDF-15333

See merge request espressif/esp-idf!49198
2026-06-24 16:54:58 +08:00
zhiweijian d568f2f151 feat(ble/bluedroid): add LL Extended Feature Set host support (Core 6.0) 2026-06-24 16:53:37 +08:00
zhiweijianandCursor 5372ce03a3 feat(ble/bluedroid): add Frame Space Update host support (Core 6.0)
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-24 16:52:45 +08:00
Jiang Jiang Jian 16da34ad67 Merge branch 'feat/ftm_esp32s31_calib_values' into 'master'
feat(ftm): Update ftm calibration values esp32s31

See merge request espressif/esp-idf!49221
2026-06-24 16:28:29 +08:00
Shu Chen d65661fcf6 Merge branch 'fix/initialize_s_spi_transaction_to_0' into 'master'
fix(openthread): use spi slave tx_length/rx_length and remove rx DMA bounce buffer

See merge request espressif/esp-idf!49808
2026-06-24 08:00:59 +00:00
zhiweijian e20d3f0197 feat(ble/bluedroid): add DBAF host support (Core 6.0) 2026-06-24 16:00:19 +08:00
Song Ruo Jing 37a08bd973 Merge branch 'contrib/github_pr_18677' into 'master'
uart: fix threshold configuration loss when interrupts are disabled (GitHub PR)

Closes IDFGH-17749 and IDFGH-12052

See merge request espressif/esp-idf!49943
2026-06-24 15:54:16 +08:00
Meet Patel 383e9adb82 feat(kasan): add Kernel Address Sanitizer (KASAN) support for ESP-IDF
Add KASAN support for detecting heap memory safety bugs (buffer
overflows, underflows, use-after-free) at runtime using compiler
instrumentation and shadow memory. Gated behind
CONFIG_IDF_EXPERIMENTAL_FEATURES, with touch points kept to esp_system
and heap so other components stay untouched.

- Core runtime (esp_system/kasan.c, esp_kasan.h): nibble-based shadow
  memory in DRAM, poison/unpoison, per-access validation, and __asan_*
  stubs; hot-path stubs in IRAM so they stay valid with the flash cache
  off. Shadow init runs before heap bring-up.
- Heap integration (heap/heap_kasan*.c): alloc/free hooks add redzones,
  a quarantine FIFO, and shadow updates.
- Panic handling: disable checks once at the panic handler entry so
  backtrace and stack dumps can read redzones without nested reports.
- Build system: -fsanitize=kernel-address for app code, with HAL, SoC,
  esp_rom, SPI flash, esp_hw_support, bootloader_support, FreeRTOS, and
  heap internals excluded from instrumentation.
- Test app (tools/test_apps/system/kasan_test): Unity tests for
  overflow, underflow, use-after-free, and all sized __asan_* stubs,
  with halt and no-halt configurations.
- Docs: document KASAN in the heap memory debugging guide (EN and CN).
2026-06-24 11:27:00 +05:30
muhaidong 4d33bcb4da feat(coex): add external coex unit test for esp32h4 and esp32h21 2026-06-24 13:56:22 +08:00
muhaidong e7b8677fa2 fix(coex): remove unsupported external coex soc caps 2026-06-24 13:56:22 +08:00
Akshat Agrawal 7a9acae345 Remove hardcoded GSP subattributes 2026-06-24 10:34:04 +05:30
yangfeng 169a29defc fix(bt): Fix the high issues related to AVRCP from AI review report
- SDP/registration: handle SDP record creation and discovery failures safely
- AVRC stack: fix packet checks, fragment leaks, response build, and compile guards
- BTC AVRCP: fix return codes, connection state, metadata parsing, and memory leaks
- AVCTP: fix event passing, L2CAP conflicts, TX queue leaks, and disconnect handling
- Example: remove TG RN capability setup before initialization
2026-06-24 11:20:09 +08:00
yangfeng 3210f4eea5 fix(bt): Fix the critical issues related to AVRCP from AI review report
- recalculate len_left per attribute in avrc_bld_app_setting_text_rsp
- abort fragmented message reassembly when reassembly buffer alloc fails
2026-06-24 11:20:09 +08:00
Island 005dd1ba8c Merge branch 'feat/spi_log_qa_frame_check' into 'master'
feat(ble_log): add FINAL_STAT session-end frame and flush hook before controller restart

See merge request espressif/esp-idf!49433
2026-06-24 10:46:43 +08:00
Akshat Agrawal b7b54b3650 Fix unwanted encryption of NAFs 2026-06-23 22:12:44 +05:30
Nachiket Kukade d36416980c 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-23 22:08:06 +05:30
Akshat Agrawal c4b1e06057 Address review comments VNC 2026-06-23 22:08:06 +05:30
Akshat Agrawal 2c134933ec Address review comments and fix build errors 2026-06-23 22:08:06 +05:30
Akshat Agrawal 601faef85b fix(nan): Add service hash to NVS to maintain pairing states after reset 2026-06-23 22:08:06 +05:30
Akshat Agrawal afd5a13e71 Change the NIRA verification logic 2026-06-23 22:08:06 +05:30
Akshat Agrawal e64f0d7b1d 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-23 22:08:06 +05:30
Nachiket Kukade 7d6d7ead9a 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-23 22:08:06 +05:30
Nachiket Kukade 11ac60fcbb refactor(nan): consolidate NIRA construction into esp_nan_construct_nira 2026-06-23 22:08:06 +05:30
Akshat Agrawal 713fee2929 Add pairing followup timeout and post CONFIRM Failure 2026-06-23 22:08:06 +05:30
Nachiket Kukade b45178e798 fix(nan): Move Pairing API's to private header 2026-06-23 22:08:06 +05:30
Nachiket Kukade 0d9225db5a fix(nan): address esp_ai_reviewer review comments 2026-06-23 22:08:06 +05:30
Akshat Agrawal 92a41a8f37 Address Review comments 2026-06-23 22:08:06 +05:30
Akshat Agrawal f68fb697f7 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-23 22:08:06 +05:30
Akshat Agrawal cd94023075 fix(nan): Add CLUSTER_JOIN Event and Cluster merging feat 2026-06-23 22:08:06 +05:30
Akshat Agrawal 2a8c1b5b24 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-23 22:08:06 +05:30
Adam Múdry fa8039b5ca Merge branch 'test/vfs_fix_register_check' into 'master'
test(vfs): Test changes regarding VFS register incorrect check fix and fix VFS host test not being run at all

See merge request espressif/esp-idf!49674
2026-06-23 14:02:16 +02:00
He Binglin 12ad118657 Merge branch 'change/esp_idf_dpd_optimize' into 'master'
Change/esp idf dpd optimize

Closes PM-765 and PM-728

See merge request espressif/esp-idf!49761
2026-06-23 19:55:08 +08:00
yangfeng 0211122300 fix(bt): Fix the critical issues related to HFP from AI review report
HFP AG:
- Fix mSBC EV3 second-packet payload length calculation to prevent OOB read and infinite loop
- Add init/deinit guards in HF AG helper functions to avoid NULL deref
- Return bt_status_t from btc_hf_ag_audio_data_send to avoid silent buffer leak on SLC failure
- Break SCO CI data loop when SCO is not open to prevent CPU starvation
- Guard BTM_FreeSCN(0) and reset SCN after free in bta_ag_del_records
- Use OI_UINT32 for mSBC decode frame length to avoid stack corruption
- Bound AT Dial command string copy to BTA_AG_AT_MAX_LEN
HFP Client:
- Check osi_calloc result before use when reassembling split mSBC frames
- Use OI_UINT32 for mSBC decode frame length to avoid stack corruption
- Free SDP db, collision/AT timers and queued AT cmds before scb reset on disable
- Fix mSBC EV3 second-packet payload length calculation (same as AG)
- Reject pcm_resample input smaller than overlap window (96 bytes) on filtered path
- Break SCO CI data loop when SCO is not open to prevent CPU starvation
- Guard BTM_FreeSCN(0) and reset SCN after free in bta_hf_client_del_record
2026-06-23 19:36:16 +08:00
Renz Christian Bagaporo ad1912642a Merge branch 'contrib/github_pr_18724' into 'master'
fix(heap_task_info): Fix incorrect current_usage subtraction on realloc() (GitHub PR)

Closes IDFGH-17818

See merge request espressif/esp-idf!49745
2026-06-23 17:21:15 +08:00
Jiang Jiang Jian 1c21efd181 Merge branch 'feat/update_esp32s31_phylib' into 'master'
feat(phy): update esp32s31 phy lib

See merge request espressif/esp-idf!49564
2026-06-23 17:09:28 +08:00
guozifan a81322a2ce feat(ble_log): Add frame check support for restart flow 2026-06-23 16:19:30 +08:00