Commit Graph

15762 Commits

Author SHA1 Message Date
Jiang Jiang Jian 129286d207 Merge branch 'bugfix/fix_some_wifi_bugs_230605_v4.2' into 'release/v4.2'
esp_wifi: fix some wifi bugs(Backport v4.2)

See merge request espressif/esp-idf!24051
2023-06-06 13:50:52 +08:00
muhaidong e3d9d5df0d esp_wifi: fix some wifi bugs
1. send null data when state change from association to run
2. fix sta auth failed but softAP shows it connected issue
3. mesh: layer2 node will scan all channels when root leave in fixed root network
2023-06-05 20:46:22 +08:00
Jiang Jiang Jian a9cac7605b Merge branch 'bufix/Backport_some_lwip_bugs_for_4.2_0417' into 'release/v4.2'
lwip: Add security fixes and other features and bufixes to v4.2

See merge request espressif/esp-idf!23238
2023-06-05 17:15:19 +08:00
xueyunfei 00096a3433 lwip: Add security fixes and other features and bufixes to v4.2
* Update submodule: git log --oneline 2195f7416fb3136831babf3e96c027a73075bd4f..6bb132e3797d5449a923804c75c57d458920f8ac

Detailed description of the changes:
  - tcp_in/ooseq: Fix incorrect segment trim when FIN moved (espressif/esp-lwip@6bb132e3)
  - api_msg: fix tcp_abort thread safety (2.1.2-esp) (espressif/esp-lwip@53a6e019)
  - lwip:optimization dhcp coarse timer (espressif/esp-lwip@a7abf28e)
  - napt: Fix ip_portmap_add() to keep only one port mapping (espressif/esp-lwip@abab9fef)
  - reduce the DHCP Request timeout (espressif/esp-lwip@6fa02bd3)
  - lwip timer:optimization dhcp fine timer (espressif/esp-lwip@79182163)
  - optimization lwip ip4 reassembly timer (espressif/esp-lwip@17f41c9f)
  - optimization lwip ip6 reassembly timer (espressif/esp-lwip@c943fc5a)
  - optimization lwip dns timer (espressif/esp-lwip@7f5ab42c)
  - napt: Fix clean compilation (espressif/esp-lwip@6132c975)
  - Lwip:add TCP Fin2 timeout configuration (espressif/esp-lwip@15b4400e)
  - napt: Fix IP forwarding when forward netif enable NAPT (espressif/esp-lwip@c950063f)
  - napt/stats: Move some napt counters to stats module (espressif/esp-lwip@475d658a)
  - ip_napt_maint: Fix timestamp overflow handling (espressif/esp-lwip@2e904508)
  - napt: Fixes and improvements (espressif/esp-lwip@fb1f3552)
  - test/napt: Add unit test for IP forward with PBUF_REF (espressif/esp-lwip@76303df2)
  - napt: Fix PBUF_REF type to clone the pbuf before forwarding (espressif/esp-lwip@39068263)
  - version: Update version numbers to match 2.1.2-esp (espressif/esp-lwip@2b922919)
  - pppos: fix in_tail null (espressif/esp-lwip@537c69d5)
  - PPP: Add test exhibiting empty packet null-deref (espressif/esp-lwip@202a07da)
  - pbuf: Add pbuf_copy_partial_pbuf library function (espressif/esp-lwip@1c9cd9c1)
  - Add #define for minimum IPv6 MTU length (espressif/esp-lwip@d2dc577b)
  - zepif: Copy possibly chained output pbuf properly (espressif/esp-lwip@64ab7f2a)
  - icmp6: Don't copy too much data (espressif/esp-lwip@4a64731b)
  - icmp6: Fix copying of chained pbuf in reply (espressif/esp-lwip@7c822ff4)
  - icmp6: keep to the RFC and send as much as possible with icmp6 error messages (espressif/esp-lwip@29100ab6)
  - dns: Add API to clear dns cache (espressif/esp-lwip@ee59f77d)
  - CI: Fixed adding gitlab key (espressif/esp-lwip@5a2bdba7)
  - test case: modify test case test_tcp_new_max_num_remove_FIN_WAIT_1 (espressif/esp-lwip@6b090f7d)
  - add function for deinit lwip timers (espressif/esp-lwip@2749568f)
  - dhcp: Fix build issue that set ESP_DHCP_DISABLE_VENDOR_CLASS_IDENTIFIER to true will build fail (espressif/esp-lwip@d827dbf7)
  - Document that sntp_setservername doesn't copy the string (espressif/esp-lwip@54acdb59)
  - Closes https://github.com/espressif/esp-idf/issues/6786
  - lwip/dhcp: add 60 option for vendor class identify (espressif/esp-lwip@ae7edc2a)
  - Closes https://github.com/espressif/esp-lwip/issues/32
  - dhcp: Restore dhcp_cb on restart after dhcp_release_and_stop() (espressif/esp-lwip@55ea9d9c)
  - Closes https://github.com/espressif/esp-idf/issues/7217
  - napt: Fix disbale IPv6 and enable NAPT will build error (espressif/esp-lwip@74cf7f9f)
  - napt: fix checksum of UDP (espressif/esp-lwip@bb63eed1)
  - sntp: Fix client receive KOD packet that make pool MEMP_SYS_TIMEOUT not be freed (espressif/esp-lwip@1c1642fe)
  - test case: add tcp state and reset test cases. (espressif/esp-lwip@67deb805)
