Commit Graph

28438 Commits

Author SHA1 Message Date
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
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
Jiang Jiang Jian
ad8111253a Merge branch 'change/add_convt_from_hci_state_to_esp_state_v5.0' into 'release/v5.0'
change(bt/bluedroid): Use BTC util to convert HCI status to ESP status (v5.0)

See merge request espressif/esp-idf!29923
2024-04-01 14:19:44 +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
Rahul Tank
46976bdcb7 Merge branch 'bugfix/handle_missing_free_v5.0' into 'release/v5.0'
fix(nimble): Handle missing free in application (v5.0)

See merge request espressif/esp-idf!29889
2024-03-29 21:02:43 +08: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
8be1213da6 example: add custom partition table for mesh manual networking 2024-03-28 20:43:16 +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
Rahul Tank
ceac0c1487 fix(nimble): Handle missing free in application 2024-03-28 08:51:43 +05:30
Jin Cheng
54d0912307 change(bt/bluedroid): Use BTC util to convert HCI status to ESP status 2024-03-28 11:05:22 +08:00
Island
a463942e14 Merge branch 'bugfix/fix_ble_power_save_ci_v5.0' into 'release/v5.0'
fix(ble): fix conn error of ble power save ci test(v5.0)

See merge request espressif/esp-idf!29824
2024-03-27 10:31:17 +08:00
Martin Vychodil
0b71bfa1c0 Merge branch 'bugfix/sdspi_acmd41_arg_v5.0' into 'release/v5.0'
fix(sdmmc): fixes for card initialization (ACMD41) (v5.0)

See merge request espressif/esp-idf!29378
2024-03-27 04:48:03 +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
cjin
4ad40cc9d5 fix(ble): fix ci ble powe save test addresss error 2024-03-25 15:59:38 +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
Rahul Tank
300d4bfef1 Merge branch 'bugfix/bonding_across_reboot_v5.0' into 'release/v5.0'
fix(nimble): Added support for deleting the oldest bonded device across reboot (v5.0)

See merge request espressif/esp-idf!29764
2024-03-21 13:38:18 +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
Roland Dobai
2c0efb84ed Merge branch 'refactor/idf_tools_version_v5.0' into 'release/v5.0'
refactor(idf_tools): IDF version is acquired only from version or header file (backport v5.0)

See merge request espressif/esp-idf!29744
2024-03-20 20:24: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
Jakub Kocka
c8f8185561 refactor(idf_tools): IDF version is acquired only from version or header file
Closes https://github.com/espressif/esp-idf/issues/13385
2024-03-20 07:59:58 +01:00
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
3b1ec55e7b Merge branch 'doc/update_espnow_doc_v5.0' into 'release/v5.0'
docs(wifi): Updated the LMK description in ESP-NOW (v5.0)

See merge request espressif/esp-idf!29671
2024-03-19 14:19:25 +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
Jiang Jiang Jian
75873b4a21 Merge branch 'bugfix/make_coexist_callback_safe_v5.0' into 'release/v5.0'
fix(bt/controller): Fixed some bugs in esp32 bt controller (v5.0)

See merge request espressif/esp-idf!29684
2024-03-19 14:18:13 +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
Roland Dobai
914d893c5c Merge branch 'fix/fix_curses_py312_v5.0' into 'release/v5.0'
Fix Access Violation Error on Windows with Python 3.12 (v5.0)

See merge request espressif/esp-idf!29511
2024-03-15 16:19:57 +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
zhangyanjiao
693ceaba3c docs(wifi): Updated the LMK description in ESP-NOW
Closes https://github.com/espressif/esp-idf/issues/12976
2024-03-15 15:14:11 +08:00