Commit Graph

19525 Commits

Author SHA1 Message Date
zwl
1c2d0d20c0 feat(bluetooth/controller): update controller api name on ESP32-C2 2024-06-17 16:44:32 +08:00
Rahul Tank
1ab61d2d33 fix(nimble): Added change to handle extra memory for ext adv reattempt 2024-06-14 12:08:02 +05:30
Abhik Roy
ed9f17e2bc fix(lwip): Fixed compilation error referencing undefined POSIX interface API
Closes https://github.com/espressif/esp-idf/issues/13577
2024-06-14 13:03:16 +10:00
zwx
5db6aed3f4 fix(uart): remove unnecessary wait when sending message to ring buffer 2024-06-13 20:05:22 +08:00
linruihao
67eb7a79bf fix(bt/controller): Fixed assert issue caused by DPORT access 2024-06-13 17:35:22 +08:00
zhanghaipeng
3883a4e250 fix(ble/controller): Update esp32 bt-lib (1e63e23)
- Optimized GATT write and notify throughput on ESP32
- Fixed BLE connect timeout after using DTM on ESP32
- Added ke memory debug tools on ESP32
- Fixed memory leak issue when BLE SCAN and other event coexist on ESP32
2024-06-13 16:39:57 +08:00
Jiang Jiang Jian
9cceca593a Merge branch 'bugfix/fix_null_data_issue_in_mesh_v5.0' into 'release/v5.0'
fix(wifi): do not send null data when scan start/done for mesh (v5.0)

See merge request espressif/esp-idf!31376
2024-06-13 11:25:54 +08:00
Island
9e49bf80b3 Merge branch 'bugfix/fix_ble_pktlen_change_v5.0' into 'release/v5.0'
Bugfix/fix ble pktlen change (v5.0)

See merge request espressif/esp-idf!31252
2024-06-13 11:03:31 +08:00
zhangyanjiao
2f53cfd166 fix(wifi): do not send null data when scan start/done for mesh
Closes https://github.com/espressif/esp-idf/issues/13786
2024-06-12 10:06:18 +08:00
Jiang Jiang Jian
2381f35409 Merge branch 'bugfix/directed_bssid_probe_req_v50' into 'release/v5.0'
Send unicast probe requests if bssid is known during scan(v5.0)

See merge request espressif/esp-idf!30299
2024-06-07 20:28:20 +08:00
Abhinav Kudnar
b9205a00af fix(nimble): Added return code in ble_gap_unpair error logs 2024-06-06 10:15:38 +05:30
gongyantao
5c6c256630 fix(bt): fix some issues in bluetooth controller
1: fix return incorrect link key with hci command rd_stored_link_key
2: fix the assert triggered during APB TX
3: fix role switch LMP collision bug
2024-06-05 09:13:18 +08:00
jgujarathi
0db25e4f99 fix(esp_wifi): Send unicast probe requests if bssid is known during scan 2024-06-04 17:08:47 +05:30
Rahul Tank
73fb760c8a fix(nimble): Explicitly NULL assign adv data 2024-06-04 12:17:42 +05:30
Island
add3c94c02 Merge branch 'feat/add_hci_log_record_for_nimble_v5.0' into 'release/v5.0'
feat(bt/nimble): support hci log for nimble (backport v5.0)

See merge request espressif/esp-idf!31216
2024-06-04 14:18:56 +08:00
Jiang Jiang Jian
76d2ac0330 Merge branch 'bugfix/fix_dhcp_pool_issue_on_dhcp_server_v5.0' into 'release/v5.0'
fix(lwip): fixed the dhcp pool error on dhcp server (v5.0)

See merge request espressif/esp-idf!31265
2024-06-04 11:46:17 +08:00
Island
b6f8340101 Merge branch 'bugfix/esp32c2_fixed_some_ble_issues_master_v5.0' into 'release/v5.0'
Bugfix/esp32c2 fixed some ble issues master (v5.0)

See merge request espressif/esp-idf!31235
2024-06-04 10:22:00 +08:00
zhangyanjiao
c9e081ce00 fix(lwip): fixed the dhcp pool error on dhcp server 2024-06-03 11:34:55 +08:00
Jiang Jiang Jian
85fdb69ee7 Merge branch 'bugfix/fix_some_wifi_bugs_v5.0' into 'release/v5.0'
fix(wifi): fixed sniffer and espnow issue (v5.0)

See merge request espressif/esp-idf!31221
2024-06-03 11:03:59 +08:00
Island
432f1ff7eb Merge branch 'fix/ble_mesh_gatts_bugfix_v5.0' into 'release/v5.0'
BLE Mesh Gatts bugfix (v5.0)

See merge request espressif/esp-idf!30875
2024-06-03 10:27:10 +08:00
zhiweijian
1c834a6e6e feat(bt/nimble): support hci log for nimble 2024-06-03 09:53:15 +08:00
zhanghaipeng
846273356a fix(ble/bluedroid): Optimize BLE stack connect callback name 2024-06-02 19:26:38 +08:00
zhanghaipeng
1d8f0aec81 fix(ble/bluedroid): Fixed BLE no data length change event 2024-06-02 19:26:27 +08:00
Rahul Tank
f6c564115b fix(nimble): Use appendfrom to duplicate adv data 2024-06-01 20:32:18 +05:30
zwl
1f97c76d0c ble: fixed ble some issues on esp32c2 2024-05-31 17:14:43 +08:00
Island
1505232737 Merge branch 'bugfix/bleqabr24-549_v5.0' into 'release/v5.0'
fix(ble_mesh): fix issues in mesh deinit_v5.0

See merge request espressif/esp-idf!30543
2024-05-31 15:18:28 +08:00
zhangyanjiao
4b19d69596 docs(wifi): update the docmentation for mesh API 2024-05-31 14:17:14 +08:00
zhangyanjiao
2e216f6e2e fix(wifi): fixed sniffer and espnow issue
1. fix(wifi): fixed sniffer dump fcs error packets fail

Closes https://github.com/espressif/esp-idf/issues/10777

2. fix(wifi): fixed the espnow priv parameter get error

Closes https://github.com/espressif/esp-idf/issues/13693
2024-05-31 14:13:50 +08:00
luoxu
cafc47cf07 fix(ble_mesh): Create service after service register success 2024-05-31 12:11:26 +08:00
luoxu
1121ffa55d fix(ble_mesh): fix issues in mesh deinit 2024-05-30 20:42:06 +08:00
Jiang Jiang Jian
289e886da0 Merge branch 'bugfix/ftm_fix_wrong_compensation_v5.0' into 'release/v5.0'
Fix issues in calibration and selecting FTM compensation with external AP (Backport v5.0)

See merge request espressif/esp-idf!30885
2024-05-30 20:02:35 +08:00
Jiang Jiang Jian
50ce5e9405 Merge branch 'bugfix/stop_tg_wdt_in_xpd_xtal_lightsleep_v5.0' into 'release/v5.0'
fix(esp_hw_support): stop tg wdt in xpd xtal lightsleep (v5.0)

See merge request espressif/esp-idf!31138
2024-05-30 20:01:13 +08:00
Nachiket Kukade
2208e0dfc2 fix(esp_wifi): Fix issue in selecting FTM compensation with external AP
Additionally update FTM Compensation values with calibration
2024-05-29 16:09:45 +05:30
Rahul Tank
e049357001 fix(nimble): start advertising if disconnect due to 0x3E in slave 2024-05-29 15:40:52 +05:30
Kapil Gupta
06021b83e9 Merge branch 'bugfix/wps_scan_log_flood_v5.0' into 'release/v5.0'
fix(wpa_supplicant): Suppress RSN IE print to Verbose level (Backport v5.0)

See merge request espressif/esp-idf!31154
2024-05-29 15:43:29 +08:00
Rahul Tank
c5515d72d0 Merge branch 'feature/ble_resolve_adv_data_v5.0' into 'release/v5.0'
feat(nimble): Added API to get resolve ADV data (v5.0)

See merge request espressif/esp-idf!30953
2024-05-29 14:00:16 +08:00
Nachiket Kukade
c2123313b4 fix(wpa_supplicant): Suppress RSN IE print to Verbose level 2024-05-29 11:06:57 +05:30
wuzhenghui
69bbaec19d
fix(esp_hw_support/sleep): stop TG0/TG1 watchdog if XTAL not power down in lightsleep 2024-05-28 18:09:21 +08:00
wuzhenghui
941193fc03
change(esp_hw_support/sleep): improve esp32c3 systimer stall bug workaround 2024-05-28 18:08:27 +08:00
Abhinav Kudnar
b819382db2 feat(nimble): Added API to get resolve ADV data 2024-05-28 18:04:07 +08:00
muhaidong
9b7711e3fb fix(phy): update esp32s2 libphy support ant api 2024-05-28 17:37:01 +08:00
Alexey Lapshin
ef4a5fda2d fix(bt): fix gcc 13.1.0 warnings 2024-05-28 15:57:46 +08:00
Sarvesh Bodakhe
184555d70b fix(esp_wifi): Improvements in scan and connect path
* Improvements in scan and connect path as per specifications along with
  minor bugfixes
* When AP advertises all PSK modes (WPA, WPA2 and WPA3), make sure that
  station treats it as WPA2_WPA3_PSK mixed mode.
2024-05-28 15:57:46 +08:00
Jiang Jiang Jian
2c4f0cd4f2 Merge branch 'bugfix/mldv6_report_memory_leak_v5.0' into 'release/v5.0'
fix(esp_netif): Fix mldv6 report memory leak in esp_netif(v5.0)

See merge request espressif/esp-idf!31061
2024-05-28 15:56:15 +08:00
WanqQixiang
e3a2ba8b07 fix(esp_netif): Fix mldv6 report memory leak in esp_netif 2024-05-27 17:31:33 +08:00
Island
6d288efe7c Merge branch 'feat/add_api_to_set_privacy_mode_v5.0' into 'release/v5.0'
feat(bt/bluedroid): support BLE set privacy mode (v5.0)

See merge request espressif/esp-idf!30907
2024-05-27 14:56:10 +08:00
Mahavir Jain
d962b76743 Merge branch 'feature/update_cjson_version_to_1.7.18_v5.0' into 'release/v5.0'
feat(cjson): update submodule to v1.7.18 (v5.0)

See merge request espressif/esp-idf!31017
2024-05-23 15:09:52 +08:00
Jiang Jiang Jian
bb71e79288 Merge branch 'bugfix/loadprohibited_after_bt_deinit_v5.0' into 'release/v5.0'
Fixed some coexist issues

See merge request espressif/esp-idf!31006
2024-05-23 11:02:55 +08:00
nilesh.kale
d28e807e2d feat(cjson): update submodule to v1.7.18
Changelog: https://github.com/DaveGamble/cJSON/releases/tag/v1.7.18
2024-05-22 13:35:09 +05:30
Jiang Jiang Jian
1f8b9b0433 Merge branch 'bugfix/libphy_chips_20240430_v5.0' into 'release/v5.0'
update c3 s3 libphy, fix coex bug

