Commit Graph

13227 Commits

Author SHA1 Message Date
KonstantinKondrashov
e920827199 esptool: Update esptool
Prevent burning XTS_AES and ECDSA keys into BLOCK9 (BLOCK_KEY5)
2023-04-20 14:16:21 +08:00
KonstantinKondrashov
e21b0cb6ed efuse: Prevent burning XTS_AES and ECDSA keys into BLOCK9 (BLOCK_KEY5)
eFuse module has a hardware bug.
It is related to ESP32-C3, C6, S3, H2 chips:
    - BLOCK9 (BLOCK_KEY5) can not be used by XTS_AES keys.
For H2 chips, the BLOCK9 (BLOCK_KEY5) can not be used by ECDSA keys.
S2 does not have such a hardware bug.
2023-04-20 14:16:21 +08:00
muhaidong
1c78db33ad esp_phy: add menuconfig of phy calibration mode and disable reduce PHY TX power when brownout reset 2023-04-18 20:06:01 +08:00
Otto Winter
381ac08f12 bugfix (esp_common): remove infinite recursion in FLAG_ATTR operator
Closes https://github.com/espressif/esp-idf/pull/7754

Signed-off-by: Jakob Hasse <jakob.hasse@espressif.com>
2023-04-17 18:37:15 +08:00
liuning
72253506e9 esp_wifi: allow connectionless ps with mesh, fix failed to sleep after scan; coex: fix esp32 wifi interrupted by ble act 2023-04-14 14:22:54 +08:00
wangmengyang
8f0766c56e bt: added coex adapter operation to get version of coexist module to ESP32 Bluetooth Controller 2023-04-12 18:02:54 +08:00
Jiang Jiang Jian
0972f2cf58 Merge branch 'bugfix/bt_diable_enbale_crash_v4.3' into 'release/v4.3'
bt:Fixed esp32 controller bug (v4.3)

See merge request espressif/esp-idf!23152
2023-04-12 16:44:52 +08:00
xiongweichao
665ae6a80d bt:Fixed esp32 controller bug
1. Fixed crash after controller disable and re-enable
2. Fixed the crash caused by processing the HCI_Read_Remote_Extented_Features command in the non-connected state
3. Fixed disconnection due to not handling lmp_unsniff_req in LC_WAIT_SNIFF_SUB_RSP state
4. Fixed crash caused by supervision timeout greater than sniff interval

Closes https://github.com/espressif/esp-idf/issues/11164
Closes https://github.com/espressif/esp-idf/issues/10835
2023-04-12 09:48:30 +08:00
harshal.patil
9e4055ef44 mbedtls: Update to release v2.28.3
- Release Notes: https://github.com/Mbed-TLS/mbedtls/releases/tag/v2.28.3
2023-04-11 09:26:32 +00:00
Jiang Jiang Jian
c65c587b1f Merge branch 'mesh/bugfix_fix_heap_corrupt_issue_v4.3' into 'release/v4.3'
esp_wifi: fix bugs in LR and mesh (backport v4.3)

See merge request espressif/esp-idf!23129
2023-04-11 12:02:11 +08:00
Jiang Jiang Jian
6a7c5598e0 Merge branch 'bugfix/delete_node_during_list_traverse_4.3' into 'release/v4.3'
bugfix: Fixed the crash of LoadProhibited caused by invalid operation on list node in handling hci_hardware_error event (v4.3)

See merge request espressif/esp-idf!23119
2023-04-11 11:37:20 +08:00
zhangyanjiao
179b316de8 wifi_mesh: update mesh doc 2023-04-10 16:50:54 +08:00
zhangyanjiao
996cdca72f esp_wifi:
1. wifi_mesh: fix the heap corrupt issue in MTXON task
2. Update tx rate when phymode change from LR to 11N
3. wifi_mesh: Fix several bugs on mesh network
2023-04-10 16:48:49 +08:00
Jin Cheng
df161ee5fb fixed the crash of LoadProhibited caused by taht
the nodes are deleted during the traversal of the linked list
2023-04-08 11:31:06 +08:00
Xiao Xufeng
32c558cf17 himem: Fixed incorrect out_ptr when calling esp_himem_map range_offset non-zero
Closes: https://github.com/espressif/esp-idf/issues/5639
2023-04-06 02:05:09 +08:00
Jiang Jiang Jian
0369fe88c3 Merge branch 'bugfix/sta_sa_query_process_v4.3' into 'release/v4.3'
esp_wifi: Improve station SA query procedure handling and other bugfixes (Backport v4.3)

See merge request espressif/esp-idf!22905
2023-04-03 17:37:33 +08:00
Jiang Jiang Jian
4675e38ce2 Merge branch 'bugfix/fix_sc_send_failure_and_exit_issue_v4.3' into 'release/v4.3'
smartconfig: fix the issue of sending failure and exit(Backport v4.3)

