Commit Graph

787 Commits

Author SHA1 Message Date
gongyantao
c1d5cb63cc 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:28:32 +08:00
Jin Cheng
73508cf7b4 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:28:22 +08:00
yinqingzhao
79df1a8657 fix(sniffer): fix channel in rx_ctrl is zero when using sniffer 2025-03-07 15:24:49 +08:00
wangtao@espressif.com
b5477c5532 fix(wifi): fix max idle period 1 issue 2025-02-27 14:47:43 +08:00
Song Ruo Jing
dfa95bfe6e 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-25 16:23:08 +08:00
Tomasz Kramkowski
664b7821f7 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:06:02 +08:00
C.S.M
d96f71c5cc fix(spi_flash): Fix build fail when rom_patch config disabled,
Closes https://github.com/espressif/esp-idf/issues/15229
2025-02-19 16:54:37 +08:00
Zhou Xiao
7a1dab88e5 change(ble): update esp32c2 rom ld file
(cherry picked from commit e5feba6ed3)

Co-authored-by: Zhou Xiao <zhouxiao@espressif.com>
2025-01-17 16:53:56 +08:00
Island
403a3e06c4 Merge branch 'change/ble_update_lib_20250103_v5.3' into 'release/v5.3'
change(ble): [AUTO_MR] 20250103 - Update ESP BLE Controller Lib (v5.3)

See merge request espressif/esp-idf!36372
2025-01-17 14:23:03 +08:00
Zhou Xiao
0a3068236c 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:44:22 +08:00
liuning
5cb0e2e020 fix(wifi): fix double max active time, fix coex pwr period cant been updated by ps type set 2025-01-14 11:17:39 +08:00
Chen Jian Hua
fb815fb6f3 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:33 +08:00
Jiang Jiang Jian
ca961274f5 Merge branch 'feat/backport_some_feature_and_bugfix_v53' into 'release/v5.3'
Feat/backport some feature and bugfix v53

See merge request espressif/esp-idf!35925
2025-01-02 20:31:03 +08:00
morris
cfa4a3aa69 Merge branch 'bugfix/esp_rom_gpio_connect_out_signal_patch_v5.3' into 'release/v5.3'
fix(gpio): patched esp_rom_gpio_connect_out_signal for esp32 and esp32s2 (v5.3)

See merge request espressif/esp-idf!35940
2025-01-02 15:09:37 +08:00
Wang Meng Yang
93178f26db Merge branch 'bugfix/fix_btqabr2023330_v5.3' into 'release/v5.3'
fix(bt): Fix error code returned by create_conn_cancel_cmd at different status (backport v5.3)

See merge request espressif/esp-idf!35734
2024-12-27 11:02:59 +08:00
chenqingqing
b7148ab71f fix(bt): Fix error code returned by create_conn_cancel_cmd at different status
- Closes https://github.com/espressif/esp-idf/issues/7763
2024-12-25 10:01:57 +08:00
Song Ruo Jing
983653de9a 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-24 20:17:28 +08:00
Zhao Wei Liang
132f4b27e8 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:29 +08:00
wangtao@espressif.com
e8f8bf2995 fix(wifi): fix esp32c2eco4 sta_rx_csa ld 2024-12-24 15:09:23 +08:00
Island
77d0629ae7 Merge branch 'feat/support_some_vendor_hci_for_qa_v5.3' into 'release/v5.3'
fix(ble): fixed the connect issue when rx error aa on ESP32-C2 (v5.3)

See merge request espressif/esp-idf!35646
2024-12-17 16:49:26 +08:00
Zhao Wei Liang
c119c9f6d7 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:44 +08:00
wangtao@espressif.com
71c6360648 fix(wifi): fix esp32c2 ld issue 2024-12-12 14:55:33 +08:00
wangtao@espressif.com
fef3280356 fix(wifi): fix esp32c2eco4 wifi deinit crash issue 2024-12-10 14:35:16 +08:00
Jiang Jiang Jian
e1c1befc7d Merge branch 'bugfix/fix_c2_light_sleep_coex_v5.3' into 'release/v5.3'
fix(ble): fix ble light sleep error on esp32c2 (v5.3)

See merge request espressif/esp-idf!35055
2024-12-09 15:23:53 +08:00
Roland Dobai
22162a45e9 Merge branch 'feature/move-gdb-options-to_project_description_json_v5.3' into 'release/v5.3'
feat(debugging): move gdbinit generation to CMake (v5.3)

See merge request espressif/esp-idf!35176
2024-12-06 19:29:12 +08:00
Alexey Lapshin
3af39a0ab0 feat(debugging): move gdbinit generation to CMake
This feature is useful for 3rd-party software to run GDB with predefined
options that described in project_description.json file

allow to pass custom options to "idf.py gdb":

  --gdb-commands: command line arguments for gdb. (without changes)
  -ex: pass command to gdb.
  -x: pass gdbinit file to gdb. Alias for old --gdbinit command
2024-12-06 05:07:52 +08:00
Jin Cheng
ef4559a09d fix(bt/controller): Fixed some controller bugs on ESP32
- Fixed wrong logic in handling sniff transaction collision at slave
      side
    - Fixed the issue ACL is stopped too early before eSCO
