Commit Graph

653 Commits

Author SHA1 Message Date
Zhao Wei Liang
bfd8d024fd fix(ble): fixed occasional assert triggered during controller disable on ESP32-C2
(cherry picked from commit 7b1a7cc4c3)

Co-authored-by: zwl <zhaoweiliang@espressif.com>
2025-07-02 15:13:31 +08:00
Zhao Wei Liang
3c3a46a4c5 fix(ble): fixed assertion issue in connection state on ESP32C2-ECO4
(cherry picked from commit 83fd955f11)

Co-authored-by: zwl <zhaoweiliang@espressif.com>
2025-06-20 15:31:18 +08:00
Island
e8aa955479 Merge branch 'feat/reduce_bin_size_and_iram_for_ble_rom_code_v5.1' into 'release/v5.1'
feat(ble/controller): Reduce bin size and IRAM for BLE rom code on ESP32-C3 and ESP32-S3 (v5.1)

See merge request espressif/esp-idf!39449
2025-06-13 10:17:43 +08:00
Zhao Wei Liang
401c1cece9 fix(ble): change ld file on ESP32-C2
(cherry picked from commit 6c5bff1bd8)

Co-authored-by: zwl <zhaoweiliang@espressif.com>
2025-06-09 11:03:30 +08:00
zhiweijian
8bf1aa8e51 fix(bt/controller): Fixed controller flash only bug if hci-uart is enabled 2025-05-27 16:37:07 +08:00
zhiweijian
8c2bce45c4 feat(ble/controller): Reduce bin size and IRAM for BLE rom code 2025-05-27 16:31:46 +08:00
yinqingzhao
2df8ae8488 fix(wifi): fix some wifi bugs 2025-05-26 17:51:32 +08:00
Shen Wei Long
9acfa0eea6 fix(ble): update ld file on ESP32-C2
(cherry picked from commit ee6607b489)

Co-authored-by: zwl <zhaoweiliang@espressif.com>
2025-05-08 14:53:34 +08:00
sibeibei
0f3c166d12 fix: tsens read abnormal value in esp32c2eco4 2025-05-06 14:32:53 +08:00
Island
eb6437199b Merge branch 'bugfix/fix_cble50y25_207_v5.1' into 'release/v5.1'
Fixed MIC error disconnection when pairing with iOS devices on ESP32-C3 and ESP32-S3(edf923e) (v5.1)

See merge request espressif/esp-idf!38761
2025-04-30 11:16:40 +08:00
Island
c6cfebbd48 Merge branch 'feat/support_136k_rc_clk_on_ble_sleep_v5.1' into 'release/v5.1'
Feat/support 136k rc clk on ble sleep (v5.1)

See merge request espressif/esp-idf!38618
2025-04-29 10:43:49 +08:00
chenjianhua
99f2451a94 fix(bt): Update bt lib for ESP32-C3 and ESP32-S3(edf923e)
- Fixed ble lib linkage issue
2025-04-28 14:13:34 +08:00
Chen Jian Hua
6e86ad21b1 fix(bt): Update bt lib for ESP32-C3 and ESP32-S3(edf923e)
- Fixed MIC error disconnection when pairing with iOS devices


(cherry picked from commit 0df0b53b0a)

Co-authored-by: chenjianhua <chenjianhua@espressif.com>
2025-04-28 14:13:21 +08:00
Jiang Jiang Jian
7fe8b9da5a Merge branch 'bugfix/fix_bt_access_ext_mem_in_intr_v5.1' into 'release/v5.1'
fix(bt/controller): Fixed access external memory in isr context (v5.1)

See merge request espressif/esp-idf!38575
2025-04-23 16:49:09 +08:00
Jin Chen
603f9063a4 feat(ble): support ble sleep using 136 kHz RC on ESP32-C2
(cherry picked from commit 73f1084bf8)

Co-authored-by: cjin <jinchen@espressif.com>
2025-04-22 19:05:20 +08:00
Chen Jian Hua
9fb4a45c66 fix(bt): Update bt lib for ESP32-C3 and ESP32-S3(a684dd5)
- Fixed clear legacy adv error when adv not exist
- Disable anonymous extended adv reporting
- Fixed BLE assert lld_adv.c 2992
- Fixed heap assert due to adv data buffer double freeing
- Fixed BLE 0x08 disconnect when the win size is greater than half of the conn interval


(cherry picked from commit 4602665e5d)

Co-authored-by: chenjianhua <chenjianhua@espressif.com>
2025-04-21 14:33:23 +08:00
Jin Cheng
8bedc3c88e fix(bt/controller): update libbtdm_app.a
- fixed errors in the coexistance of ACL and SCO
- fixed dynamic priority config error in dual mode
2025-04-21 14:23:11 +08:00
gongyantao
a78bc07ce9 fix(bt): fixed some issues in bt controller
- add check for Wi-Fi channel
- fix the incorrect unit of duration_min in cpb tx
- recalculate the channel map when afh is enabled
- fix incorrect vendor event count causing an assertion failure
2025-04-16 15:29:35 +08:00
Shen Weilong
6fb96ac2bd fix(ble): fixed a heap assertion issue when enabling BLE for esp32c2 v2.0 2025-04-03 08:58:17 +08:00
Jiang Jiang Jian
34449e9b03 Merge branch 'backport/backport_some_changes_to_v5.1' into 'release/v5.1'
fix(wifi): fix some wifi bugs(backport v5.1)

