Commit Graph
35297 Commits
Author SHA1 Message Date
zhiweijian 65b2cb2728 fix(ble/bluedroid): BLE GAP/ACL/ISO/SCO null checks, evt_len and resource handling
- btm_acl: malloc/list_append failure handling, remove/memset order in btm_acl_removed
- btm_ble: remove incorrect sec_flags in SMP_OOB/NC/SC_OOB fall-through
- btm_ble_5_gap: btm_ble_hci_status_to_str unreachable return,
  BTM_BleSetExtendedAdvParams/BleStartExtAdv leak and bounds
- btm_ble_addr: fix indent in btm_find_dev_by_identity_addr
- btm_ble_gap: null check p_service_data, pass evt_len to btm_ble_process_adv_pkt,
  bounds in process_adv_pkt
- btm_ble_iso: align param types with declaration
- btm_ble_privacy: handle BTM_BLE_IRK_LIST_INVALID_INDEX in update_resolving_list,
  comment fixes
- btm_devctl: fix btm_vsc_complete param order/type
- btm_sco: add evt_len to btm_sco_process_num_completed_pkts for bounds check
- btm_ble_int.h/btm_int.h: add evt_len to process_adv_pkt and
  process_num_completed_pkts declarations
2026-03-18 16:38:24 +08:00
zhiweijian 778dd2ab5e fix(ble/bluedroid): Add length/pointer checks and fix error paths
- hci_hal_h4: validate packet length and pointers in hci_packet_complete,
  hdl_rx_adv_rpt, callbacks
- hci_layer: align hci_start_up error path and return; validate packet len in
  filter_incoming_event
- hci_packet_factory: ensure BT_HDR length/offset initialized in make_command_no_params
- packet_fragmenter: validate length before fragment_and_dispatch
2026-03-18 16:38:24 +08:00
zhiweijian b83647f5ea fix(ble/bluedroid): Align config, controller indent and init error paths
- bt_target: remove/align obsolete macros with Kconfig
- device/controller: fix start_up() Secure Connections indent,
  get_ble_resolving_list_max_size return type
- controller.h: align type/interface declarations with implementation
- bte_init: remove unused/redundant code
- bte_main: return -1 on osi_init failure, null check in bte_main_hci_send
2026-03-18 16:38:24 +08:00
zhiweijian 6f5d9e3440 fix(ble/bluedroid): Fix init failure handling, storage/config and GATT leaks
- btc_main: handle bte_main_boot_entry failure with cleanup and future_ready(FUTURE_FAIL)
- btc_ble_storage: fix key/length validation in _btc_storage_get_ble_bonding_key
- btc_config: align return/error contract with callers
- btc_dm: use safe BTA_SERVICE_ID_TO_SERVICE_MASK, fix sec_cb_handler type
- btc_gatt_util: fix btc_to_bta_response/set_read_value length and bounds
- btc_gatts: future_free on early return, max_nb_attr uint16_t, fail cleanup,
  handle bounds
- btc_ble_cte/btc_iso_ble: fix callback type/param consistency with BTA
2026-03-18 16:38:24 +08:00
zhiweijian f4cec2ac4e fix(ble/bluedroid): Add null/range checks and fix resource handling in BTA layer
- bta_dm_int: fix BTA_SERVICE_ID_TO_SERVICE_MASK undefined behavior (1<<id when id>=32)
- bta_gattc_main: add event bounds check before state table lookup
- bta_gattc_utils: null checks for remote_bda/p_rcb, fix list_free in clcb_dealloc,
  bta_to_btif_uuid fixes
- bta_gatts_act: fix formatting/indent in send_service_change_indication
- bta_gatts_api: validate attr_val/len, add error logs on alloc failure
- bta_sys_main: null/range checks in sm_execute, alarm/hash_map error handling in
  bta_alarm_cb
2026-03-18 16:38:24 +08:00
Aditya Patwardhan 1e75562404 Merge branch 'fix/fix_psa_sha_driver_macro_checks' into 'master'
fix(mbedtls): Gate PSA SHA driver on ACCEL flags instead of raw SOC caps

Closes IDFGH-17384

See merge request espressif/esp-idf!46685
2026-03-18 13:53:17 +05:30
Hu Rui 9db885c49d refactor(touch): eliminate global variable g_touch 2026-03-18 15:09:06 +08:00
Ondrej Kosta ed85f7335f Merge branch 'fix/emac_pll' into 'master'
docs(esp_eth): added test to verify A/MPLL configuration

Closes IDF-11629

See merge request espressif/esp-idf!45978
2026-03-18 14:20:52 +08:00
tarun.kumar f196d1f5a3 fix(wifi) : Add conditions to check pmk flushing for similar ssid 2026-03-18 11:41:32 +05:30
wuzhenghui d45606bf1d fix(esp_hw_support): disable esp32eco3 livelock workaround to sleep process 2026-03-18 11:29:55 +08:00
wuzhenghui 6f1bea6a5d refactor(esp_system): ind_wdt.c refactor & code clean
1. introduce reconfigure_ticks function for wdt configuration
 2. move esp32eco3 cache livelock workaround code out from int_wdt.c
