1716 Commits

Author SHA1 Message Date
Xu Chun Guang
d30d8e938c feat: Optimize dram size for libsodium test code 2025-04-17 17:26:06 +08:00
Dong Heng
b4665fccda chore(coap): Modify libcoap URL from github to jihulab 2025-04-17 16:27:55 +08:00
zhangyanjiao
3fa822f729 Fixed the ssid len error issue when the ssid string does not have an end delimiter 2024-11-18 10:49:16 +08:00
zhangyanjiao
898bf9e449 fix(wpa_supplicant): (PEAP client) Update Phase 2 auth requirements 2024-04-17 16:03:13 +08:00
Dong Heng
c4634015d8 Merge branch 'feature/add_esp_tls_mbedtls_api' into 'master'
esp-tls: Add API for mbedtls to get and set ciphersuites

See merge request sdk/ESP8266_RTOS_SDK!1673
2023-12-29 15:24:51 +08:00
Chen Wu
045b4c98dd fix(tcpip_adapter): Fixed that IPv6 DNS can not work 2023-12-27 14:20:05 +08:00
zhangyanjiao
5ddda6c800 Dropped fragmented aggregated packets CVE-2020-26142. 2023-12-18 16:12:20 +08:00
Dong Heng
e13702d8e4 fix(esp8266): Fix compiling error 2023-11-27 19:10:06 +08:00
Dong Heng
8c531f586f fix(esp8266): Fix open mode RX fragment packet fail issue 2023-11-24 19:50:31 +08:00
Chen Wu
5b83e820d2 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:02:44 +08:00
zhangyanjiao
69cf000a4a fix the multiple country info issue 2023-09-05 19:31:45 +08:00
Chen Wu
d93c5bb861 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:46:05 +08:00
yuanjianmin
8552799a4f esp-tls: Add API for mbedtls to get and set ciphersuites 2023-04-28 15:35:50 +08:00
zhangyanjiao
a22a955007 change addr3 to broadcast for ESPNOW
Closes https://github.com/espressif/esp-now/issues/57
2023-03-27 16:35:55 +08:00
Dong Heng
e2f55cbcca feat(spi_flash): Add patch to fix TH25Q16HB page 0 hardware issue 2023-03-09 19:08:43 +08:00
Zhang Jun Hao
64de58678e fix(lib): fix scan state error 2022-10-09 14:10:43 +08:00
Dong Heng
92ac9ee06c fix(spi_flash): Fix bootloader failed to read image data 2022-09-19 16:13:20 +08:00
Zhang Jun Hao
81441d2405 fix(lib): do not check basic rate for signal test router 2022-09-13 09:39:39 +08:00
Dong Heng
838197121a feat(bootloader): add xmc spi_flash startup flow to improve reliability 2022-08-11 10:28:33 +08:00
Dong Heng
ea598f1174 Merge branch 'feature/flash_support_id_0x164068' into 'master'
feat(spi_flash): Support ID 0x164068

See merge request sdk/ESP8266_RTOS_SDK!1659
2022-08-09 20:05:02 +08:00
Dong Heng
f88c2c56ea feat(spi_flash): Support Flash ID 0x164068 2022-08-09 19:38:20 +08:00
Dong Heng
c7fcac9b45 feat(bootloader): Boot close IRQ with level 3 2022-05-13 19:40:09 +08:00
Dong Heng
2115e02459 feat(bootloader): Disable CPU interrupt in boot 2022-05-09 19:15:37 +08:00
Dong Heng
de327615db fix(esp8266): Fix compiling error when enable Wi-Fi debug 2022-04-11 11:43:20 +08:00
Dong Heng
eaf7b3447e feat(phy): update phy library from 1166.0 to 1167.0
1. Fix PWM stopping in some case
2022-02-18 11:53:43 +08:00
Chen Wu
548cd734ce fix(pp): do not wait null1 send ok before scan 2021-12-22 11:16:05 +08:00
Dong Heng
0f200b4640 Merge branch 'feature/update_phy_library' into 'master'
feat(phy): update phy library from 1163.0 to 1166.0

