Commit Graph

1701 Commits

Author SHA1 Message Date
Dong Heng
e19ff9af0d Merge branch 'feature/add_esp_tls_mbedtls_api_v3.4' into 'release/v3.4'
esp-tls: Add API for mbedtls to get and set ciphersuites (backport v3.4)

See merge request sdk/ESP8266_RTOS_SDK!1674
2024-07-03 11:27:57 +08:00
zhangyanjiao
0cac4f8cf3 fix(wpa_supplicant): (PEAP client) Update Phase 2 auth requirements 2024-04-17 16:08:51 +08:00
Chen Wu
d4dca4ed00 fix(tcpip_adapter): Fixed that IPv6 DNS can not work 2023-12-27 14:22:17 +08:00
zhangyanjiao
377bd1dd01 Dropped fragmented aggregated packets (CVE-2020-26142) 2023-12-18 16:28:18 +08:00
Dong Heng
7c318e9b55 fix(esp8266): Fix compiling error 2023-11-27 19:31:07 +08:00
Dong Heng
0a612356c1 fix(esp8266): Fix open mode RX fragment packet fail issue 2023-11-24 19:57:40 +08:00
Chen Wu
fdac6aaf6b fix(ESPCS-924): Fixed a potential freertos crash
- Reason:
A task and B interrupt indirectly access the shared resource pxDelayedTaskList without proper security protection, leading to further crash.
A task uses xEventGroupSetBits() to access the pxDelayedTaskList resource:
xEventGroupSetBits() -> vTaskRemoveFromUnorderedEventList() -> uxListRemove() -> pxList, where pxList is the pxDelayedTaskList.
At this point, another B interrupt is triggered (xEventGroupSetBits only suspends task scheduling and does not disable interrupts) and also accesses the pxDelayedTaskList resource:
MacIsrSigPostDefHdl() -> __wifi_queue_send_from_isr() -> xQueueGenericSendFromISR() -> xTaskRemoveFromEventList() -> prvResetNextTaskUnblockTime() -> pxDelayedTaskList.
This leads to an unsafe access to the pxDelayedTaskList resource by two entities, causing subsequent crash exceptions.

- Fix:
Modify the timing of the call to prvResetNextTaskUnblockTime() within xTaskRemoveFromEventList from unconditional execution to only execute when task scheduling is enabled.
This way, when the B interrupt reaches xTaskRemoveFromEventList, it will not call prvResetNextTaskUnblockTime to access the pxDelayedTaskList resource (due to task scheduling being disabled).
After the B interrupt execution is complete and control returns to A task, xTaskResumeAll() will be called, and then prvResetNextTaskUnblockTime() will update the pxDelayedTaskList resource again.
2023-11-06 14:08:53 +08:00
zhangyanjiao
494817f32b fix the multiple country info issue 2023-09-05 19:33:39 +08:00
Chen Wu
0d9450ea00 feat(httpd): Allow binding to same address and port upon restarting server without delay
Issue : Restarting the server without 30sec delay between httpd_stop() and httpd_start() causes EADDRINUSE error
Resolution : Use setsockopt() to enable SO_REUSEADDR on listener socket

Closes https://github.com/espressif/esp-idf/issues/3381
2023-05-05 17:44:59 +08:00
yuanjianmin
1c33bd488b esp-tls: Add API for mbedtls to get and set ciphersuites 2023-04-28 15:49:34 +08:00
Dong Heng
8afe4a6785 feat(spi_flash): Add patch to fix TH25Q16HB page 0 hardware issue 2023-03-10 10:38:51 +08:00
Zhang Jun Hao
eb4066e80e fix(lib): fix scan state error 2022-10-09 14:12:03 +08:00
Dong Heng
20dbb96fcd fix(spi_flash): Fix bootloader failed to read image data 2022-09-19 19:12:25 +08:00
Zhang Jun Hao
04281f67e1 fix(lib): do not check basic rate for signal test router 2022-09-13 09:44:18 +08:00
Dong Heng
4701083a4e Merge branch 'bugfix/xmc_overerase_v3.4' into 'release/v3.4'
feat(bootloader): add xmc spi_flash startup flow to improve reliability (backport v3.4)

See merge request sdk/ESP8266_RTOS_SDK!1662
2022-09-09 13:55:51 +08:00
Dong Heng
06f3948b27 feat(spi_flash): Support Flash ID 0x164068 2022-08-11 10:32:00 +08:00
Dong Heng
b5301bf124 feat(bootloader): add xmc spi_flash startup flow to improve reliability 2022-08-11 10:29:43 +08:00
Dong Heng
3efd52d2e0 feat(bootloader): Boot close IRQ with level 3 2022-05-13 19:46:17 +08:00
Dong Heng
9d1387522c feat(bootloader): Disable CPU interrupt in boot 2022-05-09 19:18:05 +08:00
Dong Heng
56ffb3d46c fix(esp8266): Fix compiling error when enable Wi-Fi debug 2022-04-11 12:57:54 +08:00
Wu Jian Gang
a7ac1b6f12 fix(lib): fix some wifi issues
1. fix crash when recv null rates
2. fix rst error when malloc failed
2022-03-15 16:25:29 +08:00
Chen Wu
e1f60ef9b2 fix(pp): do not wait null1 send ok before scan 2021-12-22 11:19:30 +08:00
Zhang Jun Hao
8a752a1103 fix(lib): do not rewrite nvs with invalid value and fix ap sta disconnect evt error 2021-08-30 16:31:36 +08:00
Dong Heng
86f399a609 feat(nvs_flash): Update nvs_flash from esp-idf
MR !14548.
2021-08-02 14:00:37 +08:00
Dong Heng
e600fe09d7 Merge branch 'bugfix/fix_pmk_error_v3.4' into 'release/v3.4'
fix(wpa_supplicant): fix pmk error(backport v3.4)

