23783 Commits

Author SHA1 Message Date
David Cermak
fe82abb59b feat(lwip): Add support for PPP Auth using mbedTLS (v5.2)
LWIP submodule update (v5.2): git log --oneline 3a3d1fb3..e8d05138
  - PPP/Auth: Add mbedtls includes if lwip uses it
    (espressif/esp-lwip@e8d05138)

Closes https://github.com/espressif/esp-idf/issues/13597
2024-08-23 11:03:35 +02:00
David Cermak
91f9f05d9b fix(esp_netif): Add unit test of getter/setter API for DNS servers 2024-08-23 10:51:13 +02:00
David Cermak
7931ac6f19 fix(esp_netif): Restore DNS servers per netif when setting it default(5.2)
Introducing config option `CONFIG_ESP_NETIF_SET_DNS_PER_DEFAULT_NETIF`
to overcome LWIP limitation of using global DNS server info.
This config option enables LWIP callbacks to collect per netif DNS
server info and then restores global DNS servers of whichever network
interface is selected as default.

LWIP submodule update v5.2: git log --oneline f1746813..3a3d1fb3
  - dns: Allow storing dnsserver per netif (espressif/esp-lwip@3a3d1fb3)
  - api_msg: Fix unused local variable if LWIP_NETCONN_SEM_PER_THREAD=1
    (espressif/esp-lwip@aa4f6e78)
  - lwip: fix gcc -fanalyzer warnings (espressif/esp-lwip@4297782b)
2024-08-23 10:49:32 +02:00
Abhik Roy
bde21acfb6 feat(lwip): Added multiple dns ip support (v5.2)
LWIP submodule update on v5.2: git log --oneline f7922143..f1746813
  - feat(lwip): Added multiple dns ip support (espressif/esp-lwip@f1746813)
  - api_msg: Fix crash to fail-safe error if cannot get semaphore (espressif/esp-lwip@a1bd9e44)
2024-08-23 10:43:58 +02:00
Jiang Jiang Jian
ae914df9d2 Merge branch 'bugfix/fix_clkn_lost_after_modem_sleep_v5.2' into 'release/v5.2'
Some checks failed
docker / docker (push) Has been cancelled
fix(bt/controller): Fixed bluetooth disconnect issue after modem sleep on ESP32 (v5.2)

See merge request espressif/esp-idf!33003
2024-08-23 16:07:37 +08:00
Jiang Jiang Jian
a996cb232c Merge branch 'feature/gcc-fanalyzer_v5.2' into 'release/v5.2'
Fix issues found by gnu static analyzer job (v5.2)

See merge request espressif/esp-idf!32983
2024-08-23 15:17:34 +08:00
Jiang Jiang Jian
f2f31efa26 Merge branch 'feature/print_panic_while_cache_fail_v5.2' into 'release/v5.2'
feat(esp_system): Print backtrace for both CPUs when cache error does not determine CPU (v5.2)

See merge request espressif/esp-idf!31131
2024-08-23 14:34:25 +08:00
Jiang Jiang Jian
2c8d533977 Merge branch 'bugfix/fix_mesh_ie_issue_from_leaf_to_root_v5.2' into 'release/v5.2'
fix(wifi/mesh): clear the rootless state in mesh ie when changing from leaf to root (v5.2)

See merge request espressif/esp-idf!32987
2024-08-23 13:50:10 +08:00
Jiang Jiang Jian
a54dfc3912 Merge branch 'contrib/github_pr_13578_v5.2' into 'release/v5.2'
Make FreeRTOS configUSE_TIMERS optional in KConfig (GitHub PR) (v5.2)

See merge request espressif/esp-idf!32808
2024-08-23 13:45:34 +08:00
Jiang Jiang Jian
6facff8091 Merge branch 'fix/mmu_multicore_app_bl_v5.2' into 'release/v5.2'
fix(MMU): fixed mmap deadlock when using multicore app with unicore bootloader (v5.2)

See merge request espressif/esp-idf!32897
2024-08-23 13:45:04 +08:00
Jiang Jiang Jian
4750755bc8 Merge branch 'contrib/github_pr_14314_v5.2' into 'release/v5.2'
perf(gcm): shrink Shoup table and tune GCM loop (GitHub PR) (v5.2)

See merge request espressif/esp-idf!32997
2024-08-23 13:44:22 +08:00
linruihao
151569ac25 fix(bt/controller): Fixed bluetooth disconnect issue after modem sleep on ESP32 2024-08-23 13:42:25 +08:00
Rahul Tank
ed429563ee Merge branch 'bugfix/blesmp_getlist_bond_fail_v5.2' into 'release/v5.2'
fix(nimble): Fixed blesmp getbondlist issue (v5.2)