See merge request espressif/esp-idf!23024
2023-04-01 12:17:52 +08:00
Sarvesh Bodakhe
2cf98db9a8 esp_wifi: Improve station SA query procedure handling and other bugfixes
1. Disable SA query timers when station disconnect and other SA query related improvements
2. Send appropriate reason code in 4 way handshake failure
3. Send deauth while going from assoc state to init, if reason is assoc timeout
2023-03-31 17:46:03 +05:30
Jiang Jiang Jian
dd8f93ee95 Merge branch 'doc/update_doc_of_esp_bt_gap_set_cod_v4.3' into 'release/v4.3'
bt: Optimized the document for GAP API: esp_bt_gap_set_cod (v4.3)

See merge request espressif/esp-idf!22996
2023-03-31 18:06:05 +08:00
Jiang Jiang Jian
54bce0c948 Merge branch 'bugfix/fix_chm_of_ext_adv_params_v43' into 'release/v4.3'
Bluedroid: fix channel map of ext adv params check (backport v4.3)

See merge request espressif/esp-idf!22690
2023-03-31 18:05:57 +08:00
muhaidong
00d569a1b2 smartconfig: fix the issue of sending failure and exit 2023-03-31 17:28:08 +08:00
Jiang Jiang Jian
40ed293404 Merge branch 'bugfix/tx_desc_fragment_v4.3' into 'release/v4.3'
esp_wifi: fix potential issue when tx fragment pkt(v4.3)

See merge request espressif/esp-idf!22962
2023-03-31 14:11:07 +08:00
Jiang Jiang Jian
b1ececef12 Merge branch 'bugfix/fix_hw_ralunderrun_assert_v4.3' into 'release/v4.3'
Fixed BLE HW RAL_UNDERRUN asser and backport some bug fix 23-03-30 (back port v4.3)

See merge request espressif/esp-idf!23011
2023-03-31 14:03:11 +08:00
chenjianhua
e82ebbe772 Bluedroid: fix channel map of ext adv params check 2023-03-31 05:55:24 +00:00
Jiang Jiang Jian
9502bccfc4 Merge branch 'bugfix/improve_tx_robust_v4.3' into 'release/v4.3'
esp_wifi: fix c3 rate control issue to improve tx robust(v4.3)

See merge request espressif/esp-idf!23010
2023-03-31 13:52:29 +08:00
zwj
e1a1e70720 - Support ESP32C3 and ESP32S3 new BLE lib
- Disable controller 5.0 feature bits if host 5.0 feature is not enabled
- Fixed extend ADV parameters check for ADV_DIRECT_HI
- Fixed HW RAL_UNDERRUN assert
2023-03-30 22:00:02 +08:00
chenjianxing
54b61a77a2 esp_wifi: fix c3 rate control issue to improve tx robust 2023-03-30 21:52:06 +08:00
jgujarathi
cf3cf0470a wpa_supplicant : Add deinitialization of Enterprise config_methods.
Add deinitialization of config_methods as it prevents correct reinitialization
of sta in eap_peer_config_init() during reassoc.
2023-03-30 13:35:36 +00:00
jgujarathi
a09946e3c3 wpa_supplicant : Add support for unregistering wifi wpa3 callbacks.
Unregister wifi callbacks allows for disabling support for wpa3 functions when not required.
2023-03-30 13:35:36 +00:00
Jiang Jiang Jian
3ce1d93958 Merge branch 'test/add_spi_slave_freq_test_v4.3' into 'release/v4.3'
spi_slave: fix io re-config issue (v4.3)

See merge request espressif/esp-idf!22594
2023-03-30 21:34:25 +08:00
Jiang Jiang Jian
49e55d0962 Merge branch 'bufix/Backport_some_lwip_bugs_for_4.3_0330' into 'release/v4.3'
bugfix/Backport_some_lwip_bugs_for_4.3_0330

See merge request espressif/esp-idf!22997
2023-03-30 21:33:59 +08:00
Jiang Jiang Jian
f01a1f5b6b Merge branch 'bugfix/hfp_ag_cannot_init_conn_v4.3' into 'release/v4.3'
bt: Fixed the index out of bounds of hfp_ag BTC control block (v4.3)

See merge request espressif/esp-idf!22874
2023-03-30 21:33:33 +08:00
zwj
3ef7e529b4 If it is not esp32 chips, hide the configuration item: BT_BLE_RPA_SUPPORTED 2023-03-30 19:28:38 +08:00
zwj
5e39c2316d remove SOC_BLE_UPDATE_OWN_RPA 2023-03-30 19:07:15 +08:00
zhiweijian
fbdbb5af62 set BT_CTRL_BLE_MAX_ACT default value to 6 2023-03-30 19:00:41 +08:00
zhiweijian
449efd1871 Fixed ATT Ignore wrong response error 2023-03-30 19:00:19 +08:00
zhiweijian
29ddc66cc0 Fixed vulnerability attacks that could cause heap overflow in fragmented Blufi packet processing 2023-03-30 18:43:01 +08:00
Jin Cheng
879038d09f Fixed the index out of bounds of hfp_ag BTC control block 2023-03-30 07:42:45 +00:00
xueyunfei
558b2b7151 lwip: solve some routers do not forward multicast packet issue 2023-03-30 14:42:05 +08:00
xueyunfei
c4ea0feab8 tcp_in/ooseq: Fix incorrect segment trim when FIN moved
* Update submodule: git log --oneline a7abf28e02282b32479f4bbaf2d90f09d2a60f4c..6bb132e3797d5449a923804c75c57d458920f8ac

