Commit Graph

16270 Commits

Author SHA1 Message Date
zhiweijian
8d7c759e11 fix(ble/bluedroid): Fixed adv not restart due to disconnection reason 0x3e 2024-04-13 18:25:20 +08:00
zhiweijian
9a7b3f80b2 feat(bt/common): Add bluerooth hci layer data stream record 2024-04-13 18:25:08 +08:00
zhiweijian
db9ba9378f feat(bt/bluedroid): add api to setnd vendor hci command 2024-04-13 15:06:25 +08:00
zhiweijian
60d757c5a4 fix(ble/bluedroid): fixed bluedroid host DTM API 2024-04-13 15:06:11 +08:00
zhiweijian
f837394d59 feat(ble/bluedroid): Add APIs for BLE direct test mode on bluedroid host 2024-04-13 15:05:56 +08:00
Rahul Tank
fcc210d34e fix(nimble): Fix compilation issues when CCCD is set to 0 2024-04-12 12:38:51 +05:30
Rahul Tank
31fd152cc6 fix(nimble): Fix for Vulnerability CVE_2024_24746 2024-04-11 20:03:56 +05:30
linruihao
ca7b269dc8 fix(esp_phy): update phylib for C3 and S3
- 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:49:01 +08:00
zlq
8855a3d6c4 [S3]fix(rtc_cntl_reg.h): fix RTC_CNTL_SLAVE_PD_M 2024-04-10 19:39:59 +08:00
Island
ae5d8a6fae Merge branch 'bugfix/ble_mesh_heartbeat_filter_add_v4.4' into 'release/v4.4'
Fix(ble_mesh):fix error condition for heartbeat filter adding node address (v4.4)

See merge request espressif/esp-idf!29989
2024-04-09 16:12:10 +08:00
Marius Vikhammer
be6cf38b31 Merge branch 'fix/heap-calloc-fail-wrong-size_v4.4' into 'release/v4.4'
fix(heap): Wrong size propagated in alloc fail callback of heap_caps_calloc() (backport v4.4)

See merge request espressif/esp-idf!30093
2024-04-09 12:05:37 +08:00
Rahul Tank
fadb4082b0 Merge branch 'bugfix/set_correct_addr_type_v4.4' into 'release/v4.4'
fix(nimble): Set correct peer_addr during reattempt connection (v4.4)

See merge request espressif/esp-idf!30058
2024-04-08 20:58:25 +08:00
xiongweichao
d47b2e4612 feat(ble): Added API to get low power clock source 2024-04-08 20:02:43 +08:00
Li Shuai
0dea8d7df8 fix(esp_hw_support): fixed modem hang caused by incorrect configuration of power and isolate signals 2024-04-08 16:01:30 +08:00
jingli
01117ef986 soc/soc_caps: update soc caps for chips that support power-down of modem hardware
Closes WIFI-4424
2024-04-08 15:50:29 +08:00
Guillaume Souchere
98bd872f3c 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:47:54 +02:00
luoxu
523cd6291b fix(ble_mesh): fix error condition for heartbeat filter adding node address 2024-04-08 14:28:39 +08:00
Jiang Jiang Jian
e83ed8b345 Merge branch 'bugfix/spp_crash_after_deint_v4.4' into 'release/v4.4'
fix(bt/bluedroid): Fixed SPP crash due to the connection not being disconnected before esp_spp_deinit was called(v4.4)

See merge request espressif/esp-idf!30084
2024-04-08 12:03:44 +08:00
Jiang Jiang Jian
fc56e0e008 Merge branch 'fix/log_buffer_4.4' into 'release/v4.4'
fix(log): Fixed incorrect argument type in hexdump log functions (v4.4)

See merge request espressif/esp-idf!29784
2024-04-08 10:31:35 +08:00
Jiang Jiang Jian
1e9c933b20 Merge branch 'fix/gcov_fault_v4.4' into 'release/v4.4'
fix(gcov): fix exceptions on gcov task_tick_hook (v4.4)

See merge request espressif/esp-idf!30028
2024-04-08 10:30:41 +08:00
xiongweichao
0c4fbbff02 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-07 20:03:33 +08:00
Rahul Tank
4c00c5c29c fix(nimble): Remove extra code in reattempt connection 2024-04-06 20:32:33 +05:30
nilesh.kale
a5350112fb feat(mbedtls): updated mbedtls version from 2.28.7 to 2.28.8
This MR updated MbedTLS version to 2.28.8.
2024-04-05 15:17:03 +05:30
jgujarathi
eeedc3e00e 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 10:41:44 +05:30
Rahul Tank
ff9db0dc80 Merge branch 'feat/add_vendor_hci_cmd' into 'release/v4.4'
Nimble: Add APIs to handle vs HCI commands and events (v4.4)

