19247 Commits

Author SHA1 Message Date
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 04ac8e43dbaf37e42452fef034606ae3f04e644b.

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
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