See merge request espressif/esp-idf!32823
2024-08-23 12:42:07 +08:00
zhangyanjiao
845725a60f fix(wifi/mesh): clear the rootless state in mesh ie when changing from leaf to root
Closes https://github.com/espressif/esp-idf/issues/14063
2024-08-23 11:34:47 +08:00
Jiang Jiang Jian
303690e981 Merge branch 'bugfix/usleep_overflow_v5.2' into 'release/v5.2'
fix(newlib): fixed potential overflow in usleep (v5.2)

See merge request espressif/esp-idf!33002
2024-08-23 10:27:38 +08:00
shreeyash
121626ffb6 fix(nimble): Fixed blesmp getbondlist issue 2024-08-22 21:32:13 +05:30
Jiang Jiang Jian
149c0e24db Merge branch 'bugfix/fix_some_wifi_bugs_240821_v5.2' into 'release/v5.2'
fix(wifi): fix some wifi bugs 240821(Backport v5.2)

See merge request espressif/esp-idf!32994
2024-08-22 19:56:24 +08:00
Jiang Jiang Jian
2bb4804d08 Merge branch 'fix/netif_ppp_ip6_autoconfig_v5.2' into 'release/v5.2'
fix(esp_netif): Fix missing IPv6 autoconfig for PPP netifs (v5.2)

See merge request espressif/esp-idf!32178
2024-08-22 19:47:49 +08:00
Jiang Jiang Jian
bf3bd01f2c Merge branch 'backport/esp_netif_get_ip6addr_should_be_valid_v52' into 'release/v5.2'
fix(esp_netif): netif should return only valid addr(Backportv5.2)

See merge request espressif/esp-idf!32160
2024-08-22 19:45:22 +08:00
Jiang Jiang Jian
9eb139ac4b Merge branch 'bugfix/fix_some_ble_bugs_cjh_v5.2' into 'release/v5.2'
Fixed some BLE bugs 240812 (backport v5.2)

See merge request espressif/esp-idf!32793
2024-08-22 19:36:25 +08:00
Jiang Jiang Jian
468213359b Merge branch 'example/ping_invalid_ip6_fix_v5.2' into 'release/v5.2'
fix(example): Fixed updating recv addr for invalid packets (v5.2)

See merge request espressif/esp-idf!32990
2024-08-22 19:35:28 +08:00
Jiang Jiang Jian
cde3c50aac Merge branch 'lwip/static_ip6_public_v5.2' into 'release/v5.2'
feat(esp_netif): Added code to expose api to add and remove ipv6 address (v5.2)

See merge request espressif/esp-idf!32993
2024-08-22 19:34:55 +08:00
Island
6cbb83951d Merge branch 'bugfix/fix_bleqabr24_1152_v5.2' into 'release/v5.2'
Fixed BLE vendor HCI get controller status command on ESP32 (v5.2)

See merge request espressif/esp-idf!32966
2024-08-22 16:57:02 +08:00
Rahul Tank
e3db40bd8e Merge branch 'feat/ble_link_estab_event_v5.2' into 'release/v5.2'
feat(nimble): BLE_GAP_EVENT_LINK_ESTAB event to ensure link is established (v5.2)

See merge request espressif/esp-idf!32259
2024-08-22 15:16:20 +08:00
Marius Vikhammer
f6a6ef641c fix(newlib): fixed potential overflow in usleep
If trying to usleep for 0xFFFF FFFF us the calculation of delay ticks would overflow
resulting in the system not sleeping at all.

Closes https://github.com/espressif/esp-idf/issues/14390
2024-08-22 09:56:06 +08:00
David Čermák
3070e0fad8 Merge branch 'fix/websocket_first_packet_v5.2' into 'release/v5.2'
Some checks failed
docker / docker (push) Has been cancelled
fix(ws_transport): fix first fragment loosing during websocket connection (release-v5.2)

See merge request espressif/esp-idf!30432
2024-08-21 23:01:57 +08:00
zwx
997f3c15b2 fix(esp_netif): netif should return only valid addr 2024-08-21 22:59:26 +08:00
David Čermák
c0f9115ef7 Merge branch 'mqtt_update_v5.2' into 'release/v5.2'
change(mqtt): Updte esp_mqtt submodule (v5.2)

See merge request espressif/esp-idf!32939
2024-08-21 22:58:20 +08:00
Richard Allen
cda82f8ee8 change(mbedtls/port): optimize gcm_mult()
1) pre-shift GCM last4 to use 32-bit shift

On 32-bit architectures like Aarch32, RV32, Xtensa,
shifting a 64-bit variable by 32-bits is free,
since it changes the register representing half of the 64-bit var.
Pre-shift the last4 array to take advantage of this.

2) unroll first GCM iteration

The first loop of gcm_mult() is different from
the others. By unrolling it separately from the
others, the other iterations may take advantage
of the zero-overhead loop construct, in addition
to saving a conditional branch in the loop.
2024-08-21 18:26:08 +05:30
David Cermak
0fd8e6c7bd fix(esp_netif): Fix missing IPv6 autoconfig for PPP netifs
Closes https://github.com/espressif/esp-idf/issues/13713
2024-08-21 20:32:59 +08:00
muhaidong
a9fa740cf8 fix(wifi): fix some wifi bugs 240821
1. fixed association refused temporarily issue.
2. give some information when password length mismatch authmode threshold.
3. fix reset connection fail issue.
2024-08-21 19:32:40 +08:00
Abhik Roy
f30d488458 feat(esp_netif): Added preferred flag to esp_netif_add_ip6_address 2024-08-21 21:16:46 +10:00
Abhik Roy
8809589cf7 feat(esp_netif): Added code to expose api to add and remove ipv6 address 2024-08-21 21:16:46 +10:00
Abhik Roy
205772532b fix(example): Fixed updating recv addr for invalid packets for ping
Closes https://github.com/espressif/esp-idf/issues/14197
2024-08-21 20:38:09 +10:00
Island
b0fb1065a4 Merge branch 'fix/ble_mesh_gh_pr_13135_v5.2' into 'release/v5.2'
fix(ble_mesh): Fix OP_TIME_SET and OP_TIME_STATUS (v5.2)

See merge request espressif/esp-idf!32770
2024-08-21 16:54:55 +08:00
Island
6b36ec53e8 Merge branch 'bugfix/fixed_c2_blufi_issue_when_use_only_4.2_adv_v5.2' into 'release/v5.2'
fix(ble): fixed blufi issue on ESP32-C2 (v5.2)

See merge request espressif/esp-idf!32943
2024-08-21 15:17:57 +08:00
Suren Gabrielyan
c07bc80e90 fix(ws_transport): utility functions minor improvments 2024-08-21 15:17:17 +08:00
Richard Allen
c42cfe1818 fix(ws_transport): fixed server-key corruption
When first fragment is sent over HTTP during websocket
connection, defer buffering of fragment until after the
websocket server-key is validated.

This order is required because the first fragment buffering
overwrites the memory holding the server-key headers.

Fixes 2267d4b
Fixes https://github.com/espressif/esp-protocols/issues/396
PR https://github.com/espressif/esp-idf/pull/13724
2024-08-21 15:17:17 +08:00
Suren Gabrielyan
5d8bb1c72a fix(ws_transport): fix first fragment losting during websocket connection 2024-08-21 15:17:17 +08:00
Alexey Lapshin
3759f41b94 fix(usb): fix warnings found by GNU static analyzer 2024-08-21 14:05:31 +07:00
Alexey Lapshin
9760884e60 fix(wpa_supplicant): fix warnings found by GNU static analyzer 2024-08-21 14:03:48 +07:00
Alexey Lapshin
0b24bebf96 fix(vfs): fix warnings found by GNU static analyzer 2024-08-21 14:03:48 +07:00
Alexey Lapshin
d0929d3f0a fix(heap): fix warnings found by GNU static analyzer 2024-08-21 14:03:48 +07:00
Alexey Lapshin
acbd160cd0 fix(esp_hw_support): fix warnings found by GNU static analyzer 2024-08-21 14:02:55 +07:00
Alexey Lapshin
ceb5456108 fix(esp_driver_usb_serial_jtag): fix warnings found by GNU static analyzer 2024-08-21 14:02:55 +07:00
chenjianhua
0f1e5e4570 fix(bt): Update bt lib for ESP32(241c96c)
- Fixed BLE vendor HCI get controller status command
2024-08-20 19:31:07 +08:00
Jiang Jiang Jian
0579c688ea Merge branch 'fix/fix_wifi_bugs_07_29_v5.2' into 'release/v5.2'
fix(wifi): fix some wifi bugs and support btwt (v5.2)

See merge request espressif/esp-idf!32466
2024-08-20 19:13:01 +08:00
Rahul Tank
793f0b3b65 feat(nimble): BLE_GAP_EVENT_LINK_ESTAB event to ensure link established 2024-08-20 14:57:14 +05:30
Rahul Tank
79ceb9b9dc Merge branch 'feat/allow_connect_during_scan_v5.2' into 'release/v5.2'
feat(nimble): Add support to allow connection during scanning (v5.2)

See merge request espressif/esp-idf!32844
2024-08-20 17:11:46 +08:00
xuxiao
8971a3c724 fix(wifi): fix some wifi bugs and support btwt (v5.2) 2024-08-20 12:16:56 +08:00