See merge request espressif/esp-idf!38015
2025-03-28 16:46:54 +08:00
yinqingzhao
2ed6bf6515 fix(wifi): fix some wifi bugs 2025-03-27 17:43:11 +08:00
Island
1f4106fcfe Merge branch 'feature/add_vendor_ble_cmd_definitions_5.1' into 'release/v5.1'
Feature/add vendor ble cmd definitions (v5.1)

See merge request espressif/esp-idf!37961
2025-03-27 17:15:00 +08:00
Jiang Jiang Jian
c6675c3f8f Merge branch 'bugfix/fix_scan_info_error_in_lr_only_mode_v5.1' into 'release/v5.1'
fix(wifi): Fixed the scan information error in LR only mode (v5.1)

See merge request espressif/esp-idf!37905
2025-03-26 21:33:26 +08:00
Shen Weilong
7819da8490 feat(ble/controller): Added memory boundary check for ESP32-C2 2025-03-25 15:39:04 +08:00
zhangyanjiao
ffcce755ab fix(wifi): Fixed the scan information error when AP in LR only mode 2025-03-19 19:17:01 +08:00
Zhou Xiao
ca33fdac08 feat(ble): add enhanced connect function on ESP32-C2
(cherry picked from commit 71cea01694)

Co-authored-by: zwl <zhaoweiliang@espressif.com>
2025-03-18 12:54:02 +08:00
Island
3991203223 Merge branch 'bugfix/fix_some_ble_bugs_250220_esp32c3_v5.1' into 'release/v5.1'
Fixed some BLE bugs 250220 on esp32c3(b34b7d6) (v5.1)

See merge request espressif/esp-idf!37698
2025-03-13 17:34:14 +08:00
Chen Jian Hua
640ee17ca7 fix(bt): Update bt lib for ESP32-C3 and ESP32-S3(b34b7d6)
- Fixed enhanced TX power setting and getting for legacy adv
- Fixed BLE assert lld_con.c 2387
- Fixed compatibility issues during the encryption procedure
- Support BLE vendor hci enable CCA command


(cherry picked from commit d672f909f3)

Co-authored-by: chenjianhua <chenjianhua@espressif.com>
2025-03-12 15:33:24 +08:00
gongyantao
326abfbf18 fix(bt): fixed some issues in bt controller
- fixed the issue where the NULL pointer was deferenced in lc_free state
- avoid accessing released ACL resources in SCO logic
2025-03-10 15:37:22 +08:00
Jin Cheng
9372cf169c fix(bt/controller): fixed some controller bugs on ESP32.
1. added a VSC to control whether to initiate lmp_auto_rate
        - Closes https://github.com/espressif/esp-idf/issues/15133
    2. fixed EA resource cleanup error after SNIFF negotiation failure
        - Closes https://github.com/espressif/esp-idf/issues/13605
    3. removed an assertion in SCO data TX handler after disconnection
        - Closes https://github.com/espressif/esp-idf/issues/15176
2025-03-10 15:37:12 +08:00
C.S.M
d14a627f2f fix(spi_flash): Fix build fail when rom_patch config disabled,
Closes https://github.com/espressif/esp-idf/issues/15229
2025-03-04 13:18:30 +08:00
Jiang Jiang Jian
dacb2734b7 Merge branch 'bugfix/fix_cache_count_flash_pages_patchs_return_wrong_value_v5.1' into 'release/v5.1'
fix(rom): Fix s2 and s3 Cache_Count_Flash_Pages rom function wrapper (v5.1)

See merge request espressif/esp-idf!37158
2025-03-03 10:40:28 +08:00
Tomasz Kramkowski
aceebcccfe fix(rom): Fix s2 and s3 Cache_Count_Flash_Pages rom function wrapper
The rom function on the s2 and s3 only counts one page for any pages
which are mapped to page 0 of flash as the Cache_Flash_To_SPIRAM_Copy
function attempts to map all flash page 0 mapped pages to one PSRAM
page.

As this function can be called for multiple regions, it needs to track
if a page mapped to page 0 has previously been accounted for by a
previous call. It does this using the page0_mapped in-out parameter.
This logic contains an error:

```
if (*page0_mapped == 0) {
    // BUG: If page0_count is 0, 1 is still added
    count = valid_flash_count + 1 - page0_count;
} else {
    count = valid_flash_count - page0_count;
}
*page0_mapped += page0_count;
return count;
```

The current Cache_Count_Flash_Pages wrapper in the idf attempts to
compensate for this bug by checking if the page0_mapped parameter was
changed by a call to the function and reducing the count if it has not.