Detailed description of the changes:
  - tcp_in/ooseq: Fix incorrect segment trim when FIN moved (esp-lwip@6bb132e3)
  - api_msg: fix tcp_abort thread safety (esp-lwip@53a6e019)
2023-03-30 14:42:05 +08:00
xueyunfei
22bf59fd48 Fixed bug for dhcp server support CIDR
Closes https://github.com/espressif/esp-idf/issues/10024

Closes https://github.com/espressif/esp-idf/issues/10559
2023-03-30 14:41:55 +08:00
Jin Cheng
9c26fc689d Optimized the document for GAP API:
`esp_bt_gap_set_cod`
2023-03-30 14:21:28 +08:00
wuzhenghui
ad27bd8aa0 deep sleep: close rf to optimize sleep current 2023-03-30 03:15:45 +00:00
wuzhenghui
65cc93d7d0 Revert "deep sleep: optimize sleep current in wifi softap mode"
This reverts commit f684bd10f5.
2023-03-30 03:15:45 +00:00
xiongweichao
b201f9dac6 bt:Added a parameter to tell the user the result of the pass through command implementation 2023-03-29 10:57:59 +00:00
chenjianxing
a24ae24347 esp_wifi: fix potential issue when tx fragment pkt. 2023-03-29 11:03:34 +08:00
Ivan Grokhotkov
6d04316cbe versions: Update version to 4.3.5 2023-03-22 09:49:23 +01:00
KonstantinKondrashov
ff0a0951ef esp_psram: Use efuse_ll instead of efuse API
When the virt efuse mode is on and psram is on as well
then efuse buffer is not filled by efuses (it is filled by 0).
So the psram init func gets wrong pkg_ver = 0.

Closes https://github.com/espressif/esp-idf/issues/10925
Close IDFGH-9576
2023-03-08 01:47:46 +08:00
Zim Kalinowski
3cfdcdbdf9 Merge branch 'refactor/nvs_allocatable_objects_v4.3' into 'release/v4.3'
refactor(nvs): custom allocator for all objects allocated in NVS (v4.3)

See merge request espressif/esp-idf!21794
2023-03-07 19:19:09 +08:00
Michael (XIAO Xufeng)
6b323359ce Merge branch 'feature/apply_new_version_logic_v4.3' into 'release/v4.3'
all: Apply new version logic (major * 100 + minor) (v4.3)

See merge request espressif/esp-idf!22482
2023-03-07 11:25:42 +08:00
KonstantinKondrashov
05b8d8d698 bootloader: Do not check the max_chip_rev_full 2023-03-06 22:28:00 +08:00
Marius Vikhammer
05be2de500 Merge branch 'bugfix/fix-invalid-task-exit-critical_v4.3' into 'release/v4.3'
fixed invalid taskEXIT_CRITICAL

See merge request espressif/esp-idf!22614
2023-03-06 19:55:37 +08:00
morris
418d47a09b Merge branch 'bugfix/adc2_legacy_oneshot_clk_gating_issue_v4.3' into 'release/v4.3'
adc: fix legacy oneshot driver clock gating issue on c3 (v4.3)

See merge request espressif/esp-idf!22610
2023-03-06 18:37:18 +08:00
Jakob Hasse
1a3c6f0f19 refactor(nvs): custom allocator for all objects allocated in NVS 2023-03-06 18:26:18 +08:00
Zim Kalinowski
0a7159afad fixed invalid taskEXIT_CRITICAL 2023-03-06 05:00:30 +00:00
Armando
868c68bf89 adc: fix legacy oneshot driver clock gating issue on c3 2023-03-06 10:50:36 +08:00
KonstantinKondrashov
ab87a1012f version: Fix missed version checks 2023-03-04 04:48:24 +08:00
Xiao Xufeng
f368737a26 test: fixed test_build_system test failure due to Kconfig change 2023-03-04 04:48:24 +08:00
KonstantinKondrashov
017aa5acd6 kconfigs: Fix config issues raised by gen_kconfig_doc.py 2023-03-03 21:34:10 +08:00
Jakob Hasse
ffee70c883 refactor(esp_rom): miniz test only on FPGA now 2023-03-03 18:23:27 +08:00
wanlei
271c383210 spi_slave: fix io re-config issue 2023-03-03 17:36:04 +08:00
Jiang Jiang Jian
d8a21db37a Merge branch 'bugfix/twai_listen_only_errata_v4.3' into 'release/v4.3'
twai: Add errata workaround for listen only mode (v4.3)

