Commit Graph
42768 Commits
Author SHA1 Message Date
muhaidong 78d1eb235d fix(wifi): fix some wifi bugs 260706 v5.3
1. support weak func for wifi lmac assert
2. post disconnect event after disassociation tx callback
2026-07-06 19:32:24 +08:00
muhaidong bf225a618c fix(wifi): support weak func for wifi lmac assert 2026-07-06 19:28:49 +08:00
muhaidong 65822e1c82 fix(coex): remove unsupported external coex soc caps 2026-07-06 19:28:27 +08:00
Luo Xu 865c1143b7 fix(ble_mesh): re-check scan dev-found cb before scan-rsp invocation
(cherry picked from commit 9a3a767824)

Co-authored-by: luoxu <luoxu@espressif.com>
2026-07-06 17:43:51 +08:00
Luo Xu b11bd0c0eb fix(ble_mesh): comment out logs containing sensitive keys
(cherry picked from commit 781d6b2314)

Co-authored-by: luoxu <luoxu@espressif.com>
2026-07-06 17:43:50 +08:00
Luo Xu 5ef184d780 fix(ble_mesh): validate PB-ADV start segment length
(cherry picked from commit 912ec8dc62)

Co-authored-by: luoxu <luoxu@espressif.com>
2026-07-06 17:43:50 +08:00
Luo Xu 4721dba6ca fix(ble_mesh): Reset reassembly buffer at start of each transaction
The reassembly buffer must be reset to its origin at the beginning of every
transaction. prov_msg_recv() pulls the PDU type byte (advancing buf->data by
one) and nothing restores it between transactions. Without this reset,
buf->data drifts forward by one byte per received PDU, causing the segment-0
memcpy to write past the end of the statically allocated rx buffer
(PROV_RX_BUF_SIZE), and the XACT_SEG_DATA() offsets used for continuation
segments to be skewed by the accumulated drift.


(cherry picked from commit 2c4acaa2aa)

Co-authored-by: luoxu <luoxu@espressif.com>
2026-07-06 17:43:49 +08:00
Luo Xu 4255fbaf84 fix(ble_mesh): fix DFD client message parsing and encoding bugs
Fix multiple wire-format and robustness issues in the DFD client
(dfd_cli.c):

- handle_capabilities: read oob_retrieval_supported as u8 instead of
  le32. The server encodes a single byte; le32 over-consumed 3 bytes
  of the URL scheme list and could over-read the buffer.
- handle_upload_status: extract upload_progress from bits 0-6 (& 0x7F)
  and upload_type from bit 7 (>> 7), matching the server encoding
  (progress | BIT(7)). The previous >>1 / &0x01 returned wrong values,
  mis-classified in-band vs OOB, and falsely rejected valid OOB
  messages with high progress.
- handle_dfd_status: correct the transfer-mode byte layout to
  trans_mode bits 0-1, update_policy bit 2, RFU bits 3-7 (previously
  read bits 6-7 / 5), and fix the RFU mask to 0xF8. Now matches the
  struct bitfield definition and the DFD server.
- handle_dfd_status: report status+phase and return early when
  buf->len == 0 (IDLE phase) instead of pulling 10 absent bytes.
- bt_mesh_dfd_cli_distribution_start: encode trans_mode/update_policy
  into bits 0-2 so the server decodes them correctly.
- handle_receiver_list: validate buf->len >= entries_cnt * 5 before
  the loop, and handle entries_cnt == 0 without relying on calloc(0).
- handle_receiver_status: pass the status value (not the whole union)
  to the %d log format, fixing undefined behavior.
- dfd_client_recv_status: drop the dead BLE_MESH_DFD_OP_CAPABILITIES_GET
  case (a client-send opcode) from the receive switch.
- bt_mesh_dfd_cli_receivers_add: widen msg_length to uint32_t to avoid
  uint16_t overflow that bypassed the PDU size guard; add a NULL check
  for the receivers array.
- bt_mesh_dfd_cli_distribution_upload_oob_start: return -EINVAL
  instead of -1 for consistency with the rest of the file.