See merge request espressif/esp-idf!30971
2024-05-22 14:01:53 +08:00
baohongde
1d9f0a6259 fix(coex): Fixed some coexist issues
- Fixed crash issue in coexist callback
- Fixed coexist scheme status update issue
2024-05-22 11:49:59 +08:00
chenjianhua
f205edb6e9 fix(bt): Update bt lib for ESP32-C3 and ESP32-S3(a771b7c)
- Fixed assert when starting advertising due to preemption
- Fixed RPA generation after each reboot
- Fixed RPA renew timer start and stop
2024-05-22 11:49:59 +08:00
chenjianhua
8991f6912a feat(bt/bluedroid): support BLE set privacy mode 2024-05-22 10:46:33 +08:00
aditi_lonkar
6c4c3d6ef8 fix(wpa_supplicant):Fix memory leak in wpa3-sae
Closes https://github.com/espressif/esp-idf/issues/11381
2024-05-21 19:06:26 +05:30
Aditya Patwardhan
3043a8368f Merge branch 'bugfix/fix_resetting_redirect_counter_v5.0' into 'release/v5.0'
fix: reset redirect counter for using same handler (v5.0)

See merge request espressif/esp-idf!30938
2024-05-21 17:23:01 +08:00
liuning
4ae201d0a8 update c3 s3 libphy, fix coex bug 2024-05-21 11:28:50 +08:00
Sarvesh Bodakhe
9efdcd52cc fix(wifi): fix bug in 'esp_wifi_deauthenticate_internal' and other improvements 2024-05-20 14:44:36 +05:30
Sarvesh Bodakhe
61a91afa3a fix(wpa_supplicant): Add some bugfixes in wpa_supplicant
1) Add parameter to configure reason code of deauth frame
2) Add logs to indicate MIC failure 4-Way-Handshake
3) Process RSNXE capabilities only if AP advertises them
2024-05-20 14:44:16 +05:30
Harshit Malpani
52ca696335
fix: Add warning to enable LWIP_NETIF_LOOPBACK to use control socket API
Closes https://github.com/espressif/esp-idf/issues/13659
2024-05-20 10:48:41 +05:30
Harshit Malpani
54ee9bf5d6
fix: reset redirect counter for using same handler
Closes https://github.com/espressif/esp-idf/issues/13633
2024-05-20 10:47:07 +05:30
muhaidong
4ae21b7f82 fix(wifi): fixed some wifi bugs 240517
1. fix esp_wifi_set_mode() return error issue
2. fix qos encapsulated eapol issue
3. eapol arp and dhcp add flag PP_F_PER_PKT_RATE
4. fix lmac_stop_hw_txq issue
5. fix typo
6. limite number of amsdu  block in eb
7. fix recycle cache sub amsdu eb issue
8. update ba session store and restore rx ba num
9. fix multicast address qos frame by reset rx ba
10. fix lmacStopTransmit issue
11. sync multi antenna gpio register from IDF
12. clear eb to fix tx single AMPDU to some AP not reply BA when ampdu_entry single bit was set
13. fix internal set log level check fail issue
14. update esp_wifi_connect doc
15. update api esp_wifi_sta_get_rssi docs
16. add interupt lock during hardware reload of Rx link
2024-05-20 10:26:25 +08:00
muhaidong
bc6d79c84a fix(doc): update api esp_wifi_sta_get_rssic docs
Closes https://github.com/espressif/esp-idf/issues/12685
2024-05-20 10:11:48 +08:00
muhaidong
705afe5162 fix(wifi): fixed task watchdog got triggered by esp_wifi_stop issue 2024-05-20 10:11:48 +08:00
muhaidong
a91a74d12a fix(wifi): fix multicast address qos frames issue 2024-05-20 10:11:48 +08:00
muhaidong
cd242a6684 fix(wifi): fix lmac_stop_hw_txq issue 2024-05-20 10:11:48 +08:00
muhaidong
155fe73757 fix(wifi): fix some wifi issues
1. fix qos encapsulated eapol issue
2. fixed dhcp offer and dhcp ack data rates
2024-05-20 10:11:24 +08:00
Rahul Tank
e746d29f39 Merge branch 'feature/get_local_used_addr_v5.0' into 'release/v5.0'
feat(nimble): Added API to get local used address (v5.0)

See merge request espressif/esp-idf!30759
2024-05-16 17:43:25 +08:00
Jiang Jiang Jian
d4f35fcb98 Merge branch 'fix/assert_1024_in_rwbt_isr_v5.0' into 'release/v5.0'
fix(bt/ble): fix some issues in bluetooth controller(backport v5.0)

See merge request espressif/esp-idf!30816
2024-05-16 16:44:56 +08:00
Abhinav Kudnar
63b02c9273 feat(nimble): Added API to get local used address 2024-05-16 09:47:48 +05:30
Rahul Tank
4e5e8aa10f Merge branch 'bugix/avoid_reset_extract_cb_v5.0' into 'release/v5.0'
fix(nimble): Avoid slave instance reset inside extract_cb (v5.0)

See merge request espressif/esp-idf!30490
2024-05-16 12:02:32 +08:00
nilesh.kale
ef7a749367 feat(mbedtls): updated mbedtls version from 3.5.2 to 3.6.0
This MR updated MbedTLS version to latest version 3.6.0.
2024-05-15 11:43:54 +05:30
Rahul Tank
377a24d319 fix(nimble): Create separate API to only extract cb info 2024-05-15 11:03:31 +05:30
Jin Cheng
2c45c9dcd2 fix(bt/controller): Parse out the correct packet types from Host parameters
- For HCI command HCI_Enhanced_Setup_Synchronous_Connection
2024-05-14 11:55:04 +08:00
gongyantao
fc17843294 fix(bt/ble): fix some issues in bluetooth controller
1: fix assert 1024 issue when bt tx and wifi coexist on esp32
2: fix ble scan backoff
3: parse out the correct packet types from host parameters for
   hci command hci_enhanced_setup_synchronous_connection
2024-05-14 10:06:57 +08:00
Jiang Jiang Jian
8b6811ef45 Merge branch 'bugfix/fix_mesh_packet_tx_issue_v5.0' into 'release/v5.0'
fix(wifi): fix the tx issue when mesh packet lifetime remain equal to zero (v5.0)

See merge request espressif/esp-idf!30802
2024-05-13 22:30:52 +08:00
David Čermák
9751ab5122 Merge branch 'contrib/github_pr_13560_v5.0' into 'release/v5.0'
esp_eth: DP83848: correct link detection to use BMSR (GitHub PR) (v5.0)

See merge request espressif/esp-idf!30453
2024-05-13 21:55:13 +08:00
zhangyanjiao
43dce54bb4 fix(wifi): fix the tx issue when mesh packet lifetime remain equal to zero 2024-05-13 17:16:50 +08:00
Jiang Jiang Jian
6a17b9c1c7 Merge branch 'bugfix/bt_bss_in_extram_v5.0' into 'release/v5.0'
fix(bt): Fix missing linker symbol when ESP_ALLOW_BSS_SEG_EXTERNAL_MEMORY enabled(backport v5.0)

See merge request espressif/esp-idf!30377
2024-05-13 11:03:07 +08:00
Island
8e81b118e2 Merge branch 'fix/idfgh-12762_v5.0' into 'release/v5.0'
fix(ble_mesh):Fixed a compatibility issue with the provisioner (v5.0)

See merge request espressif/esp-idf!30732
2024-05-10 17:14:20 +08:00
Island
ed6f245a5b Merge branch 'bugfix/BLEQABR23-798_v5.0' into 'release/v5.0'
bugfix(ble_mesh): Close BLEQABR23-798 (v5.0)

See merge request espressif/esp-idf!30647
2024-05-10 17:14:02 +08:00
Wang Meng Yang
7649270896 Merge branch 'optimize/bt_make_alarm_num_configurable_v5.0' into 'release/v5.0'
optimize(ble_mesh): Make alarm number configurable (v5.0)

See merge request espressif/esp-idf!30508
2024-05-10 15:05:48 +08:00
Wang Meng Yang
e8641f62e4 Merge branch 'bugfix/fix_hid_connection_failed_bug_v5.0' into 'release/v5.0'
fix(bt/bluedroid): Fix HID connection bugs[backport 5.0]

See merge request espressif/esp-idf!30591
2024-05-10 12:18:50 +08:00
Rahul Tank
c211aaeeaa fix(nimble): Free controller memory if init fails 2024-05-09 12:26:04 +05:30
luoxu
aa830471f4 fix(ble_mesh):Fixed a compatibility issue with the provisioner
Closes https://github.com/espressif/esp-idf/issues/13741
2024-05-09 10:57:39 +08:00
liqigan
eb99868b56 fix(bt/bluedroid): Fix HID Device connection failed bug
Closes https://github.com/espressif/esp-idf/issues/13671
2024-05-09 09:24:16 +08:00
liqigan
a91bee2b4c fix(bt/bluedroid): Fix HID Host connection bugs
1. Fix is_orig value inconsistency for HIDH open event
2. Fix the error state for repeat connection of the same device
2024-05-09 09:24:16 +08:00
Aditya Patwardhan
1bec4902b2 Merge branch 'backport/support_tls1_3_v5.0' into 'release/v5.0'
https_mbedtls: update example to support TLS 1.3 connection

See merge request espressif/esp-idf!30607
2024-05-07 16:38:14 +08:00
luoxu
d9186f52c3 bugfix(ble_mesh): Close BLEQABR23-798 2024-05-07 09:49:13 +08:00
Rahul Tank
54f171ec5c fix(nimble): Deselect MBEDTLS_ECP_RESTARTABLE when mbedTLS is used 2024-05-06 15:22:39 +05:30
Wang Mengyang
76486bbfcb change(bt): Rename linker script file names and symbol names
1. rename linker files
2. support memory release in case that ESP_ALLOW_BSS_SEG_EXTERNAL_MEMORY is enabled
3. improve the implementation of memory release
2024-05-06 17:14:58 +08:00
Wang Mengyang
eca6545ffe fix(bt): Fix missing linker symbol when ESP_ALLOW_BSS_SEG_EXTERNAL_MEMORY enabled
1. Closes https://github.com/espressif/esp-idf/issues/10427
2. add two linker script to unify linker script symbols for BT libraries
3. The memory release functions have also been simplified

fix(bt): remove unused file linker.lf
2024-05-06 17:14:55 +08:00
Jiang Jiang Jian
3b448491d3 Merge branch 'fix/increase_26mhz_esp32c2_slow_clock_calibration_wdt_threshold_v5.0' into 'release/v5.0'
fix(esp_system): increase 26Mhz esp32c2 slow clock calibration timeout watchdog threshold (v5.0)

See merge request espressif/esp-idf!30572
2024-05-06 14:06:39 +08:00
Mahavir Jain
089197ff8a Merge branch 'bugfix/nvs_enc_test_v5.0' into 'release/v5.0'
fix(tests): correct the flash write length for NVS encrypted test (v5.0)