See merge request espressif/esp-idf!22516
2023-03-03 14:03:26 +08:00
KonstantinKondrashov
57bd6979a4 esptool: Adds support major&minor chip versions + min&max chip revision options 2023-03-02 19:52:17 +08:00
KonstantinKondrashov
63a755e8b2 bootloader_support: Fix iram_loader_seg overflow for ESP32-S2 when -O0 2023-03-02 19:52:17 +08:00
KonstantinKondrashov
79659a0410 chip_version: Updates for Make build system 2023-03-02 19:52:17 +08:00
KonstantinKondrashov
e88f235326 all: Apply new version logic (major * 100 + minor) 2023-03-02 03:21:34 +00:00
Jiang Jiang Jian
2b04fa8059 Merge branch 'bugfix/fix_sta_auth_fail_but_softap_shows_it_connected_issue_v4.3' into 'release/v4.3'
esp_wifi: fix sta auth failed but softap shows it connected issue(Backport v4.3)

See merge request espressif/esp-idf!22512
2023-03-01 15:45:41 +08:00
muhaidong
f28a7853d3 esp_wifi: fix sta failed but softap shows it connected issue 2023-02-28 09:12:02 +00:00
chenjianhua
156f40c976 bluedroid: support ble privacy by controller 2023-02-28 09:11:40 +00:00
chenjianhua
8790931bab bluedroid: add params in GATT connect event 2023-02-28 09:11:40 +00:00
chenjianhua
25394b6ac4 update bt-lib for ESP32
fix ble disconnect due to channel map update instant passed
2023-02-28 09:11:40 +00:00
Guillaume Souchere
7e6f20218b heap: Fix call to substract_poison_overhead() in IRAM function
When release sdkconfig is set, substract_poison_overhead() is not inlined
and called from IRAM in multi_heap_get_allocated_size(). By wlways inlining
substract_poison_overhead(), we assure that this problem will not happen.
2023-02-27 06:57:36 +01:00
Jiang Jiang Jian
ba4b47d24e Merge branch 'bugfix/secure_boot_v2_part_size_check_make_build' into 'release/v4.3'
partition_table: update make build for new "--secure [v1/v2]" argument

See merge request espressif/esp-idf!22437
2023-02-26 15:52:11 +08:00
Jiang Jiang Jian
1f739d7185 Merge branch 'bugfix/blufi_notify_v4.3' into 'release/v4.3'
BluFi : Fixed hdr getting free twice (v4.3)

See merge request espressif/esp-idf!22450
2023-02-26 15:51:54 +08:00
Jiang Jiang Jian
690b971f99 Merge branch 'feature/tlsf-dynamic-control-size_v4.3' into 'release/v4.3'
heap: Update tlsf to use dynamic metadata size and lower RAM usage of heap component (backport v4.3)

See merge request espressif/esp-idf!21783
2023-02-26 15:51:45 +08:00
Jiang Jiang Jian
043958e39f Merge branch 'bugfix/fix_gpio_wakeup_related_issues_in_ssc_sleep_test_backport_v4.3' into 'release/v4.3'
sleep: fix gpio wakeup related issues(backport v4.3)

See merge request espressif/esp-idf!22334
2023-02-26 15:51:29 +08:00
Jiang Jiang Jian
6f5e6b3841 Merge branch 'feature/add_bootloader_sector_pad_option_v4.3' into 'release/v4.3'
esptool_py: Added a --pad-to-size flag to align the bootloader image (v4.3)

See merge request espressif/esp-idf!22328
2023-02-26 15:51:09 +08:00
Jiang Jiang Jian
24aa00d99d Merge branch 'fix/heap-get-allocated-size_v4.3' into 'release/v4.3'
heap: Fix erroneous value returned by heap_caps_get_allocated_size() when poisoning is enabled (backport v4.3)

See merge request espressif/esp-idf!22190
2023-02-26 15:50:54 +08:00
Jiang Jiang Jian
3a4755e547 Merge branch 'bugfix/build_err_with_ssr_enabled_v4.3' into 'release/v4.3'
bt: Fixed build errors when sniff subrating is enabled (v4.3)

See merge request espressif/esp-idf!22352
2023-02-26 15:50:11 +08:00
Shyamal Khachane
179fc63526 esp_wifi: Fix missing disconnected callback 2023-02-24 18:44:28 +05:30
Darian Leung
1f6d7fa334 twai: Add errata workaround for listen only mode
This commit adds a workaround for the TWAI listen only mode errata which is
present on the ESP32, ESP32-S2, ESP32-S3, and ESP32-C3. twai_get_status_info()
has also been updated to account for the fact that TEC/REC are frozen in
listen only mode.