This, however, will incorrectly over-compensate in situations where the
initial value of page0_mapped was not zero as the code above only
miscounts when it was zero.

This patch addresses the issue in this wrapper function by correctly
compensating for the bug only in cases where the final page0_mapped
value is 0.
2025-02-20 16:12:57 +08:00
Zhou Xiao
6d551bfc34 change(ble): update esp32c2 rom ld file
(cherry picked from commit e5feba6ed3)

Co-authored-by: Zhou Xiao <zhouxiao@espressif.com>
2025-02-20 14:35:57 +08:00
Song Ruo Jing
cfe8309c44 fix(gpio): fix esp_rom_gpio_connect_out_signal for gpio num over 31 on esp32/s2
Closes https://github.com/espressif/esp-idf/issues/15209
2025-02-11 16:05:48 +08:00
Zhou Xiao
1a0f98b1ec fix(ble): fixed ld file for c2eco0 and c2eco4
(cherry picked from commit 937fe2a6e3)

Co-authored-by: zhouxiao <zhouxiao@espressif.com>
2025-01-14 17:42:21 +08:00
liuning
3f6b44d3ef fix(wifi): fix double max active time, fix coex pwr period cant been updated by ps type set 2025-01-08 15:54:30 +08:00
Chen Jian Hua
7dbfb06fc9 fix(bt): Update bt lib for ESP32-C3 and ESP32-S3(fd62b31)
- Fixed periodic adv enable params checking
- Fixed BLE assert lld_scan.c 1728 when receiving directed adv
- Support resolving RPA to identity address when creating connection
- Fixed BLE assert rwble.c 505 param 00400010
- Fixed peer address type error in HCI LE meta event
- Fixed setting random address failed when extended adv is enabled


(cherry picked from commit 326f391f9c)

Co-authored-by: chenjianhua <chenjianhua@espressif.com>
2025-01-07 14:33:21 +08:00
wangtao@espressif.com
5d2338f201 fix(wifi): fix esp32c2eco4 sta_rx_csa ld 2025-01-03 14:22:40 +08:00
morris
16b622b4f3 Merge branch 'bugfix/esp_rom_gpio_connect_out_signal_patch_v5.1' into 'release/v5.1'
fix(gpio): patched esp_rom_gpio_connect_out_signal for esp32 and esp32s2 (v5.1)

See merge request espressif/esp-idf!35942
2025-01-03 10:36:51 +08:00
Song Ruo Jing
8f1b98b237 fix(gpio): patched esp_rom_gpio_connect_out_signal for esp32 and esp32s2
The original ROM function enabled output for the pad first, and then connected the signal
This could result in an undesired level change at the pad

Closes https://github.com/espressif/esp-idf/issues/12826
2024-12-25 14:19:29 +08:00
Zhao Wei Liang
95e2d76aba feat(ble): fixed some ble issues on ESP32-C2
(cherry picked from commit 5f9a3cdd1a)

Co-authored-by: zwl <zhaoweiliang@espressif.com>
2024-12-24 15:21:01 +08:00
wangtao@espressif.com
776eee39d7 fix(wifi): fix esp32c2eco4 ld err 2024-12-19 10:59:33 +08:00
Zhao Wei Liang
4036633ee3 fix(ble): fixed the connect issue when rx error aa on ESP32-C2
(cherry picked from commit 6b01a56e09)

Co-authored-by: zwl <zhaoweiliang@espressif.com>
2024-12-16 11:03:25 +08:00
wangtao@espressif.com
e9c2c6da81 feat(wifi): add protect for softap send no bss deauth releated code 2024-12-12 11:51:06 +08:00
Sarvesh Bodakhe
9584729322 fix(esp_wifi): Add some bugfixes and cleanup in softAP
1. Fix wrong reason code in 'WIFI_EVENT_AP_STADISCONNECTED' event
2. cleanup in softAP for disconnecting connected station
3. Update examples to display reason while processing WIFI_EVENT_AP_STADISCONNECTED event
2024-12-11 15:40:04 +05:30
morris
56aae01626 Merge branch 'bugfix/esp32c3_eco7_usj_console_v5.1' into 'release/v5.1'
fix(esp_rom): fix esp32c3 eco7 console rom function address (v5.1)

See merge request espressif/esp-idf!34741
2024-12-04 20:06:50 +08:00
Li Bo
b63270aed2 fix(esp_rom): fix esp32c3 eco7 console rom function address 2024-12-04 10:06:39 +08:00
wangtao@espressif.com
379a646390 fix(wifi): fix esp32c2eco4 wifi deinit crash issue 2024-12-03 15:56:21 +08:00
gongyantao
dc375a769d fix(bt): fixed some issues in esp32 bt controller
1: fix duplicated lc_enc_restart_req when new lk type is semi-permanent
   key
2: reset PreventEncEvt flag at the end of restart encryption procedure
2024-11-29 14:12:00 +08:00