See merge request espressif/esp-idf!30605
2024-05-06 13:32:28 +08:00
Harshit Malpani
90d0689331
fix(esp-tls): Use TLS 1.2 and TLS 1.3 simultaneously
This commit fixes the issue with TLS 1.2 connection when TLS 1.3 is
enabled in config.
2024-05-02 17:15:08 +05:30
Harshit Malpani
1c3c89eb43
fix(esp-tls): Retry reads if using session tickets with TLS 1.3
Fixed the error that occurred while performing OTA upgrades over
TLS 1.3 connection. After handshake is completed, post-handshake message
is received and internal state is changed. While performing mbedtls_ssl_read(),
it checks handshake state and if it is not MBEDTLS_SSL_HANDSHAKE_OVER,
mbedtls_ssl_handshake is called again.
2024-05-02 17:11:50 +05:30
Mahavir Jain
0b7bb679bb
esp_tls: add initial support for TLS 1.3 connection 2024-05-02 17:11:01 +05:30
Mahavir Jain
c8dbdc6aa6
fix(tests): correct the flash write length for NVS encrypted test
Write only till the embedded file size in the NVS partition. Earlier
the length was kept as the whole partition size and it could result
in accessing embedded rodata beyond the MMU mapped range.
2024-05-02 16:54:56 +05:30
Wang Meng Yang
e1dfcbc567 Merge branch 'bugfix/hf_local_param_null_v5.0' into 'release/v5.0'
fix(bt/bluedroid): allocate memory for control block of HFP Audio Gateway (v5.0)

See merge request espressif/esp-idf!30442
2024-04-30 17:25:26 +08:00
wangjialiang
7d0cfb74bb feat(ble_mesh): Make alarm number configurable 2024-04-30 16:09:47 +08:00
Karl Palsson
0eef7d1934 fix(esp_eth): dp83848: correct link detection to use BMSR
Reading the link state via PHYSTS was incorrect, as it only reflects the
link state bit from BMSR.  BMSR latches link down events, and are not
cleared without being read.  (See 802.3-2008 section 2, section 22.2.4.2.13)
This leads to the original DP828xx code only supporting link up, then a
single link down event.

Switch to reading the link state via BMSR, but continuing to read the
negotiation results via PHYSTS and ANLPAR.  This is inline with
LAN8720x, RTL8201, KSZ80xx phy drivers, and other opensource drivers for
the DP838xx family of devices.

Tested on a private board with a DP83825i PHY.  No publically available
boards using the original DP83848 are known of for testing.

Signed-off-by: Karl Palsson <karl.palsson@marel.com>
2024-04-30 16:08:25 +08:00
wuzhenghui
820cc387d9
fix(esp_system): increase 26Mhz esp32c2 slow clock calibration timeout watchdog threshold 2024-04-30 11:45:20 +08:00
Island
961ca4f975 Merge branch 'bugfix/fix_ble_coex_assert_v5.0' into 'release/v5.0'
Update esp32 bt-lib (4012cfb)(backport v5.0)

See merge request espressif/esp-idf!30519
2024-04-28 10:48:07 +08:00
Island
2233d54812 Merge branch 'bugfix/fix_ble_max_attribute_value_v5.0' into 'release/v5.0'
Bugfix/fix ble max attribute value v5.0

See merge request espressif/esp-idf!30414
2024-04-28 10:37:12 +08:00
zhanghaipeng
f449df139c feat(ble/bluedroid): Support BLE command status debug log 2024-04-26 17:14:44 +08:00
zhanghaipeng
2efc1c3c7c fix(ble/controller): Update esp32 bt-lib (4012cfb)
- Fixed BLE coex assert
- Fixed BLE DTM status and tx count
2024-04-26 16:51:43 +08:00
morris
3087b28012 Merge branch 'bugfix/uart_bitrate_max_value_c2_v5.0' into 'release/v5.0'
fix(uart): correct C2 UART_BITRATE_MAX value (v5.0)

See merge request espressif/esp-idf!30461
2024-04-26 10:43:49 +08:00
morris
6371dcbcb0 Merge branch 'bugfix/gpio_drive_cap_v5.0' into 'release/v5.0'
fix(gpio): add workaround to ensure correct IO drive strength for C3 and S3 (v5.0)

See merge request espressif/esp-idf!30468
2024-04-26 10:43:29 +08:00
zhanghaipeng
614b2bbd3f feat(ble/bluedroid): Support create BLE static random address and NRPA 2024-04-25 15:58:19 +08:00
zhanghaipeng
f0450152f2 feat(ble/bluedroid): Support BLE add device to resolving list 2024-04-25 15:58:19 +08:00
zhanghaipeng
ebf929b5f8 feat(ble/bluedroid): Support set resolvable provate address timeout by api 2024-04-25 15:58:19 +08:00
zhanghaipeng
182cbb85f8 fix(ble/bluedroid): Fixed BLE GATT max length of an attribute value 2024-04-25 15:58:19 +08:00
zhanghaipeng
1eebe9f680 fix(ble/bluedroid): Optimize BLE documentation comments to comply with Doxygen syntax 2024-04-25 15:58:19 +08:00
Song Ruo Jing
02d819b69b fix(uart): Fix mismatch wakeup rising edges required with the threshold configured
Closes https://github.com/espressif/esp-idf/issues/12586
2024-04-24 17:27:27 +08:00
Song Ruo Jing
94070c8651 fix(gpio): add workaround to ensure correct IO drive strength for C3 and S3 2024-04-24 17:00:06 +08:00
Song Ruo Jing
4727357067 fix(uart): correct C2 UART_BITRATE_MAX value 2024-04-24 16:20:44 +08:00
Jin Cheng
7fa711346a fix(bt/bluedroid): allocate memory for control block of HFP Audio Gateway in its initialization when dynamic memory is wnabled 2024-04-24 08:28:45 +08:00
sonika.rathi
06ba157133 docs(vfs): update esp_vfs_register_fd api description
Closes https://github.com/espressif/esp-idf/issues/11586
2024-04-23 15:25:27 +02:00
Rahul Tank
6bdd4be339 fix(nimble): Expose API to set RPA Timeout 2024-04-23 11:58:43 +05:30
Island
fb12a68017 Merge branch 'feat/optimzie_ble_ctrl_memory_v5.0' into 'release/v5.0'
ble: support only legacy adv and slave function on esp32c2 (v5.0)

See merge request espressif/esp-idf!30336
2024-04-22 22:51:02 +08:00
Jiang Jiang Jian
7c9bacb624 Merge branch 'bugfix/crash_after_bluedroid_deinit_v5.0' into 'release/v5.0'
fix(bt/bluedroid): Fixed controller using null pointer after bluedroid deinit(v5.0)

See merge request espressif/esp-idf!30329
2024-04-22 11:13:42 +08:00
Jiang Jiang Jian
dd61b7ed37 Merge branch 'bugfix/fix_some_ble_bugs_cjh_v5.0' into 'release/v5.0'
Fixed some BT and BLE bugs 2404 (backport v5.0)

See merge request espressif/esp-idf!30259
2024-04-22 10:48:04 +08:00
Jiang Jiang Jian
3b6ee156c9 Merge branch 'feat/set_get_lpclk_src_v5.0' into 'release/v5.0'
feat(ble): Added API to get low power clock source(v5.0)

See merge request espressif/esp-idf!30109
2024-04-22 10:25:55 +08:00
chenjianhua
c9255fc852 feat(bt): Update bt lib for ESP32-C3 and ESP32-S3(c23ab4c)
- Support QA test vendor HCI command and event
2024-04-18 14:43:13 +08:00
baohongde
043ea1cb60 fix(ble/controller): Fixed LoadProhibited after bluetooth deinit 2024-04-18 14:43:07 +08:00
chenjianhua
49f11c53bd fix(bt): Update bt lib for ESP32-C3 and ESP32-S3(5274796)
- Fixed extended uncoded and coded scan scheduling
- Add config for channel assessment and ping procedure
- Clear random address for extended advertising
- Add periodic advertising list check
- Fixed periodic advertising data setting with zero length
2024-04-18 14:43:00 +08:00
baohongde
0a86dd2eb3 feat(ble/controller): Add coexist schm for BLE 2024-04-18 14:31:53 +08:00
chenjianhua
fdd4f3d17c feat(bt): Update bt lib for ESP32(e314148)
- Support QA test vendor HCI command and event
2024-04-18 14:09:09 +08:00
zhanghaipeng
c9c946811c fix(bt/controller): Update bt lib for ESP32(5838b68)
- Fixed BLE scan assert
 - Fixed assert(10,0) in lld_pdu
 - Add BLE scan backoff in menuconfig
2024-04-18 14:09:09 +08:00
Jin Cheng
51c26053a4 fix(bt/controller): Use embedded assembly to get access to DPORT registers 2024-04-18 14:09:09 +08:00
zwl
0e058edb9f ble: support only legacy adv and slave function on esp32c2 2024-04-18 12:15:56 +08:00
Island
38aef776b6 Merge branch 'bugfix/fixed_coex_asset_on_esp32c2_v5.0' into 'release/v5.0'
Bugfix/fixed coex asset on esp32c2 v5.0

See merge request espressif/esp-idf!30303
2024-04-18 10:54:25 +08:00
xiongweichao
631aa85bdc fix(bt/bluedroid): Fixed crash after bluedroid deinit
hci_host_env.downstream_data_ready is set to NULL during bluedroid deinit,
causing the controller to use a null pointer when calling callback.
2024-04-18 10:53:11 +08:00
Island
4ae73b7fa7 Merge branch 'bugfix/fix_ble_appearance_v5.0' into 'release/v5.0'
Fixed BLE appearance category ranges (v5.0)

See merge request espressif/esp-idf!30287
2024-04-18 10:44:08 +08:00
Jiang Jiang Jian
d435059751 Merge branch 'bugfix/sdp_remove_record_no_evt_v5.0' into 'release/v5.0'
fix(bt/bluedroid): Fixed the crash caused by using illegal pointers during SDP deinit(v5.0)

See merge request espressif/esp-idf!29944
2024-04-18 10:24:58 +08:00
xiongweichao
3fd0dba1a3 feat(ble): Added API to get low power clock source 2024-04-18 10:07:39 +08:00
zhanghaipeng
e45d91c36d fix(ble/bluedroid): Fixed set BLE appearance value 2024-04-17 20:40:09 +08:00
KonstantinKondrashov
955341db98 fix(spi_flash): Fix stuck during flash operation
When a task was not pinned to a certain CPU.
2024-04-17 12:04:05 +03:00
KonstantinKondrashov
a41e037f0e feat(ipc): Adds a new no blocking IPC call 2024-04-17 12:04:05 +03:00
zwl
c6d8d19b81 ble: fixed an occasional assertion issue in coexistence scenarios on ESP32C2 2024-04-17 15:04:51 +08:00
zwl
d10b60aab3 ble: fixed the bt cmakelist error when use nimble host only 2024-04-17 15:04:39 +08:00
Wang Meng Yang
6d63daac84 Merge branch 'feature/add_api_to_send_vendor_hci_cmd_v5.0' into 'release/v5.0'
Feature/add api to send vendor hci cmd v5.0 (backport v5.0)