See merge request espressif/esp-idf!29995
2024-04-03 21:52:06 +08:00
Alexey Lapshin
85f0a4c1a7 fix(gcov): fix exceptions on gcov task_tick_hook
Closes https://github.com/espressif/esp-idf/issues/13511
2024-04-03 15:30:25 +04:00
Jiang Jiang Jian
e1affdc8f7 Merge branch 'bugfix/dpp_auth_deinit_crash_v44' into 'release/v4.4'
Ensure dpp auth structure is deinited in dpp task context(v4.4)

See merge request espressif/esp-idf!29836
2024-04-03 17:29:00 +08:00
Rahul Tank
d9a1302095 Nimble: Add APIs to handle vs HCI commands and events 2024-04-03 10:46:13 +05:30
Jiang Jiang Jian
9dce0a4ac7 Merge branch 'bugfix/fix_some_wifi_coexist_issue_v4.4' into 'release/v4.4'
bugfix/fix some wifi coexist issue v4.4

See merge request espressif/esp-idf!29990
2024-04-03 11:29:08 +08:00
jgujarathi
15ba8fb5ab 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 11:10:34 +08:00
jgujarathi
69321d1dda 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 11:10:34 +08:00
Jiang Jiang Jian
efcbfbefc2 Merge branch 'fix/rd_stored_link_key_error_v4.4' into 'release/v4.4'
fix(bt): fix some issues in bt controller(backport v4.4)

See merge request espressif/esp-idf!29974
2024-04-03 11:09:54 +08:00
Rahul Tank
b65ac342c0 Merge branch 'bugfix/revamp_reconn_scheme_v4.4' into 'release/v4.4'
fix(nimble): Cleanup code in connection reconnection implementation (v4.4)

See merge request espressif/esp-idf!29967
2024-04-02 15:30:09 +08:00
liuning
d0d1676fcc feat(coex): support to scan long time on channel, fix coexist sync issue 2024-04-02 12:01:58 +08:00
liuning
ac0e88403c feat(coex): improve Wi-Fi connecting compatibility at coexistence 2024-04-02 11:55:29 +08:00
Omar Chebib
976b847ca1 fix(i2c): fix issues related to timeout and alive interval tick
Fixes https://github.com/espressif/esp-idf/issues/4999

Former usage of I2C_CMD_ALIVE_INTERVAL_TICK macro overrode the ticks_to_wait
parameter when the latter was too big
2024-04-02 10:47:51 +08:00
gongyantao
b0a6609e7a 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:42:49 +08:00
Rahul Tank
5ff6298956 fix(nimble): Change reconnection scheme 2024-04-01 18:23:16 +05:30
Harshit Malpani
1451ec389b
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:45 +05:30
Jin Cheng
9ce03290cc change(bt/bluedroid): Use BTC util to convert HCI status to ESP status 2024-03-28 11:06:22 +08:00
Island
1e1030e5ef Merge branch 'bugfix/BT-3491_v4.4' into 'release/v4.4'
bugfix(ble_mesh): Avoid provisioner handling messages from nodes that have...(v4.4)

See merge request espressif/esp-idf!28052
2024-03-25 12:11:15 +08:00
Jakob Hasse
5dbe8d3539 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 16:18:37 +08:00
Darshan Dobariya
eabb77e9bc fix(nimble): Added support for deleting the oldest bonded device across reboot (v4.4) 2024-03-21 10:52:13 +05:30
Rahul Tank
6f4ff9b30f Merge branch 'bugfix/fix_dangling_pointer_compilation_warning_v4.4' into 'release/v4.4'
fix(nimble): Fix dangling pointer error during compilation (v4.4)

See merge request espressif/esp-idf!29743
2024-03-21 13:05:37 +08:00
wangjialiang
000bf3a365 update invalid links in the ble mesh example documentation 2024-03-21 11:13:37 +08:00
luoxu
ce36163317 bugfix(ble_mesh): Avoid provisioner handling messages from nodes that have already left the network. 2024-03-21 11:13:37 +08:00
Jiang Jiang Jian
5452195e33 Merge branch 'bugfix/cve-2023-52160_v4.4' into 'release/v4.4'
fix(wpa_supplicant): (PEAP client) Update Phase 2 auth requirements (v4.4)

