Commit Graph

32377 Commits

Author SHA1 Message Date
Mahavir Jain
01631ffcb4
https_mbedtls: update example to support TLS 1.3 connection
- make server verification mandatory (previously it was optional)
- add PSA crypto init API and handling for session ticket event
- coding style fixes
2024-05-02 16:55:20 +05:30
Mahavir Jain
bc82323e3f
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:13 +05:30
Mahavir Jain
499b579986
esp_tls: add initial support for TLS 1.3 connection 2024-05-02 16:53:37 +05:30
Karl Palsson
79c0c6609b 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:09:01 +08:00
Nachiket Kukade
9a91fba9f2 feat(esp_wifi): Update FTM PHY Compensation with calibration 2024-04-30 12:11:29 +08:00
wuzhenghui
6e1659c233
fix(esp_system): increase 26Mhz esp32c2 slow clock calibration timeout watchdog threshold 2024-04-30 11:47:18 +08:00
Jiang Jiang Jian
d06c758489 Merge branch 'bugfix/fix_scan_get_ap_number_issue_v5.1' into 'release/v5.1'
fix(wifi): fixed scan get ap number issue(Backport v5.1)

See merge request espressif/esp-idf!30569
2024-04-30 11:42:46 +08:00
muhaidong
26a2f687e7 fix(wifi): fixed scan get ap number issue 2024-04-30 10:53:28 +08:00
Radim Karniš
26d6e7563d docs(idf_py): Describe the option to configure esptool.py with --extra-args 2024-04-29 15:20:27 +02:00
Jiang Jiang Jian
24dc97b296 Merge branch 'fix/fix_some_esp32c6_twt_bugs_v5.1' into 'release/v5.1'
fix(wifi): fix some esp32c6 wifi bugs (Backport v5.1)

See merge request espressif/esp-idf!30412
2024-04-29 15:02:00 +08:00
zwx
8f602988d9 feat(openthread): move iperf dependency into cli extension 2024-04-28 16:45:48 +08:00
Xu Si Yu
ad0de2103b feat(openthread): support openthread ephemeral key 2024-04-28 16:32:28 +08:00
xuxiao
fdbdf6036f fix(wifi): fix some esp32c6 wifi bugs (Backport v5.1) 2024-04-28 16:24:49 +08:00
Dávid Fehér
9103290f57 fix(openthread): Fix openthread mtd joiner config
* Fix openthread-core-esp32x-mtd-config.h: OPENTHREAD_CONFIG_JOINER_ENABLE macro value

* On ESP32 MTD devices Joiner role functionality was not working even if 'Joiner enable' was checked in SDK config because 0 was defined in OPENTHREAD_CONFIG_JOINER_ENABLE macro. Value modified to 1 to resolve the issue. Tested and working on ESP32 H2 MTD device.

* Closes: https://github.com/espressif/esp-idf/pull/13473
2024-04-28 16:21:48 +08:00
Ondrej Kosta
db57aa3ae7 fix(esp_eth): made access to PHY registers for DM9051 more robust 2024-04-25 20:19:07 +08:00
Song Ruo Jing
a664c71fd7 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:21:37 +08:00
Song Ruo Jing
c57bfa3737 fix(gpio_etm): allow one GPIO binds to multiple ETM tasks 2024-04-24 17:10:03 +08:00
Song Ruo Jing
204de70570 fix(gpio): add workaround to ensure correct IO drive strength for C3 and S3 2024-04-24 16:59:42 +08:00
Song Ruo Jing
b00844ca57 fix(uart): correct C2 UART_BITRATE_MAX value 2024-04-24 16:19:51 +08:00
Jin Cheng
c38a3544ca 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:15 +08:00
Frantisek Hrbata
0de3c3b572 fix: exit gracefully when process started via asyncio is terminated
Currently when process is started through asyncio Runner and it is termited
e.g. with SIGINT(ctrl+c) a traceback is printed instead of gracefully
exit.

Exception ignored in: <function BaseSubprocessTransport.__del__ at 0x7fe980970900>
Traceback (most recent call last):
  File "/usr/lib64/python3.12/asyncio/base_subprocess.py", line 129, in __del__
    self.close()
  File "/usr/lib64/python3.12/asyncio/base_subprocess.py", line 107, in close
    proto.pipe.close()
  File "/usr/lib64/python3.12/asyncio/unix_events.py", line 568, in close
    self._close(None)
  File "/usr/lib64/python3.12/asyncio/unix_events.py", line 592, in _close
    self._loop.call_soon(self._call_connection_lost, exc)
  File "/usr/lib64/python3.12/asyncio/base_events.py", line 793, in call_soon
    self._check_closed()
  File "/usr/lib64/python3.12/asyncio/base_events.py", line 540, in _check_closed
    raise RuntimeError('Event loop is closed')
RuntimeError: Event loop is closed

This is caused because asyncio Runner context in asyncio.run is closing the event
loop and if exception is unhandled in coroutine(run_command) the transport is not
closed before the even loop is closed and we get RuntimeError: Event loop is closed
in the transport __del__ function because it's trying to use the closed
even loop.

Let's catch asyncio.CancelledError in case the process we are trying to
read from is terminated, print message, let the asyncio finish and exit
gracefully.

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