See merge request espressif/esp-idf!30227
2024-04-16 17:49:01 +08:00
Jiang Jiang Jian
3fdc794f5d Merge branch 'bugfix/spp_crash_after_deint_v5.0' into 'release/v5.0'
fix(bt/bluedroid): Fixed SPP crash due to the connection not being disconnected before esp_spp_deinit was called(v5.0)

See merge request espressif/esp-idf!30083
2024-04-15 11:55:09 +08:00
Jiang Jiang Jian
14e344463a Merge branch 'bugfix/fix_coded_phy_s8_tx_issue_v5.0' into 'release/v5.0'
fix(esp_phy): fixed BLE coded phy s8 tx issue in coexistence scenarios (backport v5.0)

See merge request espressif/esp-idf!30191
2024-04-15 10:57:35 +08:00
zhiweijian
70f84cfca9 fix(ble/bluedroid): Fixed adv not restart due to disconnection reason 0x3e 2024-04-13 15:53:20 +08:00
zhiweijian
c755433922 feat(bt/common): Add bluerooth hci layer data stream record 2024-04-13 15:44:27 +08:00
zhiweijian
57665f7246 feat(bt/bluedroid): add api to setnd vendor hci command 2024-04-13 14:13:43 +08:00
zhiweijian
304be189d8 fix(ble/bluedroid): fixed bluedroid host DTM API 2024-04-13 14:13:26 +08:00
zhiweijian
1e72b8b803 feat(ble/bluedroid): Add APIs for BLE direct test mode on bluedroid host 2024-04-13 14:13:04 +08:00
Rahul Tank
debefe9c70 fix(nimble): Fix compilation issues when CCCD is set to 0 2024-04-12 12:36:14 +05:30
xiongweichao
eab0acdb3c fix(bt/bluedorid): Fixed crash caused by using illegal pointer 2024-04-12 09:13:43 +08:00
xiongweichao
da2a32fbad fix(bt/bluedorid): Fixed no event when removing an invalid SDP record 2024-04-12 09:13:43 +08:00
Rahul Tank
6a10821296 fix(nimble): Fix for Vulnerability CVE_2024_24746 2024-04-11 20:02:49 +05:30
linruihao
96d40b1c82 fix(esp_phy): update phylib for C3, S3 and C2
- fixed BLE coded phy s8 tx issue in coexistence scenarios
- fixed ESP32-C3 and ESP32-S3 BLE RX issue
- optimized ESP32-C3 and ESP32-S3 light sleep current
2024-04-11 17:42:39 +08:00
Rahul Tank
c34f7a95be fix(nimble): Add support for data length change evt 2024-04-11 12:34:05 +05:30
Rahul Tank
5b861dff3d Merge branch 'bugfix/fix_dtm_num_pkt_size_v5.0' into 'release/v5.0'
fix(nimble): Fix the size of num_packets in dtm event (v5.0)

See merge request espressif/esp-idf!30146
2024-04-11 13:38:14 +08:00
xiongweichao
350a248a7f fix(bt/bluedroid): Fix SPP crash after deinit
- The disconnection event comes up after spp disable is completed, so a null pointer is used.
2024-04-10 20:11:27 +08:00
zlq
d9bf45a998 [S3]fix(rtc_cntl_reg.h): fix RTC_CNTL_SLAVE_PD_M 2024-04-10 19:47:29 +08:00
Rahul Tank
5b5777f40c fix(nimble): Fix the size of num_packets in dtm event 2024-04-09 19:02:48 +05:30
morris
6ea1f92a20 feat(gptimer): check the alarm config is not in flash
related to https://github.com/espressif/esp-idf/issues/13543
2024-04-09 17:33:35 +08:00
Island
bc4c4fe06a Merge branch 'bugfix/ble_mesh_heartbeat_filter_add_v5.0' into 'release/v5.0'
Fix(ble_mesh):fix error condition for heartbeat filter adding node address (v5.0)

See merge request espressif/esp-idf!29988
2024-04-09 16:11:50 +08:00
morris
5faf0a6c71 Merge branch 'bugfix/unsupport_partial_receive_on_esp32_v5.0' into 'release/v5.0'
fix(rmt): Fix the RMT RX filter not working correctly on esp32/s2 (v5.0)

See merge request espressif/esp-idf!30079
2024-04-09 14:29:18 +08:00
Marius Vikhammer
19304c5769 Merge branch 'fix/heap-calloc-fail-wrong-size_v5.0' into 'release/v5.0'
fix(heap): Wrong size propagated in alloc fail callback of heap_caps_calloc() (backport v5.0)

See merge request espressif/esp-idf!30092
2024-04-09 12:05:15 +08:00
Rahul Tank
0ef284ebb3 Merge branch 'bugfix/set_correct_addr_type_v5.0' into 'release/v5.0'
fix(nimble): Set correct peer_addr during reattempt connection (v5.0)

See merge request espressif/esp-idf!30057
2024-04-08 21:15:38 +08:00
Guillaume Souchere
cdf5414302 fix(heap): Wrong size propagated in alloc fail callback
Propagate `n * size` as the size of the failed allocation
instead of just `size` when heap_caps_calloc() fails since
`n * size` is the actual number of bytes that the heap
component tried to allocate.
2024-04-08 08:45:18 +02:00
luoxu
7927e444b2 fix(ble_mesh): fix error condition for heartbeat filter adding node address 2024-04-08 14:28:21 +08:00
morris
b27d69dcad fix(rmt): fix the counting clock used by rx filter on esp32/s2
is always APB, independent to the channel clock selection

Closes https://github.com/espressif/esp-idf/issues/13510
2024-04-08 11:51:02 +08:00
Jiang Jiang Jian
ff4dba8e8c Merge branch 'feat/set_cpu_freq_after_pm_config_changed_v5.0' into 'release/v5.0'
fix(esp_pm): update CPU frequency immediately after updating pm_config (v5.0)

See merge request espressif/esp-idf!30070
2024-04-08 10:29:53 +08:00
Jiang Jiang Jian
9feaecf3f3 Merge branch 'bugfix/variable_length_rsnxe_v50' into 'release/v5.0'
Expands maximum size of RSNXE IE to 255(v5.0)

See merge request espressif/esp-idf!30054
2024-04-07 15:50:03 +08:00
wuzhenghui
c6186be010
fix(esp_pm): update CPU frequency immediately after updating pm_config
Closes https://github.com/espressif/esp-idf/issues/13492
2024-04-07 14:50:25 +08:00
Jiang Jiang Jian
397c1d9903 Merge branch 'bugfix/wps_crash_issue_v5.0' into 'release/v5.0'
fix(wpa_supplicant): Avoid dereferencing a dangling function pointer in WPS (Backport v5.0)

See merge request espressif/esp-idf!29736
2024-04-07 10:11:34 +08:00
Rahul Tank
ff8f433583 fix(nimble): Remove extra code in reattempt connection 2024-04-05 22:03:14 +05:30
jgujarathi
598e99fd4d fix(rsnxe): Expands maximum size of RSNXE IE to 255
- Allows for RSNXE IE to be processed as a variable length upto
255 bytes, changing the earlier max of 20.
2024-04-05 11:36:34 +05:30
Jiang Jiang Jian
947479155d Merge branch 'feature/refactor_ftm_code_v5.0' into 'release/v5.0'
Refactor and improve FTM code (Backport v5.0)

See merge request espressif/esp-idf!29856
2024-04-03 20:50:18 +08:00
Jiang Jiang Jian
55fc8e6ae4 Merge branch 'bugfix/aud-5252_v5.0' into 'release/v5.0'
backport v5.0: fix the issue of modem hang caused by incorrect configuration of power and isolate signals

See merge request espressif/esp-idf!30009
2024-04-03 18:56:45 +08:00
Jiang Jiang Jian
2fcd97dd25 Merge branch 'bugfix/dpp_auth_deinit_crash_v50' into 'release/v5.0'
Ensure dpp auth structure is deinited in dpp task context(v5.0)

See merge request espressif/esp-idf!29837
2024-04-03 17:29:40 +08:00
Marius Vikhammer
c73e7c6c7d Merge branch 'bugfix/log_wrap_around_cache_generation_counter_v5.0' into 'release/v5.0'
fix(log): Fix wrap-around of cache generation counter (v5.0)

See merge request espressif/esp-idf!29940
2024-04-03 16:31:48 +08:00
Rahul Tank
d859008ae5 Merge branch 'feat/add_vs_hci_cmd_evt_v5.0' into 'release/v5.0'
feat(nimble): Add APIs to handle vs HCI commands and events (v5.0)

See merge request espressif/esp-idf!29997
2024-04-03 14:41:32 +08:00
Nachiket Kukade
252c6d5ca7 feat(esp_wifi): Refactor and improve FTM code
Update wifi libs with below -

1. Break FTM State Machine code into separate functions
2. Use dynamic allocation for FTM session to save memory
3. Add API to get FTM report instead of event based mechanism
4. Add FTM Request retry and comeback support
2024-04-03 11:25:49 +05:30
Island
2796f0162f Merge branch 'bugfix/ble_bugfix_for_esp32c2' into 'release/v5.0'
ble: update esp32c2 lib to 7a428d35

See merge request espressif/esp-idf!29991
2024-04-03 12:39:55 +08:00
Sarvesh Bodakhe
3847822531 fix(wpa_supplicant): Improve execution flow for WPS registrar public APIs
Make sure that WPS registrar public APIs do not modify supplicant
data in application task context. Execute API functionlity in eloop
context to prevent protential race conditions.
2024-04-03 11:33:54 +08:00
Sarvesh Bodakhe
c24b840ce7 fix(wifi): Avoid dereferencing a dangling function pointer in WPS supplicant
Avoid dereferencing a dangling function pointer in 'eap_server_sm_deinit()'.
This issue arises when hostap unregisteres EAP methods before it removes
the server state machine for station.
2024-04-03 11:33:54 +08:00
Li Shuai
3b4d27669d fix(esp_hw_support): fixed modem hang caused by incorrect configuration of power and isolate signals 2024-04-03 10:53:13 +08:00
Jiang Jiang Jian
3cf0a49d52 Merge branch 'fix/rd_stored_link_key_error_v5.0' into 'release/v5.0'
fix(bt): fix some issues in bt controller(backport v5.0)

See merge request espressif/esp-idf!29976
2024-04-03 10:22:57 +08:00
jgujarathi
969605c7c2 fix(wpa_supplicant): Cancel offchannel listen operations before sending dpp fail
- Ensure that offchannel listening operations are cancelled before sending dpp
  fail events