2024-11-22 17:27:40 +08:00
Jin Chen
cb9e8a3b31 fix(ble): change ld for ble scan coex issue
(cherry picked from commit dd499d7b2e)

Co-authored-by: cjin <jinchen@espressif.com>
2024-11-21 11:03:48 +08:00
Jin Chen
839007f0d9 fix(ble): fix ble light sleep error on esp32c2
(cherry picked from commit 23f7e33a97)

Co-authored-by: cjin <jinchen@espressif.com>
2024-11-21 11:03:46 +08:00
Jiang Jiang Jian
3e700eff31 Merge branch 'bugfix/esp32c3_eco7_usj_console_v5.3' into 'release/v5.3'
fix(esp_rom): fix esp32c3 eco7 console rom function address (v5.3)

See merge request espressif/esp-idf!34739
2024-11-15 10:43:29 +08:00
Jiang Jiang Jian
cfdce1f95c Merge branch 'bugfix/fix_some_wifi_bugs_1030_v5.3' into 'release/v5.3'
Bugfix/fix some wifi bugs 1030 v5.3(Backport v5.3)

See merge request espressif/esp-idf!34705
2024-11-14 20:05:21 +08:00
Li Bo
15c18e4757 fix(esp_rom): fix esp32c3 eco7 console rom function address 2024-11-14 19:14:50 +08:00
Jiang Jiang Jian
d819f0c512 Merge branch 'bugfix/p4_ld_newlib_api_v5.3' into 'release/v5.3'
fix(lp_core): updated lp rom newlib API addresses (v5.3)

See merge request espressif/esp-idf!34480
2024-11-14 18:56:14 +08:00
yinqingzhao
439cb125c5 feat(twt): twt add parameter to enable keep alive 2024-11-14 14:03:13 +08:00
Island
7cd3d4a97f Merge branch 'feature/support_moving_code_to_flash_v5.3' into 'release/v5.3'
feat(ble): Support for putting code in flash on ESP32-C2 (v5.3)

See merge request espressif/esp-idf!34785
2024-11-14 11:46:39 +08:00
Shen Weilong
6e4b35ac4a feat(ble): Support for putting code in flash on ESP32-C2 2024-11-11 17:52:15 +08:00
zhiweijian
ac81c14b48 feat(bt/controller): Support controller code run in flash only 2024-11-08 17:28:52 +08:00
Chen Jian Hua
6fdc9ae60f fix(bt): Update bt lib for ESP32-C3 and ESP32-S3(52ee788)
- Fixed BLE vendor HCI set and get tx power
- Support BLE vendor HCI set adv aux offset command
- Support BLE vendor HCI set CSA support command
- Added config for BLE instant passed workaround
- Fixed btdm_sleep_clock_sync timeout workaround


(cherry picked from commit 1e3220b0b0)

Co-authored-by: chenjianhua <chenjianhua@espressif.com>
2024-11-08 17:28:52 +08:00
Marius Vikhammer
f3557bcf5e fix(lp_core): updated lp rom newlib API addresses 2024-10-28 17:21:26 +08:00
Jin Cheng
c42c11ec4d fix(bt/controller): Fixed some controller bugs on ESP32
- Fixed access NULL in SCO frame end
      Closes https://jira.espressif.com:8443/browse/IDFGH-10796
    - Added LAP checking for Periodic Inquiry
    - Removed an inproper assertion in SCO module
    - Fixed wrong logic in key exchange when
      LMP transaction collision occurred
    - Fixed the using of wrong error code in
      the transaction collision of role switch
2024-10-28 10:26:45 +08:00
wangtao@espressif.com
ac0bfa6769 fix(wifi): fix esp32s2 get ack rssi issue 2024-10-25 14:21:12 +08:00
wangtao@espressif.com
2b894fca0f fix(wifi): fix ampdu to normal cause free buffer twice issue 2024-10-24 19:49:20 +08:00
liuning
d7d4dc7817 fix(coex): fix esp32c2/esp32c5/esp32c61 coexist memory leakage issue 2024-10-24 15:14:01 +08:00
liuning
36ff167161 feat(coex): optimize connectionless coexist pwr, optimize wifi pwr with bt idle 2024-10-24 15:10:20 +08:00
wangtao@espressif.com
de273130d1 fix(wifi): fix esp32c2 eco4 set conutry policy auto issue 2024-10-23 11:49:18 +08:00
wangtao@espressif.com
33b0dbf599 fix(wifi): fix esp32c2 eco4 ld 2024-10-22 17:05:13 +08:00
Chen Jian Hua
65ff48a604 fix(bt/controller): Fixed BLE functions overriding on ESP32-C3 ECO7
(cherry picked from commit 020f7a6297)

Co-authored-by: chenjianhua <chenjianhua@espressif.com>
2024-10-15 13:33:38 +08:00
Jiang Guang Ming
fad9341c08 fix(esp_rom): Fixed esp32c2 rom eco1 mbedtls issues 2024-09-30 09:21:21 +08:00
Shen Weilong
2040eb646c fix(ble): Fixed BLE initialization issue on ESP32-C2 eco4 2024-09-25 11:47:41 +08:00
Shen Wei Long
cd1ff31bba change(ble): update c2 eco4 ld file
(cherry picked from commit 25189b190f)

Co-authored-by: Shen Weilong <shenweilong@espressif.com>
2024-09-20 12:53:37 +08:00