Commit Graph

183 Commits

Author SHA1 Message Date
chenjianhua 0461975846 fix(bt): Update bt lib for ESP32-C3 and ESP32-S3(b8f0db9)
- Fixed assert when llcp instant passed
- Fixed assert for instant passed workaround
- Fixed add RPA to white list
- Fixed AES encryption for RPA resolution
2023-12-08 19:57:54 +08:00
alanmaxwell 05a3d2d8ce feat(wifi): support esp32c3 v1.1 wifi 2023-11-28 11:36:58 +08:00
Jiang Jiang Jian 7e9d90ca22 Merge branch 'bugfix/backport_wifi_fix_1124_v4.3' into 'release/v4.3'
fix(wifi): backport some wifi bugfix(v4.3)

See merge request espressif/esp-idf!27386
2023-11-28 10:51:40 +08:00
alanmaxwell 37b1fc9d67 fix(wifi): backport some wifi bugfix
1. Fix multi antenna issue
2. Fix typo in wifi api docs
3. Optimize BB filter timer to pass some corner case
4. Change fragment threshold to 256
5. Support fragment for LR mode
6. Fix rx fragment fail in Open mode.
7. Drop fragmented AMPDUs
8. Fix ampdu duration issue
2023-11-27 10:37:31 +08:00
xueyunfei f9b7fa964c feat(esp_wifi):static buf for management,control,qos null,null data rx packet 2023-11-27 10:37:31 +08:00
zhiweijian 3881da5bdb feat: support ble esp32c3 eco7 2023-11-24 20:24:50 +08:00
Jiang Guang Ming 0a27b15f3e feat(esp32c3): Add rom ld with ROM tag esp32c3-eco7-20230720 2023-11-24 20:23:29 +08:00
muhaidong 59ff3f12fc fix(wifi): fix some wifi issues
1. fix enable psram wapi dhcp fail issue
3. fix wrong wifi mode connect crash issue
2023-11-24 11:06:44 +08:00
shangke 4c4da5a35f fix(bt/controller): Fixed some HCI commands parameter
1: add param check for HCI_Recevie_Synchronization_Train.
2: add param check for HCI_Set_Connectionless_Peripheral_Broadcast.
3: fix slave cannot take a secure authentication.
2023-09-25 11:50:18 +08:00
Nachiket Kukade 7ec1705c0f fix(wifi): Fix EAPOL Key TxDone callback implementation
Fix issues arising due to not distinguishing between M2 and M4
TxDone during 4-way handshake. Also fix EAPOL frame rate to lowest
possible rate.
2023-08-18 11:02:05 +08:00
alanmaxwell a405774eff fix(bt/ble): delete rom funcs for backport missing. 2023-07-27 23:03:39 +08:00
muhaidong 82a3693a4e fix(wifi): missed annotate ld function from txop fix 2023-07-18 11:04:48 +08:00
muhaidong b2aa2eb384 esp_wifi: fix some txop issues 2023-07-17 20:24:28 +08:00
Jiang Guang Ming be2aa49519 esp_rom: fix rom layout issues 2023-07-07 01:38:45 -07:00
Marius Vikhammer e3d109dd1d 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:17 +00:00
Jiang Jiang Jian b1ececef12 Merge branch 'bugfix/fix_hw_ralunderrun_assert_v4.3' into 'release/v4.3'
Fixed BLE HW RAL_UNDERRUN asser and backport some bug fix 23-03-30 (back port v4.3)

See merge request espressif/esp-idf!23011
2023-03-31 14:03:11 +08:00
zwj e1a1e70720 - Support ESP32C3 and ESP32S3 new BLE lib
- Disable controller 5.0 feature bits if host 5.0 feature is not enabled
- Fixed extend ADV parameters check for ADV_DIRECT_HI
- Fixed HW RAL_UNDERRUN assert
2023-03-30 22:00:02 +08:00
chenjianxing 54b61a77a2 esp_wifi: fix c3 rate control issue to improve tx robust 2023-03-30 21:52:06 +08:00
Michael (XIAO Xufeng) 6b323359ce Merge branch 'feature/apply_new_version_logic_v4.3' into 'release/v4.3'
all: Apply new version logic (major * 100 + minor) (v4.3)

See merge request espressif/esp-idf!22482
2023-03-07 11:25:42 +08:00
Jakob Hasse ffee70c883 refactor(esp_rom): miniz test only on FPGA now 2023-03-03 18:23:27 +08:00
KonstantinKondrashov 79659a0410 chip_version: Updates for Make build system 2023-03-02 19:52:17 +08:00
KonstantinKondrashov e88f235326 all: Apply new version logic (major * 100 + minor) 2023-03-02 03:21:34 +00:00
chenjianxing b9f31eaa66 esp_wifi: fix multicast pkts drop issue for some AP when DTIM period > 1 2023-01-11 11:04:18 +08:00
alex.li e7a2559640 esp_wifi: fix wapi gtk id compability issue and adapt tx frag pn sequently. 2022-12-06 17:28:09 +08:00
Li Shuai 54d59fae28 sleep: beacon loss and noise check timer optimize for wifi power save
esp_phy: optimize phy calibration for C3
2022-10-21 21:43:24 +08:00
jiangguangming 45e6ae724d esp_rom: fix 2nd bootloader custom uart1 baudrate issue 2022-10-18 13:51:20 +08:00
muhaidong 56933d09ea esp_wifi: fix ignore rx sub ampdu interrupt issue 2022-10-14 16:08:24 +08:00
ChenJianxing c8814343dc esp_wifi: add ht40 support for 80211_tx & espnow 2022-08-05 15:35:39 +08:00
xueyunfei bc61578d68 esp_wifi: backport some wifi fix
1 Bugfix for wrong config of static txbuf

     2 fix bug that qos data will update BA SSN

     3 reset beacon timeout timer

     4 Bugfix for close sniffer mode when wifi stop

     5 update wifi header files