(cherry picked from commit 43137475e1)

Co-authored-by: luoxu <luoxu@espressif.com>
2026-07-06 17:43:49 +08:00
Luo Xu d17cc4d0ce fix(ble_mesh): added max dfd srv count limit
(cherry picked from commit 781218cb62)

Co-authored-by: luoxu <luoxu@espressif.com>
2026-07-06 17:43:43 +08:00
Luo Xu ed236b7b0d fix(ble_mesh): reject invalid chunk size
(cherry picked from commit 35cd10fbdf)

Co-authored-by: luoxu <luoxu@espressif.com>
2026-07-06 17:43:43 +08:00
Luo Xu 98875dc920 fix(ble_mesh): fixed invalid disconnect handler wrote
(cherry picked from commit 52cfff707f)

Co-authored-by: luoxu <luoxu@espressif.com>
2026-07-06 17:43:42 +08:00
Luo Xu 9aef1fc224 fix(ble_mesh): fixed BLE-Mesh NimBLE extended-adv reassembly buffer overflow on COMPLETE fragment
(cherry picked from commit 1b22467f63)

Co-authored-by: luoxu <luoxu@espressif.com>
2026-07-06 17:43:42 +08:00
Luo Xu f9da09de61 fix(ble_mesh): fixed BLE-Mesh GATTS read-callback error
(cherry picked from commit 00adfb3cbc)

Co-authored-by: luoxu <luoxu@espressif.com>
2026-07-06 17:43:41 +08:00
Jiang Jiang Jian 698b47d8fd Merge branch 'fix/ble_mesh_disable_adv_pkt_discard_log_v5.3' into 'release/v5.3'
fix(ble_mesh): Disable warning logging when advertising packets are discarded (5.3)

See merge request espressif/esp-idf!50164
2026-07-06 15:13:29 +08:00
Island 4292cd472c Merge branch 'fix/ble-log-64-bit-io-setup-support_v5.3' into 'release/v5.3'
fix(ble_log): use BIT64 over BIT to support 64-bit IO setup (5.3)

See merge request espressif/esp-idf!50328
2026-07-06 12:23:17 +08:00
Wang Meng Yang 2f00d765d6 Merge branch 'bugfix/bbp_issues_v5.3' into 'release/v5.3'
Bugfix/bbp issues v5.3

See merge request espressif/esp-idf!50192
2026-07-06 11:56:03 +08:00
Wang Meng Yang 91abdc6674 Merge branch 'bugfix/ai_review_btu_common_v5.3' into 'release/v5.3'
fix: Fix the critical issues of btu and bt_common from AI review report (v5.3)

See merge request espressif/esp-idf!50125
2026-07-06 10:48:27 +08:00
Wang Meng Yang d08de8e58a Merge branch 'bugfix/hfp_example_ci_v5.3' into 'release/v5.3'
fix: Fix the HFP example fails to discovery target device (v5.3)

See merge request espressif/esp-idf!50292
2026-07-06 10:41:17 +08:00
morris 7eb9c39f54 Merge branch 'feature/dma2d_ppa_sleep_retention_support_v5.3' into 'release/v5.3'
feat(ppa): add sleep retention support for DMA2D and PPA (v5.3)

See merge request espressif/esp-idf!50358
2026-07-06 10:27:20 +08:00
Song Ruo Jing 9516083cb1 feat(ppa): add sleep retention support for DMA2D and PPA 2026-07-03 20:36:32 +08:00
Rahul Tank 69d6deb7e6 Merge branch 'bugfix/queue_att_cmd_v5.3' into 'release/v5.3'
feat(nimble): Defer all ATT commands until connection event is sent to GAP layer (v5.3)

See merge request espressif/esp-idf!48180
2026-07-03 16:07:05 +05:30
Jiang Jiang Jian 0716e14bc6 Merge branch 'backport/backport_some_wifi_changes_260701_v5.3' into 'release/v5.3'
backport/backport_some_wifi_changes_260701_v5.3(backport v5.3)