Errata Description:

When the TWAI controller is put into listen only mode, it should not influence
the TWAI bus in any way (i.e., should never send a dominant bit). However,
on the targets listed above, the TWAI controller will send dominant bits in an
error frame (i.e., active error frame), even if the controller is set to listen
only mode.

Workaround:

We can force the TWAI controller into the error passive state on startup (by
setting the REC to >= 128). Since the TEC/REC are frozen in listen only mode,
the TWAI controller will remain error passive and only send recessive bits
(i.e., passive error frames), thus will not influence the TWAI bus.

Closes https://github.com/espressif/esp-idf/issues/9157
2023-02-24 20:40:33 +08:00
Guillaume Souchere
a82cf0b00c heap: Fix erroneous value returned by heap_caps_get_allocated_size() when poisoning is enabled
When light (or comprehensive) poisoning is enabled, the size requested by the user for allocation
is extended by a few bytes to store the canary header and footer. heap_caps_get_allocated_size() should
return the original size asked by the user (without the additional canary bytes).

test_malloc.c extended with a new test assuring that  heap_caps_get_allocated_size() returns the proper size
regardless of the degree of poisoning.
2023-02-22 10:45:00 +00:00
isha.pardikar@espressif.com
9c0ad412ed BluFi : Fixed hdr getting free twice
Closes IDFGH-9378
2023-02-21 11:47:39 +05:30
Mahavir Jain
62e58ba624
partition_table: fix make build for new "--secure [v1/v2]" argument 2023-02-20 17:05:35 +05:30
Guillaume Souchere
73fca2c851 esp_system: fix placement of __stack_chk_fail from flash to RAM
When stack check is enabled, certain functions (sometimes placed in RAM)
are being decorated with stack guards and a call to __stask_chk_fail() in
case ofr stack corruption. For this reason, __stack_chk_fail() must be
placed in RAM too.

Add stack check config in heap tests on all targets to find eventual flash to RAM
calls due to stack checks when running callgraph_check.py
2023-02-16 08:48:00 +00:00
Guillaume Souchere
dbc4572814 heap: fix linker issues and remove spi flash dependencies 2023-02-16 08:48:00 +00:00
Guillaume Souchere
9b51759e8f feat: remove tlsf_fls and tlsf_ffs from linker as they are inlined. 2023-02-16 08:48:00 +00:00
Guillaume Souchere
f5e3585a9c tools: update list of references to not include symbold used by __assert_func calls
On xtensa architecture, the call to __assert_func uses a reference to __func__ that can
sometimes be placed in flash. Since the __asert_func can be called from functions in IRAM
the check_callgraph script can report an error when checking for invalid calls from IRAM
to flash sections. However, the __asert_func prevents this scenario at runtime so the
check_callgraph script reports a 'flas positive' situation. For this reasson, all references
to __func__$x found prior to a call to __assert_func are droped in the parsing of the rtl files.
2023-02-16 08:48:00 +00:00
Guillaume Souchere
598e77e287 heap: add check for usage of flash content from iram
this commits:
- adds build-time test to check that no call to flash regions are done from IRAM functions

- resolves problems related to IRAM function using content in flash memory

- update heap_caps_alloc_failed to use a default function name in DRAM
  when necessary instead of creating a function name variable in DRAM for
  each call of heap_caps_alloc_failed. This allows to save some extra bytes
  in RAM.
2023-02-16 08:48:00 +00:00
Guillaume Souchere
5f735a22ec heap: add documentation about the function placement in IRAM and its usage in ISR
This commits adds a internal.md file in the heap directory to clarify the idea behind
which functions is placed in IRAM or in flash.

A section in mem_alloc.rst documentation is added to specify which functions from the
heap component API can be used in interrupt handlers.
2023-02-16 08:48:00 +00:00
Guillaume Souchere
8700bdc156 heap: add selective placement of function in IRAM
This commit aims to place in the IRAM section only the functions that
are relevent for performance instead of placing the entire content of
multi_heap.c, mullti_heap_poisoning.c and tlsf.c in the IRAM.
2023-02-16 08:48:00 +00:00
Guillaume Souchere
7ce0620d32 heap: Update host tests after incorporation of the new TLSF implementation 2023-02-16 08:48:00 +00:00
Guillaume Souchere
48b0000e22 heap: update the calculation of fl index max and use bitfield in control_t
The calculation of fl index max is changed to always be the smallest
number that includes the size of the registered memory.

The control_construct() function now checks for minimum size as the control structure
parameters are calculated.

There is no longer a minimum configuration for fl index max so the tlsf_config
enum is striped down to remove unecessary compile time values.

the tlsf_size() function will fail if no tlsf pointer is passed as parameter since there
is no way to calculate a default tlsf size anymore.