2022-07-26 09:55:39 +00:00
KonstantinKondrashov 0a71dce1ef reset_reasons: EFUSE_RST is treated as POWERON_RST
ESP32 does not have the EFUSE_RST, the rest chips has this reset reason.
2022-06-22 17:56:32 +08:00
Wu Zheng Hui a0b1d016e4 efuse: update efuse name (backport v4.3) 2022-05-31 14:42:05 +08:00
liuning 692265302e esp_wifi: fix no null data after WiFi waking up. (backport v4.3) 2022-05-17 23:32:33 +08:00
KonstantinKondrashov edde9c7892 esp32c3: Adds ECO4 revision 2022-04-08 18:25:16 +08:00
wuzhenghui 1ef989a1b5 update reset reason for c3/s3/h2 2022-03-29 10:03:27 +08:00
Ivan Grokhotkov f4852bc055 rom, spi_flash: add a patch for esp_flash_erase_region for C3, S3
Submitted in https://github.com/espressif/esp-idf/pull/7314
Closes https://github.com/espressif/esp-idf/issues/7272
2022-03-16 11:52:14 +01:00
Ivan Grokhotkov f527010044 esp_rom: remove functions which depend on sizeof(struct stat)
...and all their callers.

With the upcoming switch from sizeof(time_t)==4 to sizeof(time_t)==8,
sizeof(struct stat) is also increasing.

A few newlib functions present in ROM allocate 'struct stat' on the
stack and call _fstat_r on this structure. The implementation of
fstat is provided in ESP-IDF. This implementation will often do
memset(st, 0, sizeof(*st)), where st is 'struct stat*', before setting
some fields of this structure. If IDF is built with sizeof(st)
different from sizeof(st) which ROM was built with, this will lead
to an out-of-bounds write and a stack corruption.

This commit removes problematic ROM functions from the linker script.
Here are the functions which allocate 'struct stat':
* _isatty_r (in ROM)
* __swhatbuf_r, called by __smakebuf_r, called by __swsetup_r and
  __srefill_r (in ROM)
* _fseeko_r (not in ROM)
* glob2 (not in ROM)
* _gettemp (not in ROM)

As a result, these functions are used from libc.a, and use correct
size of 'stat' structure.

Closes https://github.com/espressif/esp-idf/issues/7980
2022-02-11 07:07:12 +00:00
boarchuz 22fad5110c fix bootloader build with rom flash driver
Closes https://github.com/espressif/esp-idf/pull/7508
Closes https://github.com/espressif/esp-idf/issues/6849
2021-11-08 14:14:53 +08:00
Cao Sen Miao ce9e615679 Merge branch 'feature/esp32c3_usbjtagserial_v4.3' into 'release/v4.3'
usb_serial_jtag: support usb_serial_jtag on esp32c3(backport v4.3)

See merge request espressif/esp-idf!15319
2021-10-14 10:38:02 +00:00
Song Ruo Jing 75916a8758 Merge branch 'bugfix/cpu_reset_perip_clk_disable_v4.3' into 'release/v4.3'
esp_system: Peripheral clocks faulty become disabled during cpu reset

See merge request espressif/esp-idf!15482
2021-10-13 10:04:13 +00:00
songruojing 023bbe5cb1 esp_system: fix the bug that some peripheral clocks are being disabled during cpu reset for esp32s2, c3, s3 2021-10-12 11:37:17 +08:00
Cao Sen Miao f49d6bf061 usb_serial_jtag: fix the bug that cannot write with usb_jtag 2021-10-11 17:34:24 +08:00
Cao Sen Miao ea06ee1ad6 spi_flash: move the unlock patch to bootloader and add support for GD 2021-10-11 10:52:52 +08:00
Mahavir Jain 94667365d3 Merge branch 'esp32c3/override_assert_v4.3' into 'release/v4.3'
newlib: Override __assert and __assert_func (v4.3)

See merge request espressif/esp-idf!14685
2021-09-09 13:24:01 +00:00
Marius Vikhammer e741161b2e Merge branch 'bugfix/renable_unit_tests_v4.3' into 'release/v4.3'
ci: enable previously disabled unit tests (v4.3)

See merge request espressif/esp-idf!13775
2021-09-08 09:03:32 +00:00
Sachin Parekh 659cfcb1f6 newlib: Override __assert and __assert_func
Default assert implementation calls fiprintf, which tries to acquire a
lock and fails if it is executing in critical section or ISR
2021-09-08 16:32:09 +08:00
Mahavir Jain 4446e2f632 esp_rom: remove "newlib.h" header
We found conflict in "sizeof(time_t)" due to inclusion of this
header over toolchain specific "newlib.h".

Moreover, there are no users for this header and implementation
for API is also not available in ROM. Hence removing it.
2021-08-31 10:32:34 +05:30
muhaidong 1fd8fdcf7d bugfix fix some wifi bugs for 4.3
1. sync idf menuconfig nvs status to lib
2. disable ampdu+amsdu bit
3. fix 80211 tx crash issue
4. supoort config 80211 tx rate
2021-07-31 21:46:14 +08:00
Marius Vikhammer 0b8ed8d76e ci: enable previously disabled unit tests 2021-07-29 09:29:29 +08:00
Anton Maklakov 29b8f3b719 newlib: Add ESP_ROM_HAS_RETARGETABLE_LOCKING capability for C3 and S3 chips 2021-06-25 11:48:25 +07:00
ChenJianxing f2676b8e59 esp_wifi: fix amsdu & fragment vulnerabilities 2021-06-17 10:44:06 +08:00