2024-04-03 10:20:54 +08:00
jgujarathi
0f1c0d27c8 fix(wpa_supplicant): Ensure dpp auth structure is deinited in dpp task context
- Ensure that the dpp auth data gets deinited only in DPP task context to ensure
  that there are no concurrency issues in usage of DPP auth data.
2024-04-03 10:20:54 +08:00
Rahul Tank
94bc0df521 feat(nimble): Add APIs to handle vs HCI commands and events 2024-04-02 15:22:57 +05:30
Rahul Tank
6da2547588 Merge branch 'bugfix/revamp_reconn_scheme_v5.0' into 'release/v5.0'
fix(nimble): Cleanup code in connection reconnection implementation (v5.0)

See merge request espressif/esp-idf!29966
2024-04-02 15:07:47 +08:00
cjin
4d648f6330 feat(ble): add cca related config in c6, h2 and c2 2024-04-02 12:12:24 +08:00
cjin
4c05613b33 change(ble): support ble light sleep using ext 32k xtal on C2 2024-04-02 12:11:16 +08:00
zwl
909393befc ble: update esp32c2 lib to 7a428d35 2024-04-02 12:04:43 +08:00
gongyantao
f3133d1590 fix(bt): fix some issues in bt controller
1: fixed the incorrect timeing in reporting HCI_Link_Key_Type_Changed.
2: fixed the incorrect iv value during resuming encryption.
3: fixed the incorrect return with hci command rd_stored_link_key.
2024-04-02 09:39:32 +08:00
Rahul Tank
9ac19fbad6 fix(nimble): Change reconnection scheme 2024-04-01 17:23:29 +05:30
Jiang Jiang Jian
9d1abd72e5 Merge branch 'bugfix/fix_call_to_header_event_callback_v5.0' into 'release/v5.0'
fix: Fix call to event_handler on on_header state of HTTP Client (v5.0)

See merge request espressif/esp-idf!29956
2024-04-01 19:50:09 +08:00
Harshit Malpani
9c092a3b78
Revert "fix(esp_http_client): Call event_handler after header value is received"
This reverts commit 04ac8e43db.

Fixes https://github.com/espressif/esp-idf/issues/13497
Fixes https://github.com/espressif/esp-idf/issues/13097
2024-04-01 13:21:00 +05:30
Omar Chebib
157f7b438b change(espcoredump): save RAM space by placing constants in flash
All the log messages of espcoredump component used to be in DRAM, which would
lower the available RAM space for the user application. Since the cache is always
enabled after an exception, constants can be put in flash.
2024-04-01 15:30:45 +08:00
Jiang Jiang Jian
2486b6b39b Merge branch 'bugfix/bootloader_custom_rtc_data_crc_v5.0' into 'release/v5.0'
fix(bootloader): add legacy retained memory CRC calculation (backport v5.0)

See merge request espressif/esp-idf!28938
2024-04-01 14:59:01 +08:00
Jiang Jiang Jian
987752fcff Merge branch 'bugfix/fix_some_wifi_coexist_issue_v5.0' into 'release/v5.0'
bugfix/fix some wifi coexist issue v5.0

See merge request espressif/esp-idf!29911
2024-04-01 14:31:56 +08:00
Konstantin Kondrashov
1e7830e57b fix(log): Fix wrap-around of cache generation counter
Closes https://github.com/espressif/esp-idf/issues/6516
2024-03-29 17:32:21 +03:00
liuning
3a0cf2c03a feat(coex): support to scan long time on channel, fix coexist sync issue 2024-03-28 21:09:28 +08:00
liuning
e428e1a9ce feat(coex): improve Wi-Fi connecting compatibility at coexistence 2024-03-28 20:43:12 +08:00
liuning
12d2d95b94 fix(clk): clear all lpclk source at clk init 2024-03-28 20:41:58 +08:00
Jin Cheng
54d0912307 change(bt/bluedroid): Use BTC util to convert HCI status to ESP status 2024-03-28 11:05:22 +08:00
Ivan Grokhotkov
b1b1d5473a
fix(sdmmc): extend the maximum number of retries of ACMD41
According to the application note in SD Card Physical Specification:

> The host shall set ACMD41 timeout more than 1 second to abort repeat
of issuing ACMD41 when the card does not indicate ready. The timeout
count starts from the first ACMD41 which is set voltage window
in the argument.

Previously, the timeout was exactly one second, and this caused
certain larger-capacity cards to "time out", because they couldn't
finish initialization process in time.
2024-03-26 11:41:34 +01:00
Ivan Grokhotkov
383048b19f
fix(sdmmc): use correct argument for ACMD41 in SPI mode
ACMD41 argument is different between SD mode and SPI mode.
In SPI mode, the only non-zero bit may be the HCS bit. Unlike the SD
mode, the bits reflecting the host's OCR should be zero.
Previously, we used to set these bits the same way as for the SD mode.
This has caused certain cards to fail initializing, apparently their
controllers have checked the ACMD41 argument more strictly and refused
to finish initialization, resulting in an error such as

    sdmmc_common: sdmmc_init_ocr: send_op_cond (1) returned 0x107

(Note that this error may have other causes than the one fixed in
this commit. For example, if the card doesn't have a sufficient and
stable power supply, it may also fail to complete the internal
initialization process, and will never clear the busy flag in R1
response.)

Closes https://github.com/espressif/esp-idf/issues/6686
Closes https://github.com/espressif/esp-idf/issues/10542
2024-03-26 11:41:34 +01:00
Aditya Patwardhan
4a7eab3d13 Merge branch 'fix/support_gcm_soft_fallback_for_non_aes_ciphers_v5.0' into 'release/v5.0'
fix(mbedtls/gcm): Add support for software fallback for non-AES ciphers in a GCM operation (v5.0)

See merge request espressif/esp-idf!29257
2024-03-26 17:20:27 +08:00
Marius Vikhammer
de5efa53c0 Merge branch 'fix/log_buffer_v5.0' into 'release/v5.0'
fix(log): Fixed incorrect argument type in hexdump log functions (v5.0)

See merge request espressif/esp-idf!29778
2024-03-26 12:05:10 +08:00
Island
4171186f8e Merge branch 'bugfix/BT-3491_v5.0' into 'release/v5.0'
bugfix(ble_mesh): Avoid provisioner handling messages from nodes that have...(v5.0)

See merge request espressif/esp-idf!28051
2024-03-25 12:11:31 +08:00
Jakob Hasse
9c82da9a27 fix(log): Fixed incorrect argument type in hexdump log functions
Closes https://github.com/espressif/esp-idf/issues/13347
Thanks @matthew-8925
2024-03-21 15:11:29 +08:00
wangjialiang
92aebb963a update invalid links in the ble mesh example documentation 2024-03-21 11:13:14 +08:00
luoxu
2abccdb3d3 bugfix(ble_mesh): Avoid provisioner handling messages from nodes that have already left the network. 2024-03-21 11:13:14 +08:00
Darshan Dobariya
fd1c60b9f9 fix(nimble): Added support for deleting the oldest bonded device across reboot (v5.0) 2024-03-20 15:14:04 +05:30
Martin Vychodil
9daa8eff45 Merge branch 'fix/wl_fatfsgen_safe_mode_v5.0' into 'release/v5.0'
fix(storage/fatfs): make wl_fatfsgen.py safe mode aware (v5.0)

See merge request espressif/esp-idf!29730
2024-03-20 14:37:40 +08:00
Marius Vikhammer
170cfde551 Merge branch 'bugfix/ringbuf_getsize_v5.0' into 'release/v5.0'
fix(esp_ringbuf): fix flash function prvGetFreeSize called from IRAM ISR

See merge request espressif/esp-idf!29699
2024-03-20 11:51:33 +08:00
morris
1cb07eb253 Merge branch 'bugfix/fix_adc_reset_issue_on_legacy_v5.0' into 'release/v5.0'
fix(adc): fix adc continuous get less results beacuse do not reset apb clk(legacy) (v5.0)

See merge request espressif/esp-idf!28334
2024-03-20 10:05:17 +08:00
Tomáš Rohlínek
3404830524
fix(storage/fatfs): make wl_fatfsgen.py safe mode aware 2024-03-19 13:59:33 +01:00
Jiang Jiang Jian
f2d351d75b Merge branch 'fix/fatfs_sdmmc_triming_v5.0' into 'release/v5.0'
fix(storage/fatfs): check whether sdcard supports trimming (v5.0)

See merge request espressif/esp-idf!28337
2024-03-19 14:20:57 +08:00
Jiang Jiang Jian
55adcbf919 Merge branch 'bugfix/struct_init_order_blemesh_v5.0' into 'release/v5.0'
ble_mesh: example: fix the structure init order to meet C++ requirements(backport v5.0)

See merge request espressif/esp-idf!28930
2024-03-19 14:20:22 +08:00
Jiang Jiang Jian
a82f02ae47 Merge branch 'feat/move_ag_cb_malloc_to_btc_v5.0' into 'release/v5.0'
feat(bt/bluedroid): Moved the memory allocation of HF AG control blocks to BTC module (v5.0)

See merge request espressif/esp-idf!29633
2024-03-19 14:19:52 +08:00
Jiang Jiang Jian
94d2ac6a2d Merge branch 'bugfix/cve-2023-52160_v5.0' into 'release/v5.0'
fix(wpa_supplicant): (PEAP client) Update Phase 2 auth requirements (v5.0)

See merge request espressif/esp-idf!29677
2024-03-19 14:19:04 +08:00
Omar Chebib
4a22a5b764 fix(esp_ringbuf): fix flash function prvGetFreeSize called from IRAM ISR
* Closes https://github.com/espressif/esp-idf/issues/13378
2024-03-18 13:39:39 +08:00
linruihao
9277a80293 fix(bt/controller): Fixed some bugs in esp32 bt controller
1. fixed crash issue in coexist callback
2. fixed wrong LMP message send when expect peer device increase tx power to max
2024-03-15 19:08:58 +08:00
Kapil Gupta
34121bdeac fix(wpa_supplicant): (PEAP client) Update Phase 2 auth requirements
The previous PEAP client behavior allowed the server to skip Phase 2
authentication with the expectation that the server was authenticated
during Phase 1 through TLS server certificate validation. Various PEAP
specifications are not exactly clear on what the behavior on this front
is supposed to be and as such, this ended up being more flexible than
the TTLS/FAST/TEAP cases. However, this is not really ideal when
unfortunately common misconfiguration of PEAP is used in deployed
devices where the server trust root (ca_cert) is not configured or the
user has an easy option for allowing this validation step to be skipped.

Change the default PEAP client behavior to be to require Phase 2
authentication to be successfully completed for cases where TLS session
resumption is not used and the client certificate has not been
configured. Those two exceptions are the main cases where a deployed
authentication server might skip Phase 2 and as such, where a more
strict default behavior could result in undesired interoperability
issues. Requiring Phase 2 authentication will end up disabling TLS
session resumption automatically to avoid interoperability issues.