2023-06-05 06:08:45 +00:00
Jiang Jiang Jian 92a03d6241 Merge branch 'bugfix/nvs_softap_pmk_v4.2' into 'release/v4.2'
esp_wifi: fix softap nvs <ssid,password,pmk> not matching issue(v4.2)

See merge request espressif/esp-idf!23818
2023-06-05 12:06:08 +08:00
Marius Vikhammer da80b63f3f Merge branch 'contrib/github_pr_11215_v4.2' into 'release/v4.2'
improve thread safety in esp_timer (GitHub PR) (v4.2)

See merge request espressif/esp-idf!23543
2023-05-29 10:19:41 +08:00
Jens Gutermuth 457b71f1a3 improve thread safety in esp_timer
Inadequate locking in the esp_timer component allowed corruption
of the s_timers linked list:

1. timer_armed(timer) returns false
2. another task arms the timer and adds it to s_timers
3. the list is locked
4. the timer is inserted into s_timers again

The last step results in a loop in the s_timers list, which causes
an infinite loop when iterated. This change always locks the
list before checking if the timer is already armed avoiding
the data race.
2023-05-18 15:41:53 +08:00
chenjianxing 54a4d20bd2 esp_wifi: fix softap nvs <ssid,password,pmk> not matching issue 2023-05-18 15:40:10 +08:00
Marius Vikhammer fe907a6c39 Merge branch 'bugfix/esp32s2_startup_garbled_output_v4.2' into 'release/v4.2'
esp_system: fix garbled UART output on startup on esp32s2 (v4.2)

See merge request espressif/esp-idf!18752
2023-05-18 13:05:57 +08:00
Jiang Jiang Jian 65331f6ce1 Merge branch 'bugfix/fix_some_ble_bug_v4.2' into 'release/v4.2'
Fixed some BLE bugs (backport v4.2)

See merge request espressif/esp-idf!23701
2023-05-18 10:52:37 +08:00
Ivan Grokhotkov dc07c9e110 esp_system: fix garbled UART output on startup on esp32s2
Closes https://github.com/espressif/esp-idf/issues/9168
2023-05-18 02:14:31 +00:00
Jiang Jiang Jian c28f5a5cd2 Merge branch 'bugfix/fix_esp32_bugs_230511_v4.2' into 'release/v4.2'
Fixed some esp32 bugs(backport v4.2)

See merge request espressif/esp-idf!23706
2023-05-17 17:08:44 +08:00
Zim Kalinowski af6dafe01e Merge branch 'bugfix/psram_newlib_time_rom_v4.2' into 'release/v4.2'
rom: fix newlib time ROM functions being regardless of CONFIG_SPIRAM_CACHE_WORKAROUND (v4.2)