Signed-off-by: Frantisek Hrbata <frantisek.hrbata@espressif.com>
2024-04-22 11:51:32 +02:00
Jiang Jiang Jian
2fd087b246 Merge branch 'fix/ieee802154_include_header_issue_v5.1' into 'release/v5.1'
Fix/ieee802154 include header issue (backport v5.1)

See merge request espressif/esp-idf!30331
2024-04-22 15:40:14 +08:00
Xu Si Yu
00e2c89149 feat(openthread): add max csmabackoffs for transmission 2024-04-22 10:31:18 +08:00
Xu Si Yu
1e5858b57a fix(vfs): add eventfd_select_block test case 2024-04-22 10:31:13 +08:00
Guillaume Souchere
c2aad3d28a fix(linenoise): Skip 0x00 to 0x1F character in dump mode
Skipping through the non printable character assures that
in dumb mode, any special keys will not lead to the cursor
movement.
2024-04-19 07:49:25 +02:00
Guillaume Souchere
3766ebbd70 fix(console): bug where backspace erases the prompt in dumb mode 2024-04-19 07:46:32 +02:00
cjin
b2cc9800d0 bugfix(ble): workaround to avoid ble rtc not work when power up 2024-04-19 08:44:43 +08:00
xiaqilin
f0d0463a93 fix(ieee802154): fix ieee802154 next operation acquire lock in interrupt 2024-04-18 11:34:25 +08:00
xiaqilin
4528d2299d fix(ieee802154): fix ieee802154 include header file issue and unused value issue 2024-04-18 11:33:51 +08:00
Jiang Jiang Jian
c686e23038 Merge branch 'bugfix/fix_lmac_end_frame_exchange_sequence_assert_issue_v5.1' into 'release/v5.1'
fix(wifi): fixed lmacEndFrameExchangeSequence assert issue(Backport v5.1)

See merge request espressif/esp-idf!30316
2024-04-18 11:29:08 +08:00
Jiang Jiang Jian
2622be4328 Merge branch 'bugfix/fixed_coex_asset_on_esp32c2_v5.1' into 'release/v5.1'
Bugfix/fixed coex asset on esp32c2 v5.1

See merge request espressif/esp-idf!30301
2024-04-18 11:28:45 +08:00
zhanghaipeng
151976a2c2 fix(ble/bluedroid): Fixed set BLE appearance value 2024-04-17 20:40:44 +08:00
muhaidong
c58e1e2ec5 fix(wifi): fixed lmacEndFrameExchangeSequence assert issue 2024-04-17 19:36:03 +08:00
zhangyanjiao
9c79a2333d docs(wifi): update the docmentation for sniffer API
Closes https://github.com/espressif/esp-idf/issues/10740
2024-04-17 16:18:16 +08:00
zhangyanjiao
6f2f5e8bb7 docs(wifi): change the magic varible from int to uint32_t on the receiving side
Closes https://github.com/espressif/esp-idf/issues/10912
2024-04-17 16:18:08 +08:00
zwl
f22ac0ff82 ble: fixed an occasional assertion issue in coexistence scenarios on ESP32C2 2024-04-17 14:55:29 +08:00
zwl
e4fe67f7c2 ble: fixed the bt cmakelist error when use nimble host only 2024-04-17 14:54:54 +08:00
harshal.patil
fb854f0d51
ci(otatool): fix test failure caused due to closing connection incorrectly 2024-04-17 10:16:28 +05:30
Kapil Gupta
a4cda66e30 feat(esp_wifi): Provide API to disable PMK caching 2024-04-17 09:40:37 +05:30
Xiao Xufeng
9b142a9f72 doc(flash): fix auto suspend enabled by default issue 2024-04-16 23:02:42 +08:00
Mahavir Jain
c432c692fa Merge branch 'bugfix/howsmyssl_cert_update_v5.1' into 'release/v5.1'
fix(examples): update root certificate for howsmyssl endpoint (v5.1)

See merge request espressif/esp-idf!30204
2024-04-16 10:58:26 +08:00
Xu Si Yu
4476ff475e fix(openthread): increase factory app size in ot_br partition table 2024-04-15 20:54:26 +08:00
Lou Tianhao
ccc7edb965 docs(pm): add description for ext1 2024-04-15 20:33:07 +08:00
Lou Tianhao
b8c6179355 change(pm): add ext1 new api 2024-04-15 20:33:02 +08:00
zhiweijian
45f5714beb fix(ble/bluedroid): Fixed adv not restart due to disconnection reason 0x3e 2024-04-13 15:41:49 +08:00
zhiweijian
cc2e293d7c feat(bt/common): Add bluerooth hci layer data stream record 2024-04-13 15:41:15 +08:00
zhiweijian
070f6b4c9a feat(bt/bluedroid): add api to setnd vendor hci command 2024-04-13 12:57:55 +08:00
zhiweijian
eefcec929e fix(ble/bluedroid): fixed bluedroid host DTM API 2024-04-13 11:47:44 +08:00
zhiweijian
fc5bd26340 feat(ble/bluedroid): Add APIs for BLE direct test mode on bluedroid host 2024-04-13 11:45:04 +08:00
harshal.patil
b5347ef02b
feat(hal/ecdsa): Add HAL API for operation successful check 2024-04-12 11:14:10 +05:30