Allow Phase 2 authentication behavior to be configured with a new phase1
configuration parameter option:
'phase2_auth' option can be used to control Phase 2 (i.e., within TLS
tunnel) behavior for PEAP:
 * 0 = do not require Phase 2 authentication
 * 1 = require Phase 2 authentication when client certificate
   (private_key/client_cert) is no used and TLS session resumption was
   not used (default)
 * 2 = require Phase 2 authentication in all cases
2024-03-15 13:22:22 +05:30
Jiang Jiang Jian
1bd6dffbef Merge branch 'bugfix/fix_maximum_value_of_config_rtc_clk_cal_cycles_bug_v5.0' into 'release/v5.0'
ESP All Chip: fixed the maximum value of config RTC_CLK_CAL_SYCLES bug (v5.0)

See merge request espressif/esp-idf!29650
2024-03-15 11:19:14 +08:00
Jiang Jiang Jian
343560e1c5 Merge branch 'bugfix/fix_s3_bbpll_cali_fail_bug_v5.0' into 'release/v5.0'
fix: fix s3 bbpll calibration fail bug (v5.0)

See merge request espressif/esp-idf!29646
2024-03-15 11:18:45 +08:00
hongshuqing
44815d75eb fix: fix_maximum_value_of_config_rtc_clk_cal_cycle_bug 2024-03-14 16:22:39 +08:00
InfiniteYuan
d5f11597e6 ble_mesh: stack: fix the structure init order to meet C++ requirements 2024-03-14 16:20:36 +08:00
hongshuqing
64a99ef412 fix: fix s3 bbpll cali fail bug 2024-03-14 15:45:43 +08:00
chaijie@espressif.com
9a3a74463a fix: fix sleep fast_mem & slow_mem may lost bug 2024-03-14 15:18:57 +08:00
Jin Cheng
baf45b004e feat(bt/bluedroid): Moved the memory allocation of HF AG control blocks to BTC module 2024-03-14 10:53:48 +08:00
Martin Vychodil
05a45e9c96 Merge branch 'bugfix/nvs_lock_initi_and_multipage_blob_v5.0' into 'release/v5.0'
Bugfix/nvs Improved handling of BLOB during unreliable power environment and concurrent data access scenarios (v5.0)

See merge request espressif/esp-idf!29322
2024-03-13 23:06:23 +08:00
morris
09d7bb4ffb Merge branch 'bugfix/fix_flash_encryption_rom_c3_v5.0' into 'release/v5.0'
fix(spi_flash): Fix issue that flash encryption failed while rom_impl config is enabled (backport v5.0)

See merge request espressif/esp-idf!29352
2024-03-13 21:32:12 +08:00
Aditya Patwardhan
822399516c Merge branch 'bugfix/update_disabling_hmac_jtag_method_v5.0' into 'release/v5.0'
fix(esp_hw_support): update hmac toggle method due to discrepency in ROM code (v5.0)

See merge request espressif/esp-idf!29532
2024-03-13 19:25:09 +08:00
radek.tandler
27f432eb05 fix(nvs): Adopted CMakeLists for nvs_host_test of IDF v5.0 2024-03-12 13:28:02 +01:00
harshal.patil
c84dca6e7d
fix(tcp_transport): Fix coverity report regarding tcp_transport 2024-03-12 13:48:06 +05:30
harshal.patil
f7b3cd6cbd
ci(mbedtls/gcm): Added test to verify software fallback for non-AES cipher GCM operations 2024-03-12 13:47:50 +05:30
harshal.patil
c367de40ba
fix(mbedtls/gcm): Add support for software fallback for non-AES ciphers in a GCM operation
- Even if the config MBEDTLS_HARDWARE_AES is enabled, we now support fallback
to software implementation of GCM operations when non-AES ciphers are used.
2024-03-12 13:47:25 +05:30
nilesh.kale
14d7caa921 fix(esp_hw_support): update hmac toggle method due to discrepency in ROM code
Need to update the HMAC enable/disable method due to discrepancy in ROM code
across different targets for the esp_hmac_disable() API.
2024-03-12 12:24:51 +05:30
Darshan Dobariya
a00e268c70 fix(nimble): Added ble_host_rpa_enabled flag for address resoultion for esp32 (v5.0) 2024-03-12 12:20:05 +05:30
Rahul Tank
d39db5ede8 Merge branch 'feat/ble_gap_dev_auth_v5.0' into 'release/v5.0'
feat(nimble): Authorize or deauthorize a BLE device for a connection (v5.0)

See merge request espressif/esp-idf!29241
2024-03-12 12:51:29 +08:00
Jiang Jiang Jian
d388c85fd2 Merge branch 'bugfix/fix_some_ble_bugs_cjh_v5.0' into 'release/v5.0'
Fixed some BLE bugs 2403 (backport v5.0)

See merge request espressif/esp-idf!29467
2024-03-12 11:01:32 +08:00
Jiang Jiang Jian
ffdd5dc2fa Merge branch 'bugfix/fix_some_ble_bugs_240310_v5.0' into 'release/v5.0'
Bugfix/fix some ble bugs 240310 v5.0(backport v5.0)

See merge request espressif/esp-idf!29519
2024-03-12 11:01:14 +08:00
Darshan Dobariya
5a0a8a2c82 feat(nimble): Authorize or deauthorize a BLE device for a connection (v5.0) 2024-03-11 10:24:01 +05:30
Rahul Tank
9aaa048dfc Merge branch 'bugfix/handle_callout_free_in_deinit_v5.0' into 'release/v5.0'
fix(nimble): Handle memory leak in callout deinit (v5.0)

See merge request espressif/esp-idf!29461
2024-03-11 12:52:59 +08:00
Jiang Jiang Jian
c286a416ba Merge branch 'bugfix/fix_esp_wifi_scan_start_memory_leakage_issue_v5.0' into 'release/v5.0'
fix(wifi): fix esp_wifi_scan_start memory leakage issue(Backport v5.0)

See merge request espressif/esp-idf!29477
2024-03-11 11:19:31 +08:00
Omar Chebib
1e8b9f8b9c fix(bootloader): add legacy retained memory CRC calculation
* Closes https://github.com/espressif/esp-idf/issues/12849

In former versions of ESP-IDF, the user custom memory data in the retained memory
was taken into account during the CRC calculation. This was changed in a later
commit, the custom memory was ignored, therefore this can seen as a breaking change.
This commit gives the possibility to choose between the former (legacy) or
new way of calculating the CRC.
2024-03-11 11:03:06 +08:00
zhanghaipeng
af28f8cfb5 fix(ble/bluedroid): Fixed BLE BLE periodic advertising parameter check 2024-03-10 20:04:44 +08:00
zhanghaipeng
3221583d2f fix(ble/bluedroid): Fixed BLE crash when repeatedly initialize and deinitialize host 2024-03-10 20:04:44 +08:00
Rahul Tank
9f47994989 fix(nimble): Handle memory leak in callout deinit 2024-03-08 20:31:46 +05:30
Rahul Tank
2365dd1635 Merge branch 'bugfix/gap_connect_failed_with_0x0d_v5.0' into 'release/v5.0'
fix(nimble): Revise the help section for the Kconfig macro BLE_RPA_TIMEOUT (v5.0)

See merge request espressif/esp-idf!29494
2024-03-08 22:44:07 +08:00
radek.tandler
5ae6eade3d fix(nvs): Fixed Page::findItem performance degradation caused by wrong condition before hash map use
The condition enabling use of hash map when page is searched for Item was modified
to correct the bug introduced by commit addressing delete of any BLOB_INDEX Items.
This correction returns the performance of findItem to the state before previous change.
2024-03-08 13:05:48 +01:00
Martin Vychodil
8c7a8283a9 Merge branch 'update/littlefs_demo_example_v5.0_v2' into 'release/v5.0'
LittleFS demo example added & Update/littlefs demo example (v5.0) v2

See merge request espressif/esp-idf!29451
2024-03-08 19:47:40 +08:00
Abhinav Kudnar
ff4004f977 fix(nimble): Revise the help section for the Kconfig macro BLE_RPA_TIMEOUT 2024-03-08 11:33:39 +05:30
chenjianhua
727e351b35 feat(bt/bluedroid): Add ext adv and privacy status check 2024-03-08 09:29:55 +08:00
thekurtovic
221d33cee0 fix(bt/bluedroid): Fixed "reprot" typo in esp_ble_gap_ext_adv_reprot_t 2024-03-08 09:29:55 +08:00
Joshua
c3aa6c6700 fix(bt/blufi): Fixed BluFi module link error(C++ hybrid compilation) 2024-03-08 09:29:55 +08:00
chenjianhua
380679a387 fix(bt/bluedroid): Fixed crash when calculating GATTS database hash 2024-03-08 09:29:55 +08:00
chenjianhua
12d7e0467f fix(bt): Update bt lib for ESP32(5ea2fca)
- Fixed HCI command status event sending for disconnect command
- Fixed LE transmitter test command param check
2024-03-08 09:29:55 +08:00
Jin Cheng
b4cb3e5744 fix(bt/controller): Fixed 3 esp32 bt controller bugs
update esp32 bt-lib (952debf4)

1. Increased the length of queue for coexist requestions
2. fix(bt/controller): Cleared BT SNIFF when no connections exists
3. fix(bt/controller): Corrected a typo in coex module
2024-03-08 09:29:55 +08:00
chenjianhua
02544b8386 fix(bt): Update bt lib for ESP32(2de69f3)
- Fixed HCI command status event send when LLCP busy
2024-03-08 09:29:55 +08:00
muhaidong
0f3286aa92 fix(wifi): fix esp_wifi_scan_start memory leakage issue
Closes https://github.com/espressif/esp-idf/issues/10693
2024-03-07 17:43:57 +08:00
Rahul Tank
8fcba94795 fix(nimble): Add support for esp_timer_get_expiry_time to nimble porting layer 2024-03-07 11:24:21 +05:30
Rahul Tank
b6b820fdc9 Merge branch 'bugfix/addr_resol_for_esp32_v5.0' into 'release/v5.0'
fix(nimble): Added the check to prevent address resolution in case of identity addr for esp32 ( v5.0)

See merge request espressif/esp-idf!29345
2024-03-07 12:05:53 +08:00
sonika.rathi
e67d8b5fe8 feat(example/storage/littlefs): add LittleFS demo example 2024-03-07 01:19:24 +01:00
Martin Vychodil
f68a7bc76b Revert "Merge branch 'update/littlefs_demo_example_v5.0' into 'release/v5.0'"
This reverts merge request !28453
2024-03-06 18:41:31 +01:00
Abhinav Kudnar
a3d5d1155b fix(nimble): Added the check to prevent address resolution in case of identity addr for esp32 2024-03-05 14:50:20 +05:30
Michael (XIAO Xufeng)
0ce1c1b494 Merge branch 'feature/add_new_pkg_and_flash_psram_efuses_v5.0' into 'release/v5.0'
feat(efuse): Add flash&psram efuses for S3 (v5.0)