See merge request espressif/esp-idf!23392
2023-05-15 18:46:22 +08:00
zhiweijian 20de428632 Fixed blufi doc error 2023-05-11 20:29:24 +08:00
zhiweijian b9d062ef16 Fixed BLE disconnection failure on ESP32 2023-05-11 20:26:39 +08:00
zwj 0b8b26ec49 Fixed disconnection due to consecutive CRC errors in first 6 intervals 2023-05-11 20:26:29 +08:00
zhiweijian f563a1e3cc Fixed battery profile wrong condition 2023-05-11 20:25:57 +08:00
chenjianhua 747daffc28 bluedroid: fix ble adv data construct for device name 2023-05-11 15:28:39 +08:00
chenjianhua dfe7cffd09 bluedroid: fix ble smp key distribution setting 2023-05-11 15:28:26 +08:00
chenjianhua cb658fefb3 bluedroid: report disconnect event after BLE link closed 2023-05-11 15:28:05 +08:00
Marius Vikhammer 6a3bd9e22b rom: fix newlib time ROM functions being regardless of CONFIG_SPIRAM_CACHE_WORKAROUND
On ESP32 ROM functions are not compatible with CONFIG_SPIRAM_CACHE_WORKAROUND.
This were handled correctly in cmake, but not in make.
2023-05-11 07:22:33 +00:00
Wang Meng Yang 3d0cfc8cc3 Merge branch 'bugfix/hf_cind_ind_index_v4.2' into 'release/v4.2'
bt: Fixed the inconsistency between the indicator event received by the HF application layer and the actually received indicator(v4.2)

See merge request espressif/esp-idf!23564
2023-05-09 19:54:52 +08:00
xiongweichao 1b459301d6 bt: Fixed the inconsistency between the indicator event received by the HF application layer and the actually received indicator.
Closes https://github.com/espressif/esp-idf/issues/6486
2023-05-04 14:24:42 +08:00
Jiang Jiang Jian 4a52b7845c Merge branch 'bugfix/bt_diable_enbale_crash_v4.2' into 'release/v4.2'
bt:Fixed esp32 controller bug (v4.2)

See merge request espressif/esp-idf!23176
2023-04-24 11:03:08 +08:00
Jiang Jiang Jian f97a8a2a2d Merge branch 'bugfix/fix_some_ble_bug_v4.2' into 'release/v4.2'
Fixed some BLE bugs (backport v4.2)

See merge request espressif/esp-idf!23305
2023-04-24 10:46:13 +08:00
zwj 45a3c35d65 Fixed duplicate scan refresh cycle is not accurate after restarting scan on ESP32 2023-04-23 12:21:20 +00:00
xiongweichao 873856fdf3 bt: added coex adapter operation to get version of coexist module to ESP32 Bluetooth Controller 2023-04-23 12:21:20 +00:00
xiongweichao 37aa555611 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-23 12:21:20 +00:00
chenjianhua 93360655cf bluedroid: report status after clearing the BLE white list 2023-04-21 16:01:09 +08:00
chenjianhua b242e0e602 bluedroid: fix GATTC cache address save 2023-04-21 15:58:11 +08:00
chenjianhua 1d7317b401 bluedroid: fix adv and scan state conflict 2023-04-21 15:57:58 +08:00
chenjianhua 564c4b644d bluedroid: support get bluetooth device name 2023-04-21 15:57:41 +08:00
Jiang Jiang Jian 527a23d63f Merge branch 'bugfix/fix_systimer_stall_issue_in_lightsleep_v4.2' into 'release/v4.2'
esp_wifi: fix failed to sleep after scan, coex: fix wifi connecting interrupted by ble