See merge request sdk/ESP8266_RTOS_SDK!1625
2021-07-26 11:28:54 +00:00
Dong Heng
562e650b25 Merge branch 'bugfix/fix_smartconfig_stop_error_v3.4' into 'release/v3.4'
fix(lib): fix smartconfig stop error(backport v3.4)

See merge request sdk/ESP8266_RTOS_SDK!1627
2021-07-26 11:28:27 +00:00
Dong Heng
3d11cbc25d Merge branch 'feature/support_esptouch_v2_send_unicast_for_v3.4' into 'release/v3.4'
feat(sc): Support ESP-Touch-V2 to send unicast(backport v3.4)

See merge request sdk/ESP8266_RTOS_SDK!1623
2021-07-26 11:28:16 +00:00
Zhang Jun Hao
2c9b38b244 fix(wpa_supplicant): fix pmk error 2021-07-26 17:33:01 +08:00
Zhang Jun Hao
bd5a4c3f25 fix(lib): fix smartconfig stop error 2021-07-26 17:32:19 +08:00
Dong Heng
0b857076c8 feat(nvs_flash): Modify for ESP8266 2021-07-26 15:21:13 +08:00
Dong Heng
97d0c2a4fb feat(nvs_flash): Bring nvs_flash from esp-idf
Commit ID: ecd2c51
2021-07-26 15:21:13 +08:00
Chen Wen
186b2449b1 feat(sc): Support ESP-Touch-V2 to send unicast 2021-06-18 10:10:29 +08:00
Zhang Jun Hao
1d1b99557d fix(smartconfig): add timeout for airkiss sync 2021-06-02 16:02:57 +08:00
Zhang Jun Hao
be11a5ab95 fix(lib): update lib 2021-05-21 15:44:56 +08:00
Zhang Jun Hao
5047c3af6d fix(wifi): fragment and forge vulnerability detection 2021-05-21 15:33:21 +08:00
Chen Wu
611a94211a fix(lib): restart softap when phy mode change (backport v3.4) 2021-05-18 16:12:05 +08:00
chenwen
f46ef19f49 fix(sc): fix the issue of sending failure and exit
1. Send unicast first, use broadcast to send if unicast fails.
         2. Send 60 times successfully before exiting.
2021-05-14 11:33:50 +08:00
Angus Gratton
91163a8e48 freertos: Add addition overflow check for stream buffer
Patch from upstream commit d05b9c123f2bf9090bce386a244fc934ae44db5b
2021-05-13 20:01:36 +08:00
Angus Gratton
b54fb1baf7 freertos: Add queue init overflow check
Based on FreeRTOS kernel patch 47338393 but modified
to work without assertions.
2021-05-13 20:01:31 +08:00
Chen Wu
0c9be8d891 fix(lib): fix beacon ie error when set to bgn mode 2021-05-12 19:43:57 +08:00
Dong Heng
a60ee4e13e Merge branch 'bugfix/uart_tx_done_timeout_check_v3.4' into 'release/v3.4'
fix: uart tx done timeout check (backport v3.4)

See merge request sdk/ESP8266_RTOS_SDK!1607
2021-04-28 11:39:20 +00:00
Chen Wu
f9aca5a8e0 fix: potential blocking code when call uart_wait_tx_done()
1. there is a risk of ticks_end overflow, if xTaskGetTickCount() plus ticks_to_wait is bigger than portMAX_DELAY
2. potential blocking code on waiting for tx fifo done. It usually occurs at esp uart uses flow control, and the other side of uart not.
2021-04-28 15:27:11 +08:00
yuanjm
a8be948f21 tcpip_adapter: fix set static ip fail and remove the dhcp_check timer 2021-04-28 14:28:43 +08:00
yuanjm
990293129b fix(mbedtls): Fix mbedtls_ssl_send_alert_message crash due to ssl->out_iv is NULL 2021-04-23 10:00:30 +08:00
Dong Heng
c2be3ba0b5 Merge branch 'bugfix/check_and_reset_mac_reg_every_2s_when_rx_hang' into 'master'
fix(lib): check and reset mac reg every 2s when rx hang occurs

See merge request sdk/ESP8266_RTOS_SDK!1595

(cherry picked from commit 30a4ba7e2d)

fb5894a9 fix(lib): check and reset mac reg every 2s when rx hang occurs
2021-04-20 10:18:12 +08:00
Dong Heng
89a3f254b6 Merge branch 'bugfix/fix_rf_state_error_when_scan_again_in_scan_cb' into 'master'
fix(lib): fix rf state error when scan again in scan cb

See merge request sdk/ESP8266_RTOS_SDK!1588
2021-01-22 14:05:47 +08:00
Dong Heng
f6c17cb2c3 Merge branch 'feature/add_exec_caps_to_iram_region' into 'master'
feat(heap): Add executable caps to IRAM region

See merge request sdk/ESP8266_RTOS_SDK!1589
2021-01-22 12:53:26 +08:00
Dong Heng
5d980e20f1 feat(heap): Add executable caps to IRAM region 2021-01-22 12:07:37 +08:00
Zhang Jun Hao
89ab325083 fix(lib): fix rf state error when scan again in scan cb 2021-01-22 11:02:12 +08:00
Dong Heng
e4d4998781 Merge branch 'bugfix/fix_hw_dump_ccmp_len_error' into 'master'
fix(lib): fix hw dump ccmp len error

See merge request sdk/ESP8266_RTOS_SDK!1585
2021-01-22 10:56:43 +08:00