2026-03-18 11:29:51 +08:00
Marius VikhammerandCopilot 4ab44312d4 fix(esp_timer): enable systimer functional clock on ESP32-S31
ESP32-S31 has a separate functional clock gate for the systimer
(reg_systimer_clk_en in HP_SYS_CLKRST) that defaults to off. Without
it, the counter snapshot never completes, hanging execution inside
esp_timer_init_nonos.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-03-18 11:08:40 +08:00
Jiang Jiang Jian 4307880020 Merge branch 'fix/set_config_modification' into 'master'
Make some changes in get_config api

Closes WIFIBUG-1570 and WIFIBUG-1673

See merge request espressif/esp-idf!43518
2026-03-18 10:51:48 +08:00
Wu Zheng Hui 7e3fe7023f Merge branch 'feat/add_retention_test_back' into 'master'
feat: add sleep retention UT test back

Closes IDFCI-8836

See merge request espressif/esp-idf!46621
2026-03-18 10:10:56 +08:00
Laukik Hase 9f671697e2 Merge branch 'ci/esp_tee_fixes' into 'master'
feat(esp_tee): Miscellaneous fixes and improvements

Closes IDFCI-7275, IDFCI-7699, IDFCI-8744, IDF-14975, and IDF-15028

See merge request espressif/esp-idf!46598
2026-03-18 07:19:51 +05:30
sonika.rathi bcfc900fe1 fix(fatfs): remove incorrect retval description from void ff_mutex_delete 2026-03-17 15:37:18 +01:00
sonika.rathi 5381064130 fix(fatfs): fix f_getfree crash when volume not mounted or mount failed 2026-03-17 15:37:17 +01:00
Meet Patel 3cef5673ff Merge branch 'refactor/enable_fsm_and_riscv_ulp_simultaneously' into 'master'
refactor(ulp): Allow both ULP-FSM and ULP-RISCV to enable at build time

Closes IDFGH-11916

See merge request espressif/esp-idf!45751
2026-03-17 19:29:43 +05:30
Chen Jichang 6b1490cf55 change(parlio_tx): use shift edge instead sample edge
Made-with: Cursor
2026-03-17 20:21:11 +08:00
C.S.M 4b96656608 fix(temperature_sensor): Fix the float calculation in temperature sensor isr 2026-03-17 18:41:30 +08:00
Armando (Dou Yiwen) 660b4d36bf Merge branch 'change/deprecate_tcm_and_use_scp' into 'master'
fix(spm): rename scp (scratchpad) to spm (scratchpad memory)

See merge request espressif/esp-idf!46659
2026-03-17 08:38:18 +00:00
Marius Vikhammer e8ba294bd2 fix(bootloader): enable super WDT auto-feed on ESP32-S31
The super WDT was firing during bootloader init because auto-feed was
not enabled, causing continuous resets with rst:0x12 (SUPER_WDT_RESET).

Made-with: Cursor
2026-03-17 15:41:14 +08:00
Ashish Sharma 2a22a22fd4 Merge branch 'fix/migration_guide_secure_boot_192_curve_deprecation' into 'master'
fix(secure_boot): marks 192 bit support curve legacy

See merge request espressif/esp-idf!46255
2026-03-17 15:32:58 +08:00
Guillaume Souchere 5fac0b7386 feat(console): Move IO initialization outside of the console component
- Move the linux repl chip and deprecate chip related functions
- Update location of driver specific default config
- Add missing comments on the newly added functions in the affected components.
2026-03-17 08:30:23 +01:00
Guillaume Souchere 5415465164 feat(esp_hw_support): Add esp_cpu.h support for linux builds 2026-03-17 07:49:36 +01:00
tarun.kumar 786a2fa5c0 fix(wifi) : Make some changes in get_config api 2026-03-17 12:02:07 +05:30
Sarvesh Bodakhe 2a5ff3943f fix(wifi): ignore disconnect events outside WPS handshake phase in wps
wifi_station_wps_start() calls esp_wifi_disconnect() to leave a
previously connected AP before scanning for WPS registrars. When the
STA is already connected, the async disconnect event triggers
wps_sm_notify_deauth() which incorrectly treats it as a handshake failure,
disabling WPS entirely.

Guard wps_handle_failure() so it only fires when wps_get_status() is
WPS_STATUS_PENDING, i.e. the STA has found a WPS AP and is actively
in the M1-M8 exchange.
2026-03-17 11:26:32 +05:30
Mahavir Jain 7a6cff801f Merge branch 'bugfix/external_mem_enc_docs' into 'master'
docs: update PSRAM and flash encryption docs with per-page and separate key capabilities

Closes FCS-1859