See merge request espressif/esp-idf!29752
2024-03-20 16:25:51 +08:00
Jiang Jiang Jian
8df220e6a4 Merge branch 'bugfix/fix_fastmem_slowmem_lost_data_bug_v4.4' into 'release/v4.4'
[C3/S3]Fix sleep fast_mem & slow_mem may lost bug (v4.4)

See merge request espressif/esp-idf!29643
2024-03-20 16:24:56 +08:00
Jiang Jiang Jian
894a0d54e5 Merge branch 'bugfix/fix_s3_bbpll_cali_fail_bug_v4.4' into 'release/v4.4'
fix: fix s3 bbpll calibration fail bug (v4.4)

See merge request espressif/esp-idf!29647
2024-03-20 16:21:22 +08:00
Kapil Gupta
4db2ef0f33 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-20 09:42:14 +05:30
Marius Vikhammer
8643854656 Merge branch 'fix/console-build-error_v4.4' into 'release/v4.4'
console: Fix building issue when serial JTAG is set (v4.4)

See merge request espressif/esp-idf!23737
2024-03-20 10:35:53 +08:00
Rahul Tank
7489d8ff2d fix(nimble): Fix dangling pointer error during compilation 2024-03-19 19:32:56 +05:30
hongshuqing
fbe83d8738 fix: fix s3 bbpll cali fail bug 2024-03-19 14:22:56 +08:00
chaijie@espressif.com
30edfaeb06 fix: fix sleep fast_mem & slow_mem may lost bug 2024-03-15 20:02:29 +08:00
linruihao
24b5515d4f 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:09:07 +08:00
Jiang Jiang Jian
d3a0f26c84 Merge branch 'feat/move_ag_cb_malloc_to_btc_v4.4' into 'release/v4.4'
feat(bt/bluedroid): Moved the memory allocation of HF AG control blocks to BTC module (v4.4)

See merge request espressif/esp-idf!29634
2024-03-14 16:22:56 +08:00
Jiang Jiang Jian
30f96ffe48 Merge branch 'bugfix/sdspi_acmd41_arg_v4.4' into 'release/v4.4'
fix(sdmmc): fixes for card initialization (ACMD41) (v4.4)

See merge request espressif/esp-idf!29379
2024-03-14 16:22:32 +08:00
Jin Cheng
9830b8bb22 feat(bt/bluedroid): Moved the memory allocation of HF AG control blocks to BTC module 2024-03-14 10:56:25 +08:00
Martin Vychodil
d2bc43f543 Merge branch 'bugfix/nvs_lock_initi_and_multipage_blob_v4.4' into 'release/v4.4'
Bugfix/nvs Improved handling of BLOB during unreliable power environment and concurrent data access scenarios (v4.4)

See merge request espressif/esp-idf!29324
2024-03-13 23:04:32 +08:00
radek.tandler
651102302a fix(nvs): CMakeLists.txt adopted for nvs_host_test v4.4 2024-03-12 13:36:15 +01:00
radek.tandler
156429b56a 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-12 13:34:51 +01:00
Darshan Dobariya
1243dab84d fix(nimble): Added ble_host_rpa_enabled flag for address resoultion for esp32 (v4.4) 2024-03-12 12:30:25 +05:30
Jiang Jiang Jian
5bd00ecceb Merge branch 'bugfix/fix_some_ble_bugs_cjh_v4.4' into 'release/v4.4'
Fixed some BLE bugs 2403 (backport v4.4)