See merge request espressif/esp-idf!29144
2024-03-05 10:47:08 +08:00
Jiang Jiang Jian
f934022760 Merge branch 'contrib/github_pr_13294_v5.0' into 'release/v5.0'
Flush rgb lcd PSRAM framebuffers after allocation (GitHub PR) (v5.0)

See merge request espressif/esp-idf!29395
2024-03-05 10:45:06 +08:00
Jiang Jiang Jian
5ff53bf799 Merge branch 'bugfix/esp_intr_free_v5.0' into 'release/v5.0'
fix(esp_hw_support): Fix esp_intr_free when task has no core affinity (v5.0)

See merge request espressif/esp-idf!29195
2024-03-05 10:42:45 +08:00
Rahul Tank
17de25948c Merge branch 'bugfix/increase_reattempt_conn_count_v5.0' into 'release/v5.0'
fix(nimble): Increase range of reattempt connection count (v5.0)

See merge request espressif/esp-idf!29342
2024-03-04 19:44:44 +08:00
Martin Vychodil
2809d47a80 Merge branch 'update/littlefs_demo_example_v5.0' into 'release/v5.0'
LittleFS demo example added (v5.0)

See merge request espressif/esp-idf!28453
2024-03-04 19:35:52 +08:00
Markus Ebner
0252c793d2 fix(esp_lcd): Flush rgb lcd PSRAM framebuffers after allocation
Flush PSRAM framebuffers after allocation to avoid visual corruption.

Merges https://github.com/espressif/esp-idf/pull/13294
Closes https://github.com/espressif/esp-idf/issues/13293
2024-03-04 17:41:30 +08:00
Cao Sen Miao
d8f505751e fix(spi_flash): Fix issue that flash encryption failed while rom_impl config is enabled
The issue is `esp_flash_write_encryped` function in ROM on ESP32C3, ESP32S3
calls legacy implementation, which uses old configuration. And this causes
write fails.
The solution in this commit is to compile and link this function(and related)
in IRAM instead of the ROM one.
The IRAM cost increases around 1.2KB after the fix
2024-03-04 11:55:50 +08:00
morris
76ea0115c2 Merge branch 'bugfix/usb_host_usbh_callback_misses_action_v5.0' into 'release/v5.0'
fix(usb): Fix bug where usbh_process() misses an event (v5.0)

See merge request espressif/esp-idf!29366
2024-03-04 11:38:04 +08:00
Jiang Jiang Jian
d409df4bfb Merge branch 'contrib/github_pr_12867_v5.0' into 'release/v5.0'
fix(esp32): Removed rogue semicolon in #define in esp_smartconfig.h (GitHub PR) (v5.0)

See merge request espressif/esp-idf!29113
2024-03-04 10:44:28 +08:00
Jiang Jiang Jian
597a7d107c Merge branch 'bugfix/fix_ble_max_reconnect_v5.0' into 'release/v5.0'
fix(ble/bluedroid): Update maximum BLE reconnection attempts configuration(backport v5.0)

See merge request espressif/esp-idf!29222
2024-03-04 10:43:39 +08:00
Xiao Xufeng
31201cc947 doc(spi_flash): hide unsupported optional features 2024-03-03 23:11:43 +08:00
Xiao Xufeng
c32a56fe3b spi_flash: fixed issue that enabling HPM-DC by default may cause app unable to restart 2024-03-03 23:11:43 +08:00
Rahul Tank
ae0beef801 Merge branch 'bugfix/add_adv_itvl_range_check_v5.0' into 'release/v5.0'
fix(nimble): Add adv interval min/max range check (v5.0)

See merge request espressif/esp-idf!28853
2024-03-01 18:18:07 +08:00
Darian Leung
8277243522
fix(usb): Fix bug where usbh_process() misses an event
This commit fixes a bug where if multiple concurrent USBH API calls trigger
multiple events on the same device, some events will be lost. As a result,
those lost events don't get processed by the subsequent usbh_process() call.
2024-03-01 14:24:39 +08:00
David Čermák
1a4825955d Merge branch 'feature/mmd_access_v5.0' into 'release/v5.0'
esp_eth: Add functions to access PHY using MDIO (v5.0)

See merge request espressif/esp-idf!28841
2024-02-29 22:30:49 +08:00
David Čermák
13959f258b Merge branch 'bugfix/ip101_reset_timing_v5.0' into 'release/v5.0'
fix(esp_eth): ip101-specific reset_hw to match reset timings from datasheet (v5.0)

See merge request espressif/esp-idf!29013
2024-02-29 21:24:12 +08:00
David Čermák
f74639952e Merge branch 'bugfix/eth_link_reset_v5.0' into 'release/v5.0'
fix(esp_eth): Fixed Ethernet link reset when Ethernet is stopped (v5.0)

See merge request espressif/esp-idf!29330
2024-02-29 19:32:32 +08:00
David Čermák
539f326fd2 Merge branch 'ci/enable_ip101_jobs_v5.0' into 'release/v5.0'
ci(esp_eth): enabled Ethernet ip101 jobs (v5.0)

See merge request espressif/esp-idf!28606
2024-02-29 19:28:18 +08:00
Rahul Tank
41a50ca5ce fix(nimble): Increase range of reattempt connection count 2024-02-29 15:58:07 +05:30
Simon H
515f085f70
fix(esp_wifi): Remove semicolon from SMARTCONFIG_START_CONFIG_DEFAULT
Removed rogue semicolon from SMARTCONFIG_START_CONFIG_DEFAULT() macro. This
fixes build issues when this macro is used via C++ brace initialization.

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

[Darian Leung: Updated commit message]
Signed-off-by: Darian Leung <darian@espressif.com>
2024-02-29 17:59:51 +08:00
Rahul Tank
effd2ededb fix(nimble): Add adv interval min/max range check (v5.0) 2024-02-29 11:02:41 +05:30
Jiang Jiang Jian
702853c00e Merge branch 'bugfix/esp32c2_eap_auth_v5.0' into 'release/v5.0'
fix(wifi): Added low heap usage Kconfig option for eap enterprise (v5.0)

See merge request espressif/esp-idf!28826
2024-02-29 11:24:50 +08:00
Jiang Jiang Jian
1e8aa6c8b6 Merge branch 'bugfix/mbo_api_flag_v5.0' into 'release/v5.0'
fix(wpa_supplicant):Add MBO config flag for mbo apis(v5.0)

See merge request espressif/esp-idf!28696
2024-02-29 11:24:31 +08:00
Ondrej Kosta
3d90c7755f fix(esp_eth): Fixed Ethernet link reset when Ethernet is stopped 2024-02-28 15:50:30 +01:00
radek.tandler
56cb47be79 fix(nvs): Improved lockig mechanism for initialization phase 2024-02-28 12:43:51 +01:00
radek.tandler
12d8abde53 fix(nvs): eraseMultiPageBlob to robustly delete all related BLOB_DATA records and respect VER_ANY 2024-02-28 12:43:51 +01:00
radek.tandler
6cd48e0e91 fix(nvs): corrected findItem to return BLOB_DATA when chunkIndex = CHUNK_ANY 2024-02-28 12:43:51 +01:00
radek.tandler
4b16c95883 fix(nvs): added check and erase of mismatched BLOB_DATA on init 2024-02-28 12:43:51 +01:00
Ivan Grokhotkov
2321decd98 fix(nvs): prevent out of bounds write if blob data is inconsistent 2024-02-28 12:43:50 +01:00
Island
b1992f1b84 Merge branch 'bugfix/ble_update_lib_20240223_v5.0' into 'release/v5.0'
update lib on release/v5.0

See merge request espressif/esp-idf!29208
2024-02-28 16:54:25 +08:00
Jiang Jiang Jian
a1dad7ef57 Merge branch 'bugfix/fix_issues_in_wifi_and_lwip_v5.0' into 'release/v5.0'
fix(wifi): fixed issues in wifi and lwip (v5.0)

See merge request espressif/esp-idf!29201
2024-02-28 16:35:17 +08:00
Jiang Jiang Jian
d80aa9f5b2 Merge branch 'bugfix/encrypted_flash_write_safe_addr_v5.0' into 'release/v5.0'
fix(spi_flash): check for safe write address in encrypted flash API (v5.0)

See merge request espressif/esp-idf!29206
2024-02-28 11:06:48 +08:00
Jiang Jiang Jian
022e57e255 Merge branch 'docs/rf_coexistence_api_guides_support_esp32c2_v5.0' into 'release/v5.0'
Docs: RF coexistence api guides support esp32c2 (v5.0)

See merge request espressif/esp-idf!29216
2024-02-28 11:06:18 +08:00
Jiang Jiang Jian
5952e6ccaf Merge branch 'bugfix/spi_eth_recv_alloc_v5.0' into 'release/v5.0'
fix(esp_eth): improved SPI Ethernet _alloc_recv_buf error handling (v5.0)

See merge request espressif/esp-idf!29084
2024-02-28 11:04:19 +08:00
Abhik Roy
0e9f7aac87 fix(lwip): Fixed debug format, added ci test config
Detailed description of the changes:
  - lwip_debug: Fixed string format error in ip6 and napt (espressif/esp-lwip@f5c43549)
  - dns: fix init with only ipv4 enabled (espressif/esp-lwip@5aab73d7)
2024-02-28 10:59:21 +08:00
zhangyanjiao
99093b8743 feat(lwip): add fall back dns config in menuconfig 2024-02-28 10:59:21 +08:00
zhangyanjiao
ce93d231e9 fix(wifi): fixed scan and mesh deinit issues
1. update scan ap number when clear scan ap records
2. wait for child disconnect when mesh deinit
2024-02-28 10:59:21 +08:00
aditi_lonkar
7c65911c18 fix(wpa_supplicant):Add MBO config flag for mbo apis 2024-02-28 10:37:57 +08:00
Kapil Gupta
c62022b312 fix(wifi): add low memory options for eap enterprise 2024-02-28 10:37:40 +08:00
Jiang Jiang Jian
462dfaf45c Merge branch 'change/reduce_usage_of_iram_when_bt_in_single_mode_v5.0' into 'release/v5.0'
change(bt/bluedroid): Redirect app functions in controller based on the bluetooth mode(backport v5.0)

See merge request espressif/esp-idf!29226
2024-02-28 10:35:38 +08:00
Darshan Dobariya
9e34b224b1 fix(nimble): Fix compilation issue in nimble for -O2 flag 2024-02-27 13:54:50 +05:30
Sumeet Singh
a125c073a0 fix(nimble): Out of order messages during SMP causing DOS vulerability (v5.0) 2024-02-27 10:56:40 +05:30
zwl
3389b68ba9 bugfix(ble) : fixed some ble issues on ESP32-C2 2024-02-27 09:12:29 +08:00
zwl
69b6af9ea9 ble(update):
Update c2 lib to 79be7ec9
2024-02-27 09:12:29 +08:00
zhanghaipeng
b354d97795 fix(ble/bluedroid): Update maximum BLE reconnection attempts configuration 2024-02-27 09:12:12 +08:00
KonstantinKondrashov
f6925f12a0 fix(esp_hw_support): Fix esp_intr_free when taks has no core affinity
Closes https://github.com/espressif/esp-idf/issues/12608
2024-02-26 12:08:46 +02:00
Rahul Tank
3211fa200e fix(nimble): Added API to get current stack operation status (v5.0) 2024-02-26 12:08:18 +05:30
morris
1ddc3564b8 Merge branch 'feature/rmt_encoder_memory_allocator_v5.0' into 'release/v5.0'
feat(rmt): added a help function for allocating encoder memory (v5.0)