See merge request espressif/esp-idf!50250
2026-07-03 14:08:52 +08:00
Rahul Tank 9b92b5a02b fix(nimble): Defer Events / ATT related information from stack
Defer Events/ ATT related GAP events from stack until connection
 event is sent to GAP layer
2026-07-03 11:21:08 +05:30
Zhou Xiao c9de85f36a fix(ble_log): use BIT64 over BIT to support 64-bit IO setup
(cherry picked from commit a2876d304e)

Co-authored-by: Zhou Xiao <zhouxiao@espressif.com>
2026-07-03 12:04:53 +08:00
morris 4e044c7c5c Merge branch 'fix/jpeg_over_size_v5.3' into 'release/v5.3'
fix(jpeg): Fix the jpeg size might exceed the buffer size (backport v5.3)

See merge request espressif/esp-idf!50031
2026-07-03 11:12:39 +08:00
Island 8bddc5dec6 Merge branch 'change/ble_update_lib_20260610_v5.3' into 'release/v5.3'
change(ble): [AUTO_MR] 20260610 - Update ESP BLE Controller Lib (5.3)

See merge request espressif/esp-idf!50223
2026-07-03 00:56:01 +08:00
yangfeng 0773a8d947 fix: Fix the HFP example fails to discovery target device 2026-07-02 15:08:13 +08:00
yinqingzhao c6663ccecd fix(wifi): comment out functions from ld files 2026-07-01 19:35:40 +08:00
yinqingzhao 6fde86c528 fix(wifi): optimizations of csa procedure and keep alive mechanism 2026-07-01 17:21:37 +08:00
yinqingzhao 4e1cab0a9b fix(itwt): fix flow id 0 cannot suspend in itwt example 2026-07-01 12:28:58 +08:00
yinqingzhao ac7d6034a0 fix(wifi): fix scheduling issue when tasks have the same priority as the Wi-Fi task 2026-07-01 12:28:35 +08:00
yinqingzhao d690d0b2d3 fix(phy): fix still put multiple phy init date bin into flash when CONFIG_ESP_PHY_MULTIPLE_INIT_DATA_BIN_EMBED is enabled 2026-07-01 12:27:11 +08:00
yinqingzhao 434aa1f643 feat(phy): support change multiple phy init bin path 2026-07-01 12:26:41 +08:00
Rahul Tank f0fc0e87bd Merge branch 'contrib/github_pr_18761_v5.3' into 'release/v5.3'
fix(nimble): initialize return value in LED characteristic access cal… (GitHub PR) (v5.3)

See merge request espressif/esp-idf!50154
2026-07-01 09:26:42 +05:30
Zhou Xiao 8de35b14e7 change(ble): [AUTO_MR] Update lib_esp32c6 to a6519790
(cherry picked from commit 226a0483b1)

Co-authored-by: Zhou Xiao <zhouxiao@espressif.com>
2026-07-01 10:35:26 +08:00
Zhou Xiao 92d34dbeca change(ble): [AUTO_MR] Update lib_esp32h2 to a6519790
(cherry picked from commit 8a744e8e93)

Co-authored-by: Zhou Xiao <zhouxiao@espressif.com>
2026-07-01 10:35:26 +08:00
Wang Meng Yang 97b1c64b67 Merge branch 'bugfix/ai_review_a2dp_v5.3' into 'release/v5.3'
fix(bt): Fix the critical issues related to A2DP from AI review report (v5.3)

See merge request espressif/esp-idf!50131
2026-06-30 19:23:18 +08:00
luoxu 9613093789 fix(ble_mesh): Disable warning logging when advertising packets are discarded 2026-06-30 17:00:57 +08:00
Jin Cheng 3ee2494c06 fix(bt/bluedroid): fixed possible OOB read/write in process_l2cap_cmd 2026-06-30 15:13:50 +08:00
Island c43788173b Merge branch 'bugfix/fix_bluedroid_static_random_conn_rpa_v5.3' into 'release/v5.3'
fix(ble/bluedroid): skip identity conversion for static random direct connect (5.3)