See merge request espressif/esp-idf!29468
2024-03-12 11:02:39 +08:00
zhanghaipeng
7eebebff0c fix(ble/bluedroid): Fixed BLE BLE periodic advertising parameter check 2024-03-10 20:08:51 +08:00
zhanghaipeng
4b40817158 fix(ble/bluedroid): Fixed BLE crash when repeatedly initialize and deinitialize host 2024-03-10 20:05:16 +08:00
Abhinav Kudnar
64b278f74e fix(nimble): Revise the help section for the Kconfig macro BLE_RPA_TIMEOUT 2024-03-08 11:31:36 +05:30
chenjianhua
285bffbffd feat(bt/bluedroid): Add ext adv and privacy status check 2024-03-07 14:25:35 +08:00
thekurtovic
a2cc7980e4 fix(bt/bluedroid): Fixed "reprot" typo in esp_ble_gap_ext_adv_reprot_t 2024-03-07 14:25:28 +08:00
Joshua
6ca03fc600 fix(bt/blufi): Fixed BluFi module link error(C++ hybrid compilation) 2024-03-07 14:22:42 +08:00
chenjianhua
8ada7f868b fix(bt/bluedroid): Fixed crash when calculating GATTS database hash 2024-03-07 14:19:00 +08:00
chenjianhua
17e3c69694 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-07 14:18:18 +08:00
Jin Cheng
4734fb0044 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-07 14:18:13 +08:00
chenjianhua
e249971122 fix(bt): Update bt lib for ESP32(2de69f3)
- Fixed HCI command status event send when LLCP busy
2024-03-07 14:18:07 +08:00
Abhinav Kudnar
4e73d06135 fix(nimble): Added the check to prevent address resolution in case of identity addr for esp32 2024-03-06 15:16:50 +05:30
Island
29efc9650d Merge branch 'bugfix/struct_init_order_blemesh_v4.4' into 'release/v4.4'
ble_mesh: example: fix the structure init order to meet C++ requirements(backport v4.4)

See merge request espressif/esp-idf!28929
2024-03-06 14:09:28 +08:00
Darshan Dobariya
e79e35219e feat(nimble): Authorize or deauthorize a BLE device for a connection (v4.4) 2024-03-05 10:02:37 +05:30
Michael (XIAO Xufeng)
e374f8fd6a Merge branch 'feature/add_new_pkg_and_flash_psram_efuses_v4.4' into 'release/v4.4'
feat(efuse): Add flash&psram efuses for S3 (v4.4)

See merge request espressif/esp-idf!29145
2024-03-05 10:54:38 +08:00
Rahul Tank
7a00499cc9 Merge branch 'bugfix/move_count_v4.4' into 'release/v4.4'
fix(nimble): Fix compilation issue in nimble for -O2 flag (v4.4)

See merge request espressif/esp-idf!29076
2024-03-04 22:05:56 +08:00
Rahul Tank
29f92595bf Merge branch 'bugfix/increase_reattempt_conn_count_v4.4' into 'release/v4.4'
fix(nimble): Increase range of reattempt connection count (v4.4)

See merge request espressif/esp-idf!29343
2024-03-04 19:44:21 +08:00
Darshan Dobariya
0e9b28f7fb fix(nimble): Fix compilation issue in nimble for -O2 flag (v4.4) 2024-03-04 15:19:52 +05:30
Guillaume Souchere
f47d9432a0 console: Fix building issue when serial JTAG is set
Closes https://github.com/espressif/esp-idf/issues/10707
2024-03-04 14:29:39 +08:00
morris
0241b95b71 Merge branch 'bugfix/usb_host_usbh_callback_misses_action_v4.4' into 'release/v4.4'
fix(usb): Fix bug where usbh_process() misses an event (v4.4)

See merge request espressif/esp-idf!29367
2024-03-04 11:38:12 +08:00
Jiang Jiang Jian
6ec1935ccb Merge branch 'bugfix/fix_issues_in_mesh_and_scan_v4.4' into 'release/v4.4'
fix(wifi): fixed scan and mesh deinit issues (v4.4)

See merge request espressif/esp-idf!29203
2024-03-04 10:56:29 +08:00
Jiang Jiang Jian
093f04510f Merge branch 'bugfix/ip101_reset_timing_v4.4' into 'release/v4.4'
fix(esp_eth): ip101-specific reset_hw to match reset timings from datasheet (v4.4)

See merge request espressif/esp-idf!29015
2024-03-04 10:40:47 +08:00
Jiang Jiang Jian
fdfe99cdb2 Merge branch 'bugfix/improve_find_by_addr' into 'release/v4.4'
fix(nimble): Improve find conn by ble_addr_t (v4.4)

See merge request espressif/esp-idf!29134
2024-03-04 10:40:27 +08:00
Jiang Jiang Jian
6cb955e8e6 Merge branch 'bugfix/update_spp_doc_v4.4' into 'release/v4.4'
docs(bt/bluedroid): update API documents of SPP (v4.4)