bitfields are now used in control_t when possible which reduces the size of the structure
from 56 bytes to 36 bytes.
2023-02-16 08:48:00 +00:00
Guillaume Souchere
9f6b549dea Revert "tlsf control's structure should remain opaque"
This reverts commit 7010314c4a.
2023-02-16 08:48:00 +00:00
Philippe
6a3f3e9421 add host test with multiple heap size 2023-02-16 08:48:00 +00:00
Philippe
30bd908f97 clarify parameter usage in tslf_create 2023-02-16 08:48:00 +00:00
Philippe
a7b9e7a8bd tlsf control's structure should remain opaque 2023-02-16 08:48:00 +00:00
Philippe
e45d350b97 dynamic control block per heap 2023-02-16 08:48:00 +00:00
harshal.patil
4e77c32afc esptool_py: Added a sector-pad option for bootloader image
When SECURE BOOT V2 is enabled and CONFIG_SECURE_BOOT_SIGNED_BINARIES
is not set, sector-pad the bootloader image, which is required for an
external PKCS#11 interface to generate a signature.

esptool_py: Update submodule to release/v3 (4bc311767b7c6df41def6f95a50f87b1c9406cbd)
2023-02-15 16:10:31 +05:30
jingli
805db259b7 sleep: fix gpio wakeup not working properly in some cases
Before this fix, when we call esp_pm_configure after gpio_wakeup_enable,
the configuration of GPIO in sleep state in gpio_wakeup_enable will be
overwritten by esp_pm_configure.
2023-02-13 19:54:17 +08:00
jingli
f556ac1b92 soc_caps: remove SOC_GPIO_SUPPORT_SLP_SWITCH
all esp chips support this feature
2023-02-13 19:54:11 +08:00
Jin Cheng
7fc5d19730 Fixed build errors when sniff subrating is enabled. 2023-02-13 17:28:15 +08:00
Michael (XIAO Xufeng)
3e269ffc0d esp32s3: fixed bug chip v0.0 detected as vX.Y
A typical value is 2.8.

Previous commit 32ef2b321a doesn't fix the issue cleanly. The MSB of wafer_minor also has this problem.
2023-02-11 08:06:49 +00:00
Michael (XIAO Xufeng)
611339564d esp32s3: fixed bug chip v0.0 detected as vX.0
A typical value is 2.0.
2023-02-11 08:06:49 +00:00
KonstantinKondrashov
3dcdcc08eb efuse: Adds major and minor versions and others 2023-02-11 08:06:49 +00:00
Jiang Jiang Jian
ab6735155a Merge branch 'bugfix/newlib_tz_env_mutex_v4.3' into 'release/v4.3'
newlib: Use correct recursive mutex for env and regular mutex for tz (v4.3)

See merge request espressif/esp-idf!22295
2023-02-11 12:32:55 +08:00
Jiang Jiang Jian
9ee1cda5e3 Merge branch 'bugfix/fatfs_mtime_dst_v4.3' into 'release/v4.3'
fatfs: fix incorrect mtime returned for files created during DST (v4.3)

See merge request espressif/esp-idf!18459
2023-02-11 09:01:31 +08:00
Jiang Jiang Jian
97454c017f Merge branch 'bugfix/fix_some_wifi_bugs_230209_v4.3' into 'release/v4.3'
esp_wifi: fix some wifi bugs(Backport v4.3)

See merge request espressif/esp-idf!22290
2023-02-11 03:10:08 +08:00
Jiang Jiang Jian
3250b88828 Merge branch 'optimization/lwip_dhcp_coarse_timer_4.3' into 'release/v4.3'
lwip:optimization dhcp coarse timer for 4.3

See merge request espressif/esp-idf!22287
2023-02-11 02:31:30 +08:00
Jiang Jiang Jian
3dc1ab532e Merge branch 'bugfix/secure_boot_v2_part_size_check_v4.3' into 'release/v4.3'
gen_esp32part: allow secure boot v2 based app partition size 4K aligned (v4.3)

See merge request espressif/esp-idf!22288
2023-02-10 19:24:46 +08:00
Jiang Jiang Jian
3d366e1959 Merge branch 'bugfix/rtc_8md256_deepsleep_time_esp32_v4.3' into 'release/v4.3'
pm: Fixed sleep time inaccurate bug when select 8MD256 as rtc slow clock on ESP32 (v4.3)

See merge request espressif/esp-idf!21823
2023-02-10 19:12:25 +08:00
cje
d8fc054115 sleep: fix sleep time inaccurate bug when select 8MD256 as rtc slow clock on ESP32
Related to: https://github.com/espressif/esp-idf/issues/6687
2023-02-10 01:36:40 +08:00
Ivan Grokhotkov
d7db6c3148 fatfs: fix incorrect mtime returned for files created during DST
mktime function uses tm_isdst member as an indicator whether the time
stamp is expected to be in daylight saving time (1) or not (0).
FAT filesystem uses local time as mtime, so no information about DST
is available from the filesystem.