See merge request espressif/esp-idf!28792
2024-02-26 13:58:47 +08:00
gongyantao
9b605ab112 change(bt/bluedroid): Redirect app functions in controller based on the bluetooth mode 2024-02-23 19:07:12 +08:00
linruihao
99237104ba fix(esp_coex): add support_coexistence soc_caps for esp32c2 2024-02-23 16:41:52 +08:00
Jiang Jiang Jian
2ed1e79d9a Merge branch 'bugfix/fix_coex_lib_circular_dependency_v5.0' into 'release/v5.0'
fix(esp_coex): fix circular dependency issue on esp32 (v5.0)

See merge request espressif/esp-idf!29174
2024-02-23 15:04:17 +08:00
Mahavir Jain
f01e9be6d5 Merge branch 'fix/build_failure_when_hardware_gcm_is_disabled_v5.0' into 'release/v5.0'
fix(mbedtls/gcm): Fix build failure when config `MBEDTLS_HARDWARE_GCM` is disabled (v5.0)

See merge request espressif/esp-idf!29069
2024-02-23 14:47:49 +08:00
Rahul Tank
6977aa0583 Merge branch 'feat/add_dtm_function_support_v5.0' into 'release/v5.0'
feat(nimble): Add APIs to support BLE DTM functions (v5.0)

See merge request espressif/esp-idf!27144
2024-02-23 12:48:29 +08:00
Mahavir Jain
5ac48e7468 fix(spi_flash): check for safe write address in encrypted flash API 2024-02-23 12:42:46 +08:00
harshal.patil
74eb2add93 fix(mbedtls/gcm): Avoid using GCM hardware when config MBEDTLS_HARDWARE_GCM is disabled 2024-02-23 11:26:21 +08:00
harshal.patil
9f461c010b fix(mbedtls/gcm): Fix build failure when config MBEDTLS_HARDWARE_GCM is disabled 2024-02-23 11:26:21 +08:00
Jiang Jiang Jian
66d71efb87 Merge branch 'bugfix/update_spp_doc_v5.0' into 'release/v5.0'
docs(bt/bluedroid): update API documents of SPP (v5.0)

See merge request espressif/esp-idf!29172
2024-02-23 11:15:03 +08:00
Jiang Jiang Jian
7a649e80c1 Merge branch 'feat/support_get_bluedroid_status_v5.0' into 'release/v5.0'
Support get status of bluedroid host (backport v5.0)

See merge request espressif/esp-idf!28883
2024-02-23 10:55:14 +08:00
Jiang Jiang Jian
646658a564 Merge branch 'bugfix/fix_dangling_pointer_in_remove_bond_list_section_v5.0' into 'release/v5.0'
fix(bt/bluedroid): fix dangling pointer issue when logging removed section (backport v5.0)

See merge request espressif/esp-idf!28963
2024-02-23 10:49:27 +08:00
Jiang Jiang Jian
48570f5466 Merge branch 'bugfix/ble_mesh_deinit_reinit_v5.0' into 'release/v5.0'
feat: ble mesh: improve ble mesh deinit when nimble enable(backport v5.0)

See merge request espressif/esp-idf!28924
2024-02-23 10:49:03 +08:00
Jiang Jiang Jian
1cc35f0bdc Merge branch 'bugfix/ble_mesh_ble_advtype_v5.0' into 'release/v5.0'
ble_mesh: update ble mesh ble adv type(backport v5.0)

See merge request espressif/esp-idf!28915
2024-02-23 10:47:45 +08:00
Jiang Jiang Jian
d253654f0f Merge branch 'bugfix/ble_bug_backport_20240205_v5.0' into 'release/v5.0'
Bugfix/ble bug backport 20240205 (backport v5.0)

See merge request espressif/esp-idf!28898
2024-02-23 10:47:06 +08:00
Jiang Jiang Jian
0c555c9fbc Merge branch 'bugfix/fix_dtm_tx_count_v5.0' into 'release/v5.0'
Update bt lib for ESP32-C3 and ESP32-S3(30b57c45)(backport v5.0)

See merge request espressif/esp-idf!28878
2024-02-23 10:45:16 +08:00
Jiang Jiang Jian
91ed63ef02 Merge branch 'feature/supplicant_bss_extmem_v5.0' into 'release/v5.0'
WiFi: Add support to move supplicant BSS to external memory (v5.0)

See merge request espressif/esp-idf!28745
2024-02-23 10:41:41 +08:00
Jiang Jiang Jian
153b81b546 Merge branch 'bugfix/spp_disc_connect_btqabr2023_156_v5.0' into 'release/v5.0'
fix(bt/bluedroid): Fixed SPP connection failure(v5.0)

See merge request espressif/esp-idf!28543
2024-02-23 10:40:41 +08:00
morris
7c88240e38 feat(rmt): added a help function for allocating encoder memory
The encoder memory location should respect the RMT_MEM_ALLOC_CAPS,
which is affected by some Kconfig options, like ISR_IRAM_SAFE

Closes https://github.com/espressif/esp-idf/issues/13032
2024-02-23 10:29:31 +08:00
morris
b721f9cd09 Merge branch 'bugfix/fix_incorrect_regbase_name_of_i2s_v5.0' into 'release/v5.0'
fix(i2s): fixed incorrect reg base name on C3 (v5.0)

See merge request espressif/esp-idf!28632
2024-02-23 10:28:41 +08:00
morris
e9fa7a9f06 Merge branch 'bugfix/mcpwm_reset_generator_gpio_v5.0' into 'release/v5.0'
fix(mcpwm): reset GPIO used by generator after delete (v5.0)

See merge request espressif/esp-idf!28833
2024-02-23 10:27:10 +08:00
morris
7146c557e9 Merge branch 'feature/bytes_encoder_config_update_v5.0' into 'release/v5.0'
feat(rmt): support update bytes encoder configurations at runtime (v5.0)

See merge request espressif/esp-idf!28383
2024-02-23 10:26:01 +08:00
morris
fcc7bcbfc7 Merge branch 'contrib/github_pr_13020_v5.0' into 'release/v5.0'
fix (esp_lcd): Don't assume panels are 16bit in VSYNC restart logic (GitHub PR) (v5.0)

See merge request espressif/esp-idf!28813
2024-02-23 10:25:42 +08:00
Konstantin Kondrashov
4c2eec029f feat(efuse): Adds support for alternative efuse names 2024-02-22 13:31:28 +02:00
KonstantinKondrashov
a66baa1984 feat(efuse): Add flash&psram efuses for S3 2024-02-22 11:40:33 +02:00
Marius Vikhammer
422bb72993 Merge branch 'bugfix/linenoise_calculates_negative_prompt_len_v5.0' into 'release/v5.0'
fix(console): Fixed linenoise prompt length calculation (v5.0)

See merge request espressif/esp-idf!28528
2024-02-22 17:32:01 +08:00
Mahavir Jain
68c450df47 Merge branch 'feature/conservative_key_revocation_in_secure_boot_v5.0' into 'release/v5.0'
feat: Add API to verify the bootloader and application image before revoking... (v5.0)

See merge request espressif/esp-idf!28490
2024-02-22 17:15:24 +08:00
Mahavir Jain
5af8e8890d Merge branch 'bugfix/fix_http_auth_without_qop_v5.0' into 'release/v5.0'
fix(esp_http_client): Fix http digest auth without qop (v5.0)

See merge request espressif/esp-idf!28759
2024-02-22 17:15:15 +08:00
Mahavir Jain
534e3ad1fa Merge branch 'bugfix/ota_anti_rollback_checks_2_v5.0' into 'release/v5.0'
feat(bootloader_support): Read secure_version under sha256 protection (v5.0)

See merge request espressif/esp-idf!29061
2024-02-22 17:13:17 +08:00
Mahavir Jain
96e3e4c589 Merge branch 'feature/update_mbedtls_v5.0' into 'release/v5.0'
feat(mbedtls): updated mbedtls version from 3.5.0 to 3.5.2 (v5.0)

See merge request espressif/esp-idf!28894
2024-02-22 17:12:39 +08:00
Aditya Patwardhan
14ddc194bd Merge branch 'feat/flash_enc_encrypt_app_image_of_size_image_length_v5.0' into 'release/v5.0'
feat(bootloader_support): Encrypt only the app image instead of the whole partition (v5.0)

See merge request espressif/esp-idf!28267
2024-02-22 17:06:42 +08:00
linruihao
bc5addf826 fix(esp_coex): fix circular dependency issue on esp32
Closes https://github.com/espressif/esp-idf/issues/13113
2024-02-22 16:52:37 +08:00
Jin Cheng
7e4995d92c docs(bt/bluedroid): update API documents of SPP 2024-02-22 09:57:47 +08:00
Mahavir Jain
1620858985 fix(bootloader_support): check the secure version only for app image
Secure version in the image header is only available for the application
image. However, for certain security workflows, bootloader verifies
itself (own image) and hence the secure version check during that must be
avoided.

Regression introduced in recent commit-id: 3305cb4d

Tested that both secure boot and flash-enc workflows work correctly
with the anti-rollback scenario.
2024-02-20 11:18:28 +02:00
Aditya Patwardhan
bcca689866
change(version): Update version to 5.0.6 2024-02-20 10:03:13 +05:30
Ondrej Kosta
62a2b27082 fix(esp_eth): improved SPI Ethernet _alloc_recv_buf error handling 2024-02-16 14:43:53 +01:00
Mahavir Jain
f2743707b8 fix(ota): additional checks for secure version in anti-rollback case
Some additional checks related to secure version of the application in
anti-rollback case have been added to avoid any attempts to boot lower
security version but valid application (e.g., passive partition image).

- Read secure_version under sha256 protection

- First check has been added in the bootloader to ensure correct secure
  version after application verification and loading stage. This check
  happens before setting up the flash cache mapping and handling over
  the final control to application. This check ensures that application
  was not swapped (e.g., to lower security version but valid image) just
  before the load stage in bootloader.

- Second check has been added in the application startup code to ensure
  that currently booting app has higher security version than the one
  programmed in the eFuse for anti-rollback scenario. This will ensure
  that only the legit application boots-up on the device for
  anti-rollback case.
2024-02-15 15:14:51 +02:00
Bogdan Kolendovskyy
e703fad818 esp_eth: Add functions to access PHY using MDIO
Specifically:
  - Set/get address
  - Read/write data at address with specified MDIO access function
  - Read/write both address and data with a single call
2024-02-13 12:46:36 +01:00