See merge request espressif/esp-idf!29173
2024-03-04 10:40:05 +08:00
Jiang Jiang Jian
8247e0b058 Merge branch 'bugfix/fix_ble_max_reconnect_v4.4' into 'release/v4.4'
fix(ble/bluedroid): Update maximum BLE reconnection attempts configuration(backport v4.4)

See merge request espressif/esp-idf!29221
2024-03-04 10:38:03 +08:00
Jiang Jiang Jian
303ad716b6 Merge branch 'bugfix/bootloader_custom_rtc_data_crc' into 'release/v4.4'
fix(bootloader): add legacy retained memory CRC calculation (backport v4.4)

See merge request espressif/esp-idf!28142
2024-03-04 10:36:39 +08:00
Jiang Jiang Jian
5c5ab4b0c9 Merge branch 'change/reduce_usage_of_iram_when_bt_in_single_mode_v4.4' into 'release/v4.4'
change(bt/bluedroid): Redirect app functions in controller based on the bluetooth mode(backport v4.4)

See merge request espressif/esp-idf!29227
2024-03-04 10:35:29 +08:00
Jiang Jiang Jian
fac1a07248 Merge branch 'bugfix/fix_coex_lib_circular_dependency_v4.4' into 'release/v4.4'
fix(esp_coex): fix circular dependency issue on esp32 (v4.4)

See merge request espressif/esp-idf!29175
2024-03-04 10:34:18 +08:00
Ivan Grokhotkov
6383fd550a
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-01 10:50:29 +01:00
Ivan Grokhotkov
dceec3fac0
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-01 10:50:29 +01:00
Darian Leung
8f208fd0c0
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:34:28 +08:00
Rahul Tank
1b249261f3 fix(nimble): Increase range of reattempt connection count 2024-02-29 15:58:33 +05:30
radek.tandler
e6f5608739 fix(nvs): Improved lockig mechanism for initialization phase 2024-02-28 14:18:10 +01:00
radek.tandler
871534b64b fix(nvs): eraseMultiPageBlob to robustly delete all related BLOB_DATA records and respect VER_ANY 2024-02-28 12:44:09 +01:00
radek.tandler
62dc1fdf04 fix(nvs): corrected findItem to return BLOB_DATA when chunkIndex = CHUNK_ANY 2024-02-28 12:44:09 +01:00
radek.tandler
e818c42e1c fix(nvs): added check and erase of mismatched BLOB_DATA on init 2024-02-28 12:44:08 +01:00
Ivan Grokhotkov
5bd115a12e fix(nvs): prevent out of bounds write if blob data is inconsistent 2024-02-28 12:44:08 +01:00
Roland Dobai
4bd9aae42b change(version): Update version to 4.4.7 2024-02-27 07:28:32 +01:00
gongyantao
9fac48f089 change(bt/bluedroid): Redirect app functions in controller based on the bluetooth mode 2024-02-23 19:08:50 +08:00
zhanghaipeng
c73823095d fix(ble/bluedroid): Update maximum BLE reconnection attempts configuration 2024-02-23 15:49:30 +08:00
David Čermák
1db39dfea9 Merge branch 'bugfix/w5500_copy_len_v4.4' into 'release/v4.4'
fix(esp_eth): W5500 receive function to return copy_len (v4.4)

See merge request espressif/esp-idf!29022
2024-02-23 15:06:57 +08:00
zhangyanjiao
989eb18f5d 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-23 10:55:19 +08:00
Konstantin Kondrashov
d78b2b6af9 feat(efuse): Adds support for alternative efuse names 2024-02-22 11:57:17 +02:00
KonstantinKondrashov
9cb32917a5 feat(efuse): Add flash&psram efuses for S3 2024-02-22 11:49:28 +02:00
linruihao
2c62a152fb fix(esp_coex): fix circular dependency issue on esp32
Closes https://github.com/espressif/esp-idf/issues/13113
2024-02-22 16:54:58 +08:00
Rahul Tank
ead3022f5b fix(nimble): Improve find conn by ble_addr_t 2024-02-22 09:01:42 +05:30
Jin Cheng
5c8190f2ad docs(bt/bluedroid): update API documents of SPP 2024-02-22 10:01:19 +08:00
Mahavir Jain
f327ddf6ad Merge branch 'bugfix/ota_anti_rollback_checks_2_v4.4' into 'release/v4.4'
feat(bootloader_support): Read secure_version under sha256 protection (v4.4)