See merge request sdk/ESP8266_RTOS_SDK!1639
2021-09-03 07:40:12 +00:00
Dong Heng
63e168112f feat(phy): update phy library from 1163.0 to 1166.0
1. Optimize RX blocking certification
2. Reduce TX power when bringing up
3. Fix crash when waking up from sleep in case of using 40MHz XTAL
2021-08-31 17:00:15 +08:00
Zhang Jun Hao
f89953c896 fix(lib): do not rewrite nvs with invalid value and fix ap sta disconnect evt error 2021-08-30 16:25:56 +08:00
Dong Heng
f00bddbf2f feat(nvs_flash): Update nvs_flash from esp-idf
MR !14548.
2021-07-30 17:59:30 +08:00
Dong Heng
d11de77935 Merge branch 'bugfix/fix_pmk_error' into 'master'
fix(wpa_supplicant): fix pmk error

See merge request sdk/ESP8266_RTOS_SDK!1624
2021-07-26 11:51:44 +00:00
Dong Heng
1c5882bca4 Merge branch 'bugfix/fix_smartconfig_stop_error' into 'master'
fix(lib): fix smartconfig stop error

See merge request sdk/ESP8266_RTOS_SDK!1626
2021-07-26 11:45:45 +00:00
Dong Heng
7a30d865e6 Merge branch 'feature/mbedtls_for_guomi' into 'master'
feat(mbedtls): modify makefile for esp-mbedtls-guomi build

See merge request sdk/ESP8266_RTOS_SDK!1591
2021-07-26 11:30:03 +00:00
Dong Heng
ee82a060cb Merge branch 'feature/support_esptouch_v2_send_unicast' into 'master'
feat(sc): Support ESP-Touch-V2 to send unicast

See merge request sdk/ESP8266_RTOS_SDK!1622
2021-07-26 11:28:09 +00:00
Zhang Jun Hao
2c455c9eb5 fix(wpa_supplicant): fix pmk error 2021-07-26 19:23:17 +08:00
Zhang Jun Hao
1ea174cb9d fix(lib): fix smartconfig stop error 2021-07-26 19:22:49 +08:00
Li Jingyi
6964300cf9 feat(mbedtls): Add CONFIG_MBEDTLS_SSL_PROTO_GMTSSL1_1 and modify makefile for support GMTSSL1.1 2021-07-26 15:59:02 +08:00
Dong Heng
f25a7ad205 feat(nvs_flash): Modify for ESP8266 2021-07-26 12:00:17 +08:00
Dong Heng
f09d86123d feat(nvs_flash): Bring nvs_flash from esp-idf
Commit ID: ecd2c51
2021-07-26 12:00:17 +08:00
Zhang Jun Hao
a977a9d24f fix(smartconfig): add timeout for airkiss sync 2021-06-02 15:58:00 +08:00
Zhang Jun Hao
8a2ab31b50 fix(lib): update lib 2021-05-21 15:32:19 +08:00
Zhang Jun Hao
f7b047509d fix(wifi): fragment and forge vulnerability detection 2021-05-21 15:18:46 +08:00
Chen Wu
620605a39f fix(lib): restart softap when phy mode change 2021-05-18 16:08:10 +08:00
Chen Wen
d1b44513bb feat(sc): Support ESP-Touch-V2 to send unicast 2021-05-15 17:49:12 +08:00
chenwen
938d127fc5 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:45:15 +08:00
Dong Heng
82a6a98f4a Merge branch 'bugfix/queue_arith_overflow' into 'master'
freertos: Add queue init overflow check

See merge request sdk/ESP8266_RTOS_SDK!1608
2021-05-13 11:46:10 +00:00
Chen Wu
53f2bc65e4 fix(lib): fix beacon ie error when set to bgn mode 2021-05-12 19:38:23 +08:00
Angus Gratton
f4f212aa6e freertos: Add addition overflow check for stream buffer
Patch from upstream commit d05b9c123f2bf9090bce386a244fc934ae44db5b
2021-05-04 19:09:31 +10:00
Angus Gratton
a2ed0747a1 freertos: Add queue init overflow check
Based on FreeRTOS kernel patch 47338393 but modified
to work without assertions.
2021-05-04 19:09:31 +10:00
Dong Heng
911e2d7aa7 Merge branch 'bugfix/uart_tx_done_timeout_check' into 'master'
fix(uart): potential blocking code when call uart_wait_tx_done()

See merge request sdk/ESP8266_RTOS_SDK!1599
2021-04-28 11:39:26 +00:00