See merge request espressif/esp-idf!50082
2026-06-30 10:25:01 +08:00
Island 90491f8457 Merge branch 'bugfix/fix_bluedroid_rpa_whitelist_conn_v5.3' into 'release/v5.3'
Fix connection failure when using RPA with whitelist filtering(ESP32) (5.3)

See merge request espressif/esp-idf!50088
2026-06-30 10:23:56 +08:00
Shuai Wang 5ae25bd6b5 fix(nimble): initialize return value in LED characteristic access callback
When the NimBLE stack called this callback for a GATT Write Request, the
uninitialized stack value was interpreted as a non-zero GATT error code,
causing the stack to send BLE_ATT_ERR_UNLIKELY (0x0E) back to the client.
2026-06-29 17:30:33 +05:30
Jiang Jiang Jian de77e11ec6 Merge branch 'feat/optimize_154_debug_v5.3' into 'release/v5.3'
feat(802.15.4): avoid missing abort reason for multievents in 154 debug (v5.3)

See merge request espressif/esp-idf!50114
2026-06-29 16:50:13 +08:00
Jiang Jiang Jian 2d91264c08 Merge branch 'docs/add_semihosting_chapter_v5.3' into 'release/v5.3'
docs(jtag-debugging): add semihosting chapter (v5.3)

See merge request espressif/esp-idf!49891
2026-06-29 15:27:03 +08:00
Jiang Jiang Jian a750c9ec6a Merge branch 'fix/lp_uart_data_bits_v5.3' into 'release/v5.3'
fix(ulp/lp_core): fix LP UART data_bits validation and add full word-length test coverage (v5.3)

See merge request espressif/esp-idf!48034
2026-06-29 15:22:31 +08:00
Jiang Jiang Jian 195f0487e3 Merge branch 'fix/freertos_delete_with_caps_smp_race_v5.3' into 'release/v5.3'
fix(freertos): close vTaskDeleteWithCaps cross-core delete race on SMP preview kernel (v5.3)

See merge request espressif/esp-idf!48603
2026-06-29 15:16:11 +08:00
Jiang Jiang Jian e4b92f9646 Merge branch 'fix/disable_i2c_master_clk_while_hw_hop_processing_v5.3' into 'release/v5.3'
fix(esp_phy): check hw freq hop done before disabling common clock (v5.3)

See merge request espressif/esp-idf!48563
2026-06-29 15:12:34 +08:00
yangfeng a099dd706e fix(bt): Fix the critical issues related to A2DP from AI review report
AVDT:
- Roll back CCB allocation when cmd/rsp queue creation fails
- Free media packet on invalid handle in AVDT_WriteReqOpt
- Zero-init timeout failure message before GETCAP callback
- Initialize lcid_tbl to 0xFF to avoid mapping to tc_tbl[0]
BTA/AVRCP:
- Use size_t for AVRC message copy buffer allocation
- Allocate before register in BTA_AvEnable
- Guard BTA_AvRegister callback when enable never completed
A2DP BTC/API:
- Default g_a2dp_on_deinit to true before profile init
- Add shutdown state check in btc_a2dp_sink_shutdown
- Guard A2DP source timer against freed dynamic local param
2026-06-29 15:12:33 +08:00
yangfeng 7f4a58cf27 fix: Fix the critical issues of btu and bt_common from AI review report
- advance connect queue on synchronous connect_cb failure
- lock bta_alarm_hash_map in all BTA timer APIs
- free controller params after stack disable; cleanup on init fail
- handle BTE_InitStack failure and signal init future
- validate HCI remote name event length before parse
- drop stale L2CAP quick-timer alarm events
2026-06-29 14:49:30 +08:00
Rahul Tank e9604aa3b0 Merge branch 'bugfix/fix_gatt_crash_v5.3' into 'release/v5.3'
fix(nimble): Add npl locks to avoid race condition (v5.3)

See merge request espressif/esp-idf!50069
2026-06-29 10:21:13 +05:30