See merge request espressif/esp-idf!29062
2024-02-21 11:45:51 +08:00
Mahavir Jain
40fe00a65c 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:20:03 +02:00
harshal.patil
7f20e696b6
fix(mbedtls/gcm): Avoid using GCM hardware when config MBEDTLS_HARDWARE_GCM is disabled 2024-02-16 11:55:41 +05:30
harshal.patil
3bffba71c0
fix(mbedtls/gcm): Fix build failure when config MBEDTLS_HARDWARE_GCM is disabled 2024-02-16 11:55:41 +05:30
Mahavir Jain
6d2153d703 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:23:19 +02:00
Ondrej Kosta
e2e03ced38 fix(esp_eth): W5500 receive function to return copy_len 2024-02-12 10:36:29 +01:00
Bogdan Kolendovskyy
bf73313e42 fix(esp_eth): ip101-specific reset_hw to match reset timings from datasheet
IP101 requires 10ms reset assertion time and 10ms post-reset delay to properly initialize.
2024-02-09 15:22:02 +01:00
nilesh.kale
6fa8029146 feat(mbedtls): Update mbedtls to 2.28.7
This MR updates MbedlTLS version from 2.28.5 to 2.28.7
2024-02-09 11:38:23 +05:30
Jiang Jiang Jian
b2146b8aa3 Merge branch 'bugfix/fix_dangling_pointer_in_remove_bond_list_section_v4.4' into 'release/v4.4'
fix(bt/bluedroid): fix dangling pointer issue when logging removed section (backport v4.4)

See merge request espressif/esp-idf!28964
2024-02-07 22:02:09 +08:00
Jiang Jiang Jian
27bc69a6df Merge branch 'bugfix/fix_coex_wifi_restart_issue_v4.4' into 'release/v4.4'
Bugfix/fix coex wifi restart issue v4.4

See merge request espressif/esp-idf!28935
2024-02-07 19:32:22 +08:00
InfiniteYuan
d3290e761b ble_mesh: stack: fix the structure init order to meet C++ requirements 2024-02-07 16:38:19 +08:00
gongyantao
de32c62e90 fix(bt/bluedroid): fix dangling pointer issue when logging remove section 2024-02-07 15:10:30 +08:00
Rahul Tank
02312e6a31 Merge branch 'bugfix/fix_out_of_order_messages_causing_dos_v4.4' into 'release/v4.4'
fix(nimble): Out of order messages during SMP causing DOS vulnerability (v4.4)

See merge request espressif/esp-idf!28940
2024-02-07 11:59:44 +08:00
Jiang Jiang Jian
49961221ed Merge branch 'bugfix/ble_mesh_deinit_reinit_v4.4' into 'release/v4.4'
feat: ble mesh: improve ble mesh deinit when nimble enable(backport v4.4)

See merge request espressif/esp-idf!28923
2024-02-07 11:06:26 +08:00
Sumeet Singh
abd29905ae fix(nimble): Out of order messages during SMP causing DOS vulerability (v4.4) 2024-02-06 16:46:27 +05:30
liuning
37bf723057 fix(wifi): fix wifi stop cost too much time 2024-02-06 16:10:14 +08:00
liuning
a43e575bb0 fix(clk): clear all lpclk source at clk init 2024-02-06 16:07:40 +08:00
InfiniteYuan
674f322b87 feat: ble mesh: improve ble mesh deinit when nimble enable 2024-02-06 14:45:31 +08:00
InfiniteYuan
16a6523220 ble_mesh: update ble mesh ble adv type 2024-02-06 14:17:02 +08:00
muhaidong
0bfa176435 fix(wifi): fix esp_wifi_scan_start memory leakage issue
Closes https://github.com/espressif/esp-idf/issues/10693
2024-02-05 19:33:47 +08:00
Jiang Jiang Jian
247cb8b72f Merge branch 'bugfix/fix_key_revocation_v4.4' into 'release/v4.4'
fix(app_update): Fix reading secure boot digest from register

See merge request espressif/esp-idf!28830
2024-02-05 19:29:43 +08:00
Island
839719a287 Merge branch 'bugfix/fix_dtm_tx_count_v4.4' into 'release/v4.4'
Update bt lib for ESP32-C3 and ESP32-S3(30b57c45)(backport v4.4)