According to mktime documentation, tm_isdst can be set to -1, in which
case the C library will try to determine if DST was or wasn't in
effect at that time, and will set UTC time accordingly.

Note that the conversion from UTC to local time and then back to UTC
(time_t -> localtime_r -> FAT timestamp -> mktime -> time_t) does not
always recover the same UTC time. In particular, the local time in the
hour before DST comes into effect can be interpreted as "before DST"
or "after DST", which would correspond to different UTC values. In
this case which option the C library chooses is undefined.

Closes https://github.com/espressif/esp-idf/issues/9039
Originally reported in https://github.com/espressif/arduino-esp32/issues/6786
2023-02-09 11:28:29 +00:00
xueyunfei
b5e8c68b59 lwip:optimization dhcp coarse timer 2023-02-09 19:28:28 +08:00
Steve Jothen
98c2470040 Use correct recursive mutex for env and regular mutex for tz 2023-02-09 16:04:47 +08:00
muhaidong
997af8de8a docs: update ftm docs 2023-02-09 15:07:37 +08:00
muhaidong
36caf700c7 esp_wifi: fix some wifi bugs
1. fix ftm timer macro issue
2. send null data when state change from association to run
3. bugfix for optimize abnormal beacon log
4. bugfix RSNXE related changes
5. send ftm frames immediately
6. fix ftm procedure with peer failed status 4 issue
2023-02-09 15:01:49 +08:00
Mahavir Jain
726c7cd45c
partition_table: add tests for checking secure boot part size 2023-02-09 12:11:47 +05:30
Mahavir Jain
08ce6b92aa
gen_esp32part: allow secure boot v2 based app partition size 4K aligned
For Secure Boot v2 case, unsigned image is first padded to next 64K
aligned boundary and then a signature block of 4K gets appended. Thus
an app partition whose size is 4K aligned should be allowed here.

For Secure Boot v1 case, app partition size must be 64K aligned as the
signature block lies at the very end of 64K boundary.

Relevant:
57b601ab7f
2023-02-09 12:08:59 +05:30
Armando
984ee9dd38 adc: no longer support adc2 oneshot mode on esp32c3
Due to HW limitation, we don't support this anymore. On c3, ADC2 under oneshot mode is not stable.

However, you can enable CONFIG_ADC_ONESHOT_FORCE_USE_ADC2_ON_C3 to force use
ADC2.

Refer to errata to know more details:
https://www.espressif.com/sites/default/files/documentation/esp32-c3_errata_en.pdf
2023-02-08 09:04:28 +00:00
Armando
9b4986dd2c adc: no longer support adc2 continuous mode on esp32c3
Due to HW limitation, we don't support this anymore. On c3, ADC2 under continuous  mode is not stable.

However, you can enable CONFIG_ADC_CONTINUOUS_FORCE_USE_ADC2_ON_C3_S3 to force use
ADC2.

Refer to errata to know more details:
https://www.espressif.com/sites/default/files/documentation/esp32-c3_errata_en.pdf
2023-02-08 09:04:28 +00:00
Jiang Jiang Jian
30ee33c62e Merge branch 'bugfix/wps_start_state_issue_v4.3' into 'release/v4.3'
esp_wifi: Add check for wps start state (v4.3)

See merge request espressif/esp-idf!22029
2023-02-06 17:22:09 +08:00
Jiang Jiang Jian
419d6209a8 Merge branch 'bugfix/coex_enable_disable_not_in_pairs_v4.3' into 'release/v4.3'
bluetooth: fix that functions "coex_enable" and "coex_disable" are not used in pairs(backport v4.3)

See merge request espressif/esp-idf!22096
2023-02-04 01:53:35 +08:00
Sumeet Singh
feb32ec9f4 NimBLE: Fix incomplete clearing of peer_dev_rec 2023-02-03 03:09:24 +00:00
wangmengyang
35ba1547e5 bluetooth: fix that functions "coex_enable" and "coex_disable" are not used in pairs on ESP32-C3 2023-02-03 03:08:42 +00:00
Shreyas Sheth
2cc790a69b esp_wifi: Add check for wps start state 2023-02-03 03:08:17 +00:00
harshal.patil
f138411fd7 mbedtls/port: added stream_block parameter sanity check 2023-01-25 15:40:45 +05:30
harshal.patil
119ac05b5e mbedtls: fix esp_aes_crypt_ctr writing to null stream block 2023-01-25 15:40:45 +05:30
harshal.patil
342671a943 mbedtls: added SOC_AES_SUPPORT_AES_192 check in esp_aes_gcm_setkey() 2023-01-25 15:40:45 +05:30
Shreyas Sheth
b44da528db esp_wifi:Add wifi station config for enabling transition_disbale feature 2023-01-16 00:59:04 +05:30
Jiang Jiang Jian
7d5a228f15 Merge branch 'Bugfix/softap_excedes_the_range_of_subnet_4.3' into 'release/v4.3'
dhcp server:bugfix softap excedes the range of subnet