See merge request espressif/esp-idf!46238
2026-03-17 11:15:40 +05:30
Ashish Sharma eb3922dd12 fix(mbedtls): fixes incorrect macro checks in PSA SHA driver
Closes https://github.com/espressif/esp-idf/issues/18354
2026-03-17 13:18:28 +08:00
Armando (Dou Yiwen) 5650bd5447 Merge branch 'change/isp_sampling_point' into 'master'
isp: improve sampling point for AE and AWB

Closes IDF-15293

See merge request espressif/esp-idf!46649
2026-03-17 04:54:36 +00:00
Jiang Jiang Jian 9d4eb85854 Merge branch 'bugfix/roc_rx_policy' into 'master'
bugfix(usd): Resolve multicast RX issue in AX capable chips

Closes WIFIBUG-1659, WIFIBUG-1244, and WIFIBUG-1736

See merge request espressif/esp-idf!45979
2026-03-17 12:27:38 +08:00
Ashish Sharma 26d295ac94 Merge branch 'feat/delete_content_length_header_with_transfer_encoding' into 'master'
fix(esp_http_client): delete Content-Length header when using Transfer-Encoding

Closes IDFGH-17249

See merge request espressif/esp-idf!46658
2026-03-17 12:19:03 +08:00
morris 0e8006dfea Merge branch 'fix/i2c_null_check' into 'master'
fix(i2c): add NULL check and correct log

See merge request espressif/esp-idf!46662
2026-03-17 11:15:03 +08:00
morris 05a49f8be0 fix(mspi): constant overflow issue reported by coverity 2026-03-17 11:09:03 +08:00
Ashish Sharma d8b02883dc fix(secure_boot): marks 192 bit support curve legacy 2026-03-17 10:25:44 +08:00
armando c60ed4b338 fix(spm): rename scp (scratchpad) to spm (scratchpad memory) 2026-03-17 01:29:34 +00:00
Adam Múdry cfcfb3f9eb fix(sdmmc): sdmmc_cmd.c fixed error handling in certain if and switch statements 2026-03-17 00:26:43 +01:00
Akshat Agrawal 66a25379c0 bugfix(usd): Resolve multicast RX issue in AX capable chips
- Limit the NAN_DE_MAX_SERVICE to avoid Starvation of the second service
2026-03-16 19:33:46 +05:30
Jiang Jiang Jian 2757e0b87e Merge branch 'bugfix/wifibug-1649' into 'master'
fix(wifi): return specific error in API

Closes WIFIBUG-1649

See merge request espressif/esp-idf!44614
2026-03-16 21:24:28 +08:00
wuzhenghui 2bcc29510a fix(esp_hw_support): move timers suspend/resume to misc modules prepare 2026-03-16 20:37:08 +08:00
Adam Múdry 366700747d feat(sdmmc): Try to reallocate smaller DMA buffer if larger one failed 2026-03-16 13:37:01 +01:00
Adam Múdry 653cea9c94 fix(sdmmc): Multi-block read/writes support refactor + tests and documentation added 2026-03-16 13:33:03 +01:00
jofrevandAdam Múdry 6c24854436 feat(sdmmc): Add support for multi-block read/writes
This has the potential of speeding up SD card access significantly.

Reusing the DMA aligned buffer gives the additional option of having to
allocate the transaction buffer only once instead of for every
transaction, while still keeping the improved transaction time.

To give users the maximum amount of control, the Kconfig option for the
transaction buffer size applies only to the temporary buffer, which is
only allocated if the DMA aligned buffer has not been pre-allocated.

Closes https://github.com/espressif/esp-idf/pull/17642

Co-authored-by: Adam Múdry <adam.mudry@espressif.com>
2026-03-16 13:33:03 +01:00
muhaidong e5edd08783 fix(coex): fix coex sync filter and delay issue 2026-03-16 19:39:29 +08:00
Hu Rui 9f412d6026 fix(i2c): add NULL check and correct log 2026-03-16 19:13:28 +08:00
Wang Meng Yang 594679aa73 Merge branch 'bugfix/fix_call_spp_start_discovert_twice_crash' into 'master'
fix(bt): fix crash when calling esp_spp_start_discovery twice in succession

Closes IDFCI-6478 and IDFCI-8863

See merge request espressif/esp-idf!46343
2026-03-16 19:04:10 +08:00
Ashish Sharma 795f0466b6 fix(esp_http_client): delete Content-Length header when using Transfer-Encoding
Closes https://github.com/espressif/esp-idf/issues/18242
2026-03-16 17:31:07 +08:00
Ondrej Kosta 505a96964a docs(esp_eth): added test to verify A/MPLL configuration)
Updated docs to state there could be conflict between PSRAM MPLL configuration and EMAC
2026-03-16 17:05:50 +08:00
Ashish Sharma 727c638645 Merge branch 'contrib/github_pr_18310' into 'master'
fix(esp_http_server): Dispatch PONG frames to WebSocket handler (GitHub PR)

Closes IDFGH-17331

See merge request espressif/esp-idf!46375
2026-03-16 16:45:10 +08:00
armando 7bb22fd0b9 change(isp): improve sampling point 2026-03-16 15:51:49 +08:00