See merge request espressif/esp-idf!28874
2024-02-05 14:45:12 +08:00
Jiang Jiang Jian
8ef5dcee5d Merge branch 'feature/add_api_to_get_controller_status_on_esp32_v4.4' into 'release/v4.4'
feat(ble/controller): Add API to get BLE controller status on ESP32 (backport v4.4)

See merge request espressif/esp-idf!28877
2024-02-05 11:07:32 +08:00
Jiang Jiang Jian
5adad46929 Merge branch 'feat/support_get_bluedroid_status_v4.4' into 'release/v4.4'
Support get status of bluedroid host (backport v4.4)

See merge request espressif/esp-idf!28884
2024-02-05 11:06:12 +08:00
zhiweijian
d9a9c0cc9d Fixed xQueueSemaphoreTask assert when deinit host during scan 2024-02-04 19:15:52 +08:00
chenjianhua
30dbf89909 feat(bt/bluedroid): Support get status of bluedroid host 2024-02-04 17:02:27 +08:00
chenjianhua
4ddb8587d9 feat(bt/bluedroid): Make the max number of bond device to be configurable 2024-02-04 16:55:51 +08:00
zhiweijian
52f7624853 feat(ble/controller): Add API to get BLE controller status on ESP32 2024-02-04 15:13:55 +08:00
zhanghaipeng
6b57f04cc8 fix(ble/controller): Fixed tx count in direct test mode on ESP32-C3 and ESP32-S3
- Fixed tx count in direct test mode on ESP32-C3 and ESP32-S3
- fixed modem sleep enter failed sometimes
2024-02-04 14:26:33 +08:00
chenjianhua
875317f9eb fix(bt): Update bt lib for ESP32-C3 and ESP32-S3(91980c2)
- Fixed scheduling when modem sleep wakeup delayed
- Fixed IRQ FIFO overflow when enter critical
- Fixed clock sync timeout for modem sleep
- Fixed directed adv with RPA when privacy disabled
- Fixed instant passed for connection update and PHY update
2024-02-04 14:26:15 +08:00
Rahul Tank
b6c46fa270 fix(nimble): Added API to get current stack operation status (v4.4) 2024-02-03 09:04:15 +05:30
Rahul Tank
0456f9746a Merge branch 'bugfix/add_adv_itvl_range_check_v4.4' into 'release/v4.4'
fix(nimble): Add adv interval min/max range check (v4.4)

See merge request espressif/esp-idf!28854
2024-02-03 01:56:01 +08:00
Harshit Malpani
650c64a840
fix(app_update): Fix reading secure boot digest from register
While reading the key from the register, the register are read by
8 bit access which results in reading wrong data. Reading from the
peripheral should be 32 bit aligned. The commit updates the code
to read the secure boot key from the register using 32 bit access.

Closes https://github.com/espressif/esp-idf/issues/12851
2024-02-02 16:23:49 +05:30
morris
acfc9130c0 Merge branch 'bugfix/fix_adc_oneshot_do_not_spilt_clk_v4.4' into 'release/v4.4'
fix(adc): fix ADC oneshot mod don't divide clk (v4.4)

See merge request espressif/esp-idf!26705
2024-02-02 17:58:57 +08:00
Rahul Tank
8efc66495b fix(nimble): Add adv interval min/max range check (v4.4) 2024-02-02 11:40:33 +05:30
morris
2a6797d016 kconfig: support plain comment in the menu 2024-02-02 10:33:59 +08:00
Xiao Xufeng
87182c9c76 doc(spi_flash): hide unsupported optional features 2024-02-02 10:33:59 +08:00
Xiao Xufeng
7bfc2b0418 spi_flash: fixed issue that enabling HPM-DC by default may cause app unable to restart 2024-02-02 10:33:59 +08:00
Rahul Tank
2ded73b2f4 Merge branch 'bugfix/fix_sm_inject_io_return_val_v4.4' into 'release/v4.4'
fix(nimble): Added change to ensure that API execution returns success (v4.4)

See merge request espressif/esp-idf!28652
2024-02-01 14:39:53 +08:00
morris
23173d3d72 Merge branch 'bugfix/fix_wrong_dcache_0_size_issue_on_s2_v4.4' into 'release/v4.4'
fix(cache): fix wrong dcache size 0 configuration issue on s2 (v4.4)

See merge request espressif/esp-idf!28292
2024-02-01 13:02:54 +08:00
Darshan Dobariya
93ae438d59 fix(nimble): Added change to ensure that API execution returns success (v4.4) 2024-01-31 14:45:55 +05:30