See merge request espressif/esp-idf!21995
2023-01-12 10:53:38 +08:00
chenjianxing
b9f31eaa66 esp_wifi: fix multicast pkts drop issue for some AP when DTIM period > 1 2023-01-11 11:04:18 +08:00
xueyunfei
cab17c713d dhcp server:bugfix softap excedes the range of subnet 2023-01-11 09:53:48 +08:00
Jiang Jiang Jian
28f66e58ee Merge branch 'bugfix/remove_sha384_hash_for_bigger_certs_v4.3' into 'release/v4.3'
esp_wifi: remove sha384 hash for cert size > 2k (v4.3)

See merge request espressif/esp-idf!21965
2023-01-10 22:42:21 +08:00
Jiang Jiang Jian
80dd246b14 Merge branch 'bugfix/sae_auth_and_pmk_issues_v4.3' into 'release/v4.3'
Fix SAE open auth and PMK issues (Backport v4.3)

See merge request espressif/esp-idf!21920
2023-01-10 19:03:10 +08:00
Kapil Gupta
21310654c7 Removed sha384 hash for certs > 2k 2023-01-09 15:58:23 +05:30
Shyamal Khachane
18052cc0fc wpa_supplicant: Set PMK from PMKSA incase of caching 2023-01-09 09:58:54 +05:30
Shyamal Khachane
ce6bcb3868 esp_wifi: Fix open auth issue after commit message exchange 2023-01-09 09:58:54 +05:30
Shreyas Sheth
c78324e407 wpa_supplicant: set cipher key_len for AES 128 CMAC 2023-01-06 14:59:03 +05:30
Jiang Jiang Jian
aa8a00c4f0 Merge branch 'fix/long_assoc_comeback_time_v4.3' into 'release/v4.3'
esp_wifi: reject AP when assoc comeback time given is greater than 5 seconds (Backport v4.3)

See merge request espressif/esp-idf!21837
2023-01-06 12:01:51 +08:00
Jin Cheng
9e501aad7f Fixed crash caused by accessing nullptr in btm_acl_disconnected 2023-01-04 11:44:50 +08:00
Sarvesh Bodakhe
b85e0c0daa esp_wifi: Update wifi libs
Update wifi libs with below changes -
1. reject AP when assoc comeback time given is greater than 5 seconds
2022-12-29 15:39:49 +05:30
Jiang Jiang Jian
c3d47417fe Merge branch 'bugfix/fix_c3_ble_temperature_performance_v4.3' into 'release/v4.3'
Fixed bluetooth disconnection caused by HW temperature rise or fall on ESP32C3(backport v4.3)

See merge request espressif/esp-idf!21746
2022-12-29 00:38:14 +08:00
Aditya Patwardhan
58111664f8 Merge branch 'bugfix/esp_tls_timeout_v4.3' into 'release/v4.3'
esp_tls: Fix issue when timeout is not explicitly given in esp_tls_cfg_t (v4.3)

See merge request espressif/esp-idf!21745
2022-12-28 15:05:13 +08:00
zwj
1f05925676 update phy and bb lib for temperature performance 2022-12-27 20:57:04 +08:00
Shyamal Khachane
aa78c85a05 wpa_supplicant: Clear current pmksa before generating RSN IE
Also update wifi libs with below changes -
  - Fix reason codes for Invalid PMKID
  - Fix handling of Assoc Resp status codes for Station
2022-12-23 16:56:20 +05:30
gauri patankar
c1075e32e0 esp_wifi:Update wifi libs
1. Avoid ftm initiator mode on softap
2. Fix home channel issue in ftm for apsta mode
3. Fix int overflow for T1-T4 counter variable
2022-12-22 15:52:47 +05:30
Laukik Hase
dbedcc264d
esp_tls: Fix issue when timeout is not explicitly given in esp_tls_cfg_t
- If internet connectivity weakened or disappeared suddenly while we were
  in the TLS handshake stage, the app got stuck at that point indefinitely.
- This was because when timeout was not explicitly specified in esp_tls_cfg_t,
  the default timeout was set at the wrong place. This causes the sockets to be
  setup with zero timeout, hence the indefinite wait.
2022-12-21 14:59:58 +05:30
Jiang Jiang Jian
8cd8ec019c Merge branch 'bugfix/fix_ble_some_bugs_20221219_v4.3' into 'release/v4.3'
backport some BLE bugs 20221219 (backport v4.3)

See merge request espressif/esp-idf!21716
2022-12-21 15:02:35 +08:00
Jiang Jiang Jian
0cf1971b3b Merge branch 'bugfix/fix_some_ble_bugs_by_cjh_v4.3' into 'release/v4.3'
Fixed some BLE bugs (backport v4.3)

See merge request espressif/esp-idf!21692
2022-12-21 11:27:50 +08:00