See merge request espressif/esp-idf!23214
2023-04-17 19:42:47 +08:00
liuning cebf0acaee esp_wifi: fix failed to sleep after scan, coex: fix wifi connecting interrupted by ble 2023-04-14 18:53:13 +08:00
Jiang Jiang Jian f06c39e9a6 Merge branch 'bugfix/espnow_config_channel_v4.2' into 'release/v4.2'
esp_wifi: fix espnow example add peer fail when config channel(v4.2)

See merge request espressif/esp-idf!23181
2023-04-13 18:08:10 +08:00
chenjianxing d71832b0c3 esp_wifi: fix espnow example add peer fail when config channel
Closes https://github.com/espressif/esp-idf/issues/9592
2023-04-13 10:55:10 +08:00
Jiang Jiang Jian 148f4c62a9 Merge branch 'mesh/bugfix_fix_heap_corrupt_issue_v4.2' into 'release/v4.2'
esp_wifi: fix bugs in wifi mesh (backport v4.2)

See merge request espressif/esp-idf!23131
2023-04-11 17:42:01 +08:00
zhangyanjiao 504e83c856 Update the ESP-NOW frame length in docs 2023-04-10 17:21:59 +08:00
zhangyanjiao a7ba067c2e wifi_mesh: update mesh doc 2023-04-10 17:21:51 +08:00
zhangyanjiao a42b845cab esp_wifi:
1. wifi_mesh: fix the heap corrupt issue in MTXON task
2. wifi_mesh: Fix several bugs on mesh network
2023-04-10 17:20:59 +08:00
Jiang Jiang Jian 25e130a833 Merge branch 'bugfix/fix_blufi_frag_pkt_vulnerability_4.2' into 'release/v4.2'
Fixed vulnerability attacks that could cause heap overflow in fragmented Blufi packet processing (back port v4.2)

See merge request espressif/esp-idf!23063
2023-04-06 10:57:19 +08:00
zhiweijian 3a7dd3c0de Fixed vulnerability attacks that could cause heap overflow in fragmented Blufi packet processing 2023-04-04 15:42:34 +08:00
Jiang Jiang Jian 9dfbf27857 Merge branch 'bugfix/fix_some_ble_bugs_for_4.2' into 'release/v4.2'
Bluedroid: fix some ble bugs (backport 4.2)

See merge request espressif/esp-idf!22704
2023-03-20 14:02:59 +08:00
Jiang Jiang Jian 8e8ef2b469 Merge branch 'bugfix/close_rf_in_deep_sleep_backport_v4.2' into 'release/v4.2'
deep sleep: further optimize sleep current if RF is enabled (backport v4.2)

See merge request espressif/esp-idf!22735
2023-03-20 14:02:17 +08:00
Jiang Jiang Jian 03ad2abdee Merge branch 'feature/esp32_ulp_allow_8kb_v4.2' into 'release/v4.2'
esp32: allow up to 8 kB of ULP program size (v4.2)

See merge request espressif/esp-idf!22707
2023-03-20 14:00:59 +08:00
wuzhenghui b158a891fe deep sleep: close rf to optimize sleep current 2023-03-19 18:37:58 +08:00
wuzhenghui 0270f9d435 Revert "deep sleep: optimize sleep current in wifi softap mode"
This reverts commit f16e8cb48e.
2023-03-17 12:06:55 +08:00
Zim Kalinowski f558578958 Merge branch 'refactor/nvs_allocatable_objects_v4.2' into 'release/v4.2'
refactor(nvs): custom allocator for all objects allocated in NVS (v4.2)

See merge request espressif/esp-idf!21796
2023-03-14 03:58:03 +08:00
Ivan Grokhotkov 3ccd1ae6e2 esp32: allow up to 8 kB of ULP program size
The remaining 4 kB had been reserved for storing RF calibration and
BT stack state since 4e092be6. However, these features never got
implemented. If we ever need to place RF related data into RTC slow
memory, we can do this by creating a variable with RTC_NOINIT_ATTR
instead.

https://github.com/espressif/esp-idf/issues/6515
2023-03-10 18:08:14 +08:00
chenjianhua c912fcba45 fix ble adv tx power map 2023-03-10 17:15:24 +08:00