Commit Graph

22187 Commits

Author SHA1 Message Date
xiaqilin
ceb24b5161 fix(esp_phy): fix the frequency switching issue in esp32h2/esp32c6 ble/ieee802154 coex 2024-07-01 15:22:30 +08:00
Jiang Jiang Jian
abc703a0dd Merge branch 'bugfix/fix_ble_connect_fail_report_time_v5.1' into 'release/v5.1'
fix(ble/bluedroid): Fixed BLE report event when connection fails (v5.1)

See merge request espressif/esp-idf!31783
2024-07-01 14:20:09 +08:00
Jiang Jiang Jian
2653904d33 Merge branch 'bugfix/mgmt_gcmp_issue_v5.1' into 'release/v5.1'
fix(wifi): Fix GCMP encryption for mgmt packets and other bugfixes (Backport v5.1)

See merge request espressif/esp-idf!30481
2024-07-01 11:06:05 +08:00
Jiang Jiang Jian
078aff1033 Merge branch 'bugfix/wpa3_init_crash_v5.1' into 'release/v5.1'
fix(wpa_supplicant): Fix wpa3 AP crash because of dangling pointer (v5.1)

See merge request espressif/esp-idf!31542
2024-07-01 10:52:16 +08:00
Jiang Jiang Jian
dc164cd29e Merge branch 'fix/ulp_riscv_i2c_multi_byte_v5.1' into 'release/v5.1'
fix(ulp-risc-v): Fixed RTC I2C multi-byte read/write issue for ULP RISC-V (v5.1)

See merge request espressif/esp-idf!31715
2024-07-01 10:23:34 +08:00
Jiang Jiang Jian
d45ec891d2 Merge branch 'docs/update_esp_vfs_notes_v5.1' into 'release/v5.1'
docs(vfs): update esp_vfs_register_fd api description (v5.1)

See merge request espressif/esp-idf!30427
2024-07-01 10:21:41 +08:00
Jiang Jiang Jian
6b60fc715f Merge branch 'bugfix/crash_after_bluedroid_deinit_v5.1' into 'release/v5.1'
fix(bt/bluedroid): Fixed controller using null pointer after bluedroid deinit(v5.1)

See merge request espressif/esp-idf!30328
2024-07-01 10:20:53 +08:00
Jiang Jiang Jian
135eb2e5da Merge branch 'fix/heap-trace-on-all-functions_v5.1' into 'release/v5.1'
fix(heap): Tracing of all heap_caps API functions (backport v5.1)

See merge request espressif/esp-idf!30235
2024-07-01 10:20:21 +08:00
Adam Múdry
43c69badc6 fix: PRI inttypes error due to C++ invalid suffix on literal in SPIFFS 2024-06-30 23:32:04 +02:00
Rahul Tank
c98f32ecb9 Merge branch 'bugfix/set_correct_cb_arg_v5.1' into 'release/v5.1'
fix(nimble): Pass the correct cb arg during reconnection attempt (v5.1)

See merge request espressif/esp-idf!31719
2024-06-28 21:00:58 +08:00
Kapil Gupta
967eda03d0 fix(esp_wifi): Correct action frame type in send_mgmt_frame API 2024-06-28 16:25:18 +05:30
Sarvesh Bodakhe
9d637316a9 fix(wifi): Add bugfix to avoid RSNXE and KDE mismatch during 4-way-handshake 2024-06-28 16:25:18 +05:30
Kapil Gupta
c5e1603e6d fix(wifi): Fix encryption/decryption issue for mgmt packets
* Fix issues related to mgmt packets encryption in GCMP
* Fix issue of wrong decryption of mgmt packets when PMF is enabled
* Fix softAP bug in handling of SAE Reauthentication
* Fix send mgmt err when eapol process
* Fix data len not correct in he actions
2024-06-28 16:24:54 +05:30
WanqQixiang
879e7903ef fix(openthread): register uart vfs devices when they are not registered 2024-06-28 15:52:40 +08:00
zhanghaipeng
6f08290f3d fix(ble/bluedroid): Fixed BLE report event when connection fails 2024-06-28 12:00:45 +08:00
jgujarathi
31b2cd7b8e fix(esp_wifi): Fix scanning and connecting to FT APs
- Ensure that scanning and connecting to FT capable APs in FT mode works
  as expected.
- Send unicast probe requests if bssid is known during scan
- Allows for RSNXE IE to be processed as a variable length upto
  255 bytes, changing the earlier max of 20.
2024-06-27 15:41:17 +05:30
Island
3530c0c7c8 Merge branch 'bugfix/fixed_hci_uart_error_on_esp32c6_esp32h2_v5.1' into 'release/v5.1'
feat(bluetooth/controller): Fixed the issue of unresponsiveness when using hci... (v5.1)

See merge request espressif/esp-idf!31752
2024-06-27 17:19:29 +08:00
Island
4efd577c19 Merge branch 'bugfix/fix_some_ble_bugs_cjh_v5.1' into 'release/v5.1'
Fixed some BLE bugs 240620 (backport v5.1)

See merge request espressif/esp-idf!31654
2024-06-26 20:33:14 +08:00
zwl
ea6d8e64c9 feat(bluetooth/controller): Fixed the issue of unresponsiveness when using hci uart mode on ESP32-C6 and ESP32-H2 2024-06-26 17:32:57 +08:00
Shreyas Sheth
a14d4ea8a4 fix(wpa_supplicant): Fix wpa3 AP crash because of dangling pointer 2024-06-26 10:45:28 +08:00
Jiang Jiang Jian
c1f50a8eae Merge branch 'bugfix/station_ic_pmf_state_v5.1' into 'release/v5.1'
fix(wifi): Disable IC_PMF variable properly when station disconnects and always clear keys in tx_cb (Backport v5.1)

See merge request espressif/esp-idf!31633
2024-06-26 10:44:18 +08:00
Jiang Jiang Jian
55cfe6ee21 Merge branch 'bugfix/l2cap_use_wrong_handle_v5.1' into 'release/v5.1'
fix(bt/bluedroid):  Fixed the issue of using the wrong handle to handle the BTA_JV_L2CAP_READ_EVT event(v5.1)

See merge request espressif/esp-idf!31280
2024-06-26 10:41:21 +08:00
Jiang Jiang Jian
e649fcf81c Merge branch 'feature/esp32c6_pu8m_in_sleep_support_v5.1' into 'release/v5.1'
feat(sleep): support 8m force pu in sleep for esp32c6 & esp32h2 (v5.1)

See merge request espressif/esp-idf!31001
2024-06-26 10:40:32 +08:00
Jiang Jiang Jian
6f1ff29851 Merge branch 'fix/add_integrity_check_when_select_temporary_key_v5.1' into 'release/v5.1'
fix(bt): add integrity check when temporary link key selected(backport v5.1)

See merge request espressif/esp-idf!31700
2024-06-26 10:37:53 +08:00
Guillaume Souchere
42447ccf12 fix(heap): Tracing of all heap_caps API
This commit fixes the missing tracing on all
heap_caps_xx_prefer and heap_caps_xx_aligned
functions.
2024-06-25 11:59:24 +02:00
Sarvesh Bodakhe
a2db5d852e fix(wifi): Fix station PMF issue
Fix issue of station PMF not getting reset when disconnecing from PMF connection
2024-06-25 14:13:21 +05:30
Marius Vikhammer
14e01c031f Merge branch 'fix/fsync-call-propagation-to-secondary-console_v5.1' into 'release/v5.1'
fix(console): Fsync not propagated to secondary output (backport v5.1)

See merge request espressif/esp-idf!30263
2024-06-25 16:07:38 +08:00
Island
cf072a4fe3 Merge branch 'feat/optimize_bt_porting_layer_0619_v5.1' into 'release/v5.1'
Feat/optimize bt porting layer 0619 (v5.1)

See merge request espressif/esp-idf!31674
2024-06-25 14:18:32 +08:00
morris
a0262a2aa6 Merge branch 'fix/lcd_build_error_in_cpp_v5.1' into 'release/v5.1'
fix(lcd): build errors with deprecated lcd types in cpp (v5.1)

See merge request espressif/esp-idf!31678
2024-06-25 12:39:10 +08:00
Jiang Jiang Jian
187be854ea Merge branch 'fix/trigger_system_reset_in_brownout_isr_v5.1' into 'release/v5.1'
change(esp_system): trigger digital system reset in brownout isr (v5.1)

See merge request espressif/esp-idf!31685
2024-06-25 11:50:13 +08:00
Rahul Tank
0edef52a67 fix(nimble): Pass the correct cb arg during reconnection attempt 2024-06-25 08:32:14 +05:30
Sudeep Mohanty
0a0327dce8 fix(ulp-risc-v): Fixed RTC I2C multi-byte read/write issue for ULP RISC-V
This commit fixes an issue where multi-byte reads and writes over the
RTC I2C peripheral got stuck on the esp32s2 and esp32s3.

Closes https://github.com/espressif/esp-idf/issues/12235
2024-06-24 17:11:02 +02:00
chenjianhua
3730b0a9af feat(bt/bluedroid): Add definition for the reason of BLE authentication failure 2024-06-24 17:59:01 +08:00
chenjianhua
5eed961113 fix(bt/bluedroid): Fixed BLE security vulnerability when using fixed IRK 2024-06-24 17:59:01 +08:00
linruihao
1f57c2b91a fix(bt): Overwrite a function in esp32c3 eco7 rom 2024-06-24 17:59:01 +08:00
chenjianhua
40b9ec3860 fix(bt): Update bt lib for ESP32-C3 and ESP32-S3(0738a61)
- Fixed BT BB interrupt allocation
- Refactor the prefix of assert print
- Fixed HCI LE set privacy mode command handle
2024-06-24 17:59:01 +08:00
chenjianhua
ae29703fb4 fix(bt): Update bt lib for ESP32-C3 and ESP32-S3(eca46a0)
- Fixed adv data buffer free after restart adv
- Fixed BLE interrupt allocation using esp API
2024-06-24 17:59:01 +08:00
gongyantao
6cd05b082a fix(bt): add integrity check when temporary link key selected 2024-06-24 17:50:35 +08:00
morris
97de085b35 Merge branch 'bugfix/esp32h2_iomux_retention_v5.1' into 'release/v5.1'
fix(gpio): fix IO 21-27 IOMUX registers not being backed up on ESP32H2 (v5.1)

See merge request espressif/esp-idf!31192
2024-06-24 17:33:55 +08:00
Jiang Jiang Jian
accaf2bd51 Merge branch 'bugfix/wpa3_sta_mem_leak_v5.1' into 'release/v5.1'
Fix a memory leak that occurs when the SAE connection is interrupted (Backport v5.1)

See merge request espressif/esp-idf!31661
2024-06-24 14:20:05 +08:00
morris
450846057c fix(lcd): build errors with deprecated lcd types in cpp
Closes https://github.com/espressif/esp-idf/issues/14029
2024-06-24 14:06:20 +08:00
wuzhenghui
8e5e95e452
change(esp_hw_support): update xtal_freq after assume to avoid mass print in DFS 2024-06-24 13:38:47 +08:00
wuzhenghui
563683f471
change(esp_system): trigger digital system reset in brownout isr 2024-06-24 12:07:30 +08:00
cjin
066e04a9a4 fix(ble): added c6 config check for ble light sleep 2024-06-24 11:31:40 +08:00
zwl
5fe68c206e feat(bluetooth/controller): adjust bt/porting code structure and delete redundant code 2024-06-24 11:31:40 +08:00
Rahul Tank
517064d0b3 Merge branch 'bugfix/free_memory_before_reattempt_v5.1' into 'release/v5.1'
fix(nimble): Clear resource before re-starting advertising(v5.1)

See merge request espressif/esp-idf!31627
2024-06-24 10:45:17 +08:00
Jiang Jiang Jian
44ed05a546 Merge branch 'bugfix/wifi-6570_v5.1' into 'release/v5.1'
backport v5.1: fix the issue of wifipwr losing its clock during sleep on the esp32c6 eco1

See merge request espressif/esp-idf!31616
2024-06-24 09:58:30 +08:00
Shyamal Khachane
233a57d4f5 fix(esp_wifi): Fix a memory leak that occurs when the SAE connection is interrupted
1. Free temporary data used by SAE before memsetting the same
2. Drop any received auth response that uses a different algorithm than the one currently in use
2024-06-21 14:47:30 +05:30
Marius Vikhammer
bd2b9390ef Merge branch 'refactor/cpu_interrupt_table_v5.1' into 'release/v5.1'
fix(esp_hw_support): refactor and clear reserved interrupts that are unused or not applicable anymore (backport v5.1)

See merge request espressif/esp-idf!31259
2024-06-21 08:59:05 +08:00
Jiang Jiang Jian
d326c1bbf4 Merge branch 'fix/use_rom_crc_check_in_cpu_retention_v5.1' into 'release/v5.1'
fix(ci): use esp_rom_crc32_le in cpu retention frame check (v5.1)

See merge request espressif/esp-idf!31591
2024-06-20 13:51:26 +08:00
Rahul Tank
b482d04fb6 fix(nimble): Clear resource before re-starting advertising 2024-06-20 11:02:46 +05:30
Island
344e9ad593 Merge branch 'feat/put_bt_interface_code_to_rom_v5.1' into 'release/v5.1'
Feat/put bt interface code to rom (v5.1)

See merge request espressif/esp-idf!31551
2024-06-20 10:38:02 +08:00
Li Shuai
56526ffefa fix(wifi): fix the issue of wifipwr losing its clock during sleep on the esp32c6 eco1 2024-06-19 19:35:27 +08:00
LonerDan
cd7b8f2db1 fix(ulp-risc-v): Set RTC GPIO output mode in the correct register for ULP RISC-V
According to the ESP32-S2/S3 TRM, the output pin's mode is set in the RTC_GPIO_PINn_REG
by programming the RTC_GPIO_PINn_PAD_DRIVER bit. The current ULP RISC-V RTCIO driver
however, incorrectly programs the RTC_IO_TOUCH_PADn_REG register field RTC_IO_TOUCH_PADn_DRV.
This commit fixes the bug.
2024-06-19 09:02:23 +02:00
wuzhenghui
7ecc6ac029
fix(ci): use esp_rom_crc32_le in sleep retention frame check 2024-06-19 14:07:03 +08:00
xiongweichao
b63bcef8e0 fix(bt/bluedroid): Fixed crash after bluedroid deinit
hci_host_env.downstream_data_ready is set to NULL during bluedroid deinit,
causing the controller to use a null pointer when calling callback.
2024-06-17 19:03:47 +08:00
xiongweichao
69729d4639 fix(bt/bluedroid): Fixed deadlock caused by not unlocking 2024-06-17 19:03:05 +08:00
xiongweichao
3eb54ad307 fix(bt/bluedroid): Fixed L2CAP using wrong handle
- Fixed the issue of using the wrong handle to handle the BTA_JV_L2CAP_READ_EVT event.
- Closes https://github.com/espressif/esp-idf/issues/13847
2024-06-17 19:03:05 +08:00
zwl
b01930a5c0 feat(bluetooth/controller): update controller api name on ESP32-C2 2024-06-17 16:43:32 +08:00
zwl
7019204f20 feat(bluetooth/controller): update controller api name on ESP32-C6 and ESP32-H2 2024-06-17 16:43:32 +08:00
Li Shuai
f5f020f6e7
fix(esp_hw_support): use iterator for regdma_link_stats to save stack consume
Closes https://github.com/espressif/esp-idf/issues/13288
2024-06-17 15:59:07 +08:00
Rahul Tank
58a9d0e27b Merge branch 'bugfix/fix_no_mem_coex_issue_v5.1' into 'release/v5.1'
fix(nimble): Added change to handle extra memory for ext adv reattempt (v5.1)

See merge request espressif/esp-idf!31502
2024-06-14 20:04:19 +08:00
Mohammad-Mohsen Aseman-Manzar
098a804f73 Fix stack overflow bug for examples/bluetooth/esp_hid_device when using esp32s3 with nimble
Related to 60354c39a9
2024-06-14 14:27:41 +05:30
Rahul Tank
d5c4973bd3 fix(nimble): Added change to handle extra memory for ext adv reattempt 2024-06-14 12:05:09 +05:30
Abhik Roy
4e2e2b2c53 fix(lwip): Fixed compilation error referencing undefined POSIX interface API
Closes https://github.com/espressif/esp-idf/issues/13577
2024-06-14 13:13:39 +10:00
Island
fe475fe87a Merge branch 'bugfix/fix_ble_evt_time_v5.1' into 'release/v5.1'
fix(ble/controller): Update esp32 bt-lib (1e63e23) (v5.1)

See merge request espressif/esp-idf!31483
2024-06-14 10:43:25 +08:00
Shu Chen
b0bece2812 Merge branch 'backport/shortened_uart_read_bytes_blocking_51' into 'release/v5.1'
fix(uart): remove unnecessary wait when sending message to ring buffer(backport5.1)

See merge request espressif/esp-idf!31382
2024-06-14 09:36:20 +08:00
linruihao
18cac360b9 fix(bt/controller): Fixed assert issue caused by DPORT access 2024-06-13 17:36:05 +08:00
zhanghaipeng
ae9a2fde60 fix(ble/controller): Update esp32 bt-lib (1e63e23)
- Optimized GATT write and notify throughput on ESP32
- Fixed BLE connect timeout after using DTM on ESP32
- Added ke memory debug tools on ESP32
- Fixed memory leak issue when BLE SCAN and other event coexist on ESP32
2024-06-13 16:41:06 +08:00
Island
e3c4c76b17 Merge branch 'bugfix/fix_ble_pktlen_change_v5.1' into 'release/v5.1'
Bugfix/fix ble pktlen change (v5.1)

See merge request espressif/esp-idf!31251
2024-06-13 11:03:41 +08:00
Jiang Jiang Jian
bfb7936851 Merge branch 'bugfix/fix_lp_half_world_access_v5.1' into 'release/v5.1'
fix(hal): fix LP timer / PMU LL half word access (v5.1)

See merge request espressif/esp-idf!31388
2024-06-12 17:04:58 +08:00
wuzhenghui
4c78de50f4
fix(hal): fix PMU LL half word and byte access 2024-06-07 14:18:24 +08:00
wuzhenghui
4d6793a44a
fix(hal): fix LP timer LL half word access 2024-06-07 14:18:22 +08:00
zwx
38bbc918c4 fix(uart): remove unnecessary wait when sending message to ring buffer 2024-06-07 11:45:40 +08:00
zhangyanjiao
4844b20f4c fix(wifi): do not send null data when scan start/done for mesh
Closes https://github.com/espressif/esp-idf/issues/13786
2024-06-06 19:10:28 +08:00
Shu Chen
a08c207e7f Merge branch 'backport/openthread_changes_51' into 'release/v5.1'
Backport some openthread related features (Backport v5.1)

See merge request espressif/esp-idf!31065
2024-06-06 16:56:27 +08:00
zwx
ff7a97b7f1 feat(openthread): update BR lib 2024-06-06 14:18:57 +08:00
Rahul Tank
d2f8b753fc Merge branch 'bugfix/ble_gap_unpair_error_code_v5.1' into 'release/v5.1'
fix(nimble): Added return code in ble_gap_unpair error logs (v5.1)

See merge request espressif/esp-idf!31309
2024-06-06 12:54:08 +08:00
Jiang Jiang Jian
7f1a2c3cc1 Merge branch 'fix/assert_in_bt_controller_v5.1' into 'release/v5.1'
fix(bt): fix some issues in bluetooth controller(backport v5.1)

See merge request espressif/esp-idf!31323
2024-06-06 12:02:43 +08:00
David Čermák
b2eeb41888 Merge branch 'update_mqtt_v5.1' into 'release/v5.1'
Update Mqtt client (v5.1)

See merge request espressif/esp-idf!30274
2024-06-05 15:47:37 +08:00
Xu Si Yu
f27797c49a fix(openthread): remove the empty task for openthread tasklets 2024-06-05 15:30:52 +08:00
zwx
ed00f6d94e fix(802.15.4): fixed ieee802154 will sleep when only pm enabled 2024-06-05 15:27:36 +08:00
zwx
e95771bde8 feat(802154): log buffer full message in debug mode only 2024-06-05 15:20:30 +08:00
zwx
ff60eefe0a fix(802.15.4): fix a risk for receive_at and ignore bit8 for the frame length 2024-06-05 15:20:30 +08:00
Xu Si Yu
5abe7425d9 feat(openthread): update openthread br lib 2024-06-05 15:20:30 +08:00
zwx
f87f5a3f22 feat(openthread): remove the range for some configurations 2024-06-05 15:20:30 +08:00
Abhinav Kudnar
5694eb354f fix(nimble): Added return code in ble_gap_unpair error logs 2024-06-05 12:10:41 +05:30
Island
76e28986ba Merge branch 'fix/idfgh-12762_v5.1' into 'release/v5.1'
fix(ble_mesh):Fixed a compatibility issue with the provisioner (v5.1)

See merge request espressif/esp-idf!30731
2024-06-05 10:44:02 +08:00
Island
445811d412 Merge branch 'optimize/bt_make_alarm_num_configurable_v5.1' into 'release/v5.1'
feat(ble_mesh): Make alarm number configurable (v5.1)

See merge request espressif/esp-idf!30789
2024-06-05 10:43:49 +08:00
gongyantao
2a98fba7fe fix(bt): fix some issues in bluetooth controller
1: fix return incorrect link key with hci command rd_stored_link_key
2: fix the assert triggered during APB TX
3: fix role switch LMP collision bug
2024-06-05 09:11:57 +08:00
Wang Meng Yang
b36c954052 Merge branch 'feat/set_get_lpclk_src_v5.1' into 'release/v5.1'
feat(ble): Added API to get low power clock source(v5.1)

See merge request espressif/esp-idf!30108
2024-06-04 19:36:22 +08:00
Wang Meng Yang
50599a62f5 Merge branch 'bugfix/spp_crash_after_deint_v5.1' into 'release/v5.1'
fix(bt/bluedroid): Fixed SPP crash due to the connection not being disconnected before esp_spp_deinit was called(v5.1)

See merge request espressif/esp-idf!30081
2024-06-04 19:34:40 +08:00
luoxu
23c712ed13 fix(ble_mesh):Fixed a compatibility issue with the provisioner
Closes https://github.com/espressif/esp-idf/issues/13741
2024-06-04 16:50:12 +08:00
wangjialiang
410a02acf0 feat(ble_mesh): Make alarm number configurable 2024-06-04 16:36:10 +08:00
Euripedes Rocha
5814e2a5d5 change(mqtt): Update esp-mqtt submodule
git log --oneline e6afdb4025fe018ae0add44e3c45249ea1974774..aa6f889fb4f6f743b3a550aa587713aabbdca1fc

Detailed description of the changes:
* fix: regard reason codes greater than 0x80 as failures.
  - See merge request espressif/esp-mqtt!205
  - See commit https://github.com/espressif/esp-mqtt/commit/e7b9aa5
* PR: Return on allocation failure
  - See merge request espressif/esp-mqtt!204
  - set last_retransmit to now when first connected (espressif/esp-mqtt@c06f154)
  - add return to faile_message, avoid segment fault (espressif/esp-mqtt@37478a9)
* Minor warning of unused variable
  - See merge request espressif/esp-mqtt!203
  - fix: Minor warning of unused variable (espressif/esp-mqtt@726e5f2)
* Cover the case for SOC without MAC address
  - See merge request espressif/esp-mqtt!202
  - fix: Cover the case for SOC without MAC address (espressif/esp-mqtt@5e3abd4)
* Make state and size atomic
  - See merge request espressif/esp-mqtt!199
  - feat: Make state and size atomic (espressif/esp-mqtt@891380b)
* fix: Adjust the log level on few messages to avoid cluthering the logs
  - See merge request espressif/esp-mqtt!201
  - See commit https://github.com/espressif/esp-mqtt/commit/5c17fc4
* fix: Make automatic client_id soc dependent
  - See merge request espressif/esp-mqtt!200
  - See commit https://github.com/espressif/esp-mqtt/commit/657a2ae
* Clarify data that users need to take care of lifetime.
  - See merge request espressif/esp-mqtt!197
  - docs: Clarify data that users need to take care of lifetime. (espressif/esp-mqtt@371f594)
* Update mqtt_client.h
  - See merge request espressif/esp-mqtt!198
  - add const char * to esp_mqtt_client_subscribe() generic macros (espressif/esp-mqtt@acdb66d)
* client: Report failure on timeout in mid-message timeout (GitHub PR)
  - See merge request espressif/esp-mqtt!165
  - Merges https://github.com/espressif/esp-mqtt/pull/232
  - client: Report failure on timeout in mid-message timeout (espressif/esp-mqtt@ddde502)
* fix: Move buffer initialization to set config
  - See merge request espressif/esp-mqtt!194
  - Closes https://github.com/espressif/esp-mqtt/issues/267
  - See commit https://github.com/espressif/esp-mqtt/commit/ea0df31
* Fix check for message creation when processing publish
  - See merge request espressif/esp-mqtt!195
  - fix: Deliver publish verifies if message was created only for QoS >0
        (espressif/esp-mqtt@6780056)
2024-06-04 15:13:54 +08:00
Rahul Tank
6ab57bbcc4 fix(nimble): Explicitly NULL assign adv data 2024-06-04 12:16:12 +05:30
Island
a9d29b3281 Merge branch 'feat/add_hci_log_record_for_nimble_v5.1' into 'release/v5.1'
feat(bt/nimble): support hci log for nimble (backport v5.1)

See merge request espressif/esp-idf!31213
2024-06-04 14:19:00 +08:00
Jiang Jiang Jian
176f719eb3 Merge branch 'bugfix/nan_datapath_issues_v5.1' into 'release/v5.1'
Fix issues in NAN datapath establishment (Backport v5.1)

See merge request espressif/esp-idf!30852
2024-06-04 12:05:58 +08:00
Jiang Jiang Jian
85fd3f397d Merge branch 'fix/sntp_getreachability_v5.1' into 'release/v5.1'
fix(netif): Add missing SNTP get-reachablitiy API (v5.1)

See merge request espressif/esp-idf!30033
2024-06-04 11:37:05 +08:00
Jiang Jiang Jian
0196f081e5 Merge branch 'bugfix/log_wrap_around_cache_generation_counter_v5.1' into 'release/v5.1'
fix(log): Fix wrap-around of cache generation counter (v5.1)

See merge request espressif/esp-idf!29939
2024-06-04 11:31:12 +08:00
Jiang Jiang Jian
7b5a5ea50e Merge branch 'fix/wl_fatfsgen_safe_mode_v5.1' into 'release/v5.1'
fix(storage/fatfs): make wl_fatfsgen.py safe mode aware (v5.1)

See merge request espressif/esp-idf!29729
2024-06-04 11:30:50 +08:00
Island
d456fdf322 Merge branch 'bugfix/esp32c2_fixed_some_ble_issues_master_v5.1' into 'release/v5.1'
Bugfix/esp32c2 fixed some ble issues master (v5.1)

See merge request espressif/esp-idf!31234
2024-06-04 10:22:07 +08:00
Shyamal Khachane
e6a5be3fda fix(esp_wifi): Fix issues in NAN datapath establishment
1. Resolve indefinite waiting while stopping NAN
2. Increase NDP response timeout to 8 DW's
3. Set NAN discovery beacon interval to 100 TU's as per Section 9.2
   of Wi-Fi Aware Specification v4.0
2024-06-03 18:23:30 +05:30
Jiang Jiang Jian
7ade2ae6e5 Merge branch 'bugfix/fix_dhcp_pool_issue_on_dhcp_server_v5.1' into 'release/v5.1'
fix(lwip): fixed the dhcp pool error on dhcp server (v5.1)

See merge request espressif/esp-idf!31266
2024-06-03 19:47:35 +08:00
Jiang Jiang Jian
de580a0e44 Merge branch 'bugfix/fix_some_wifi_bugs_v5.1' into 'release/v5.1'
fix(wifi): fixed sniffer and espnow issue (v5.1)

See merge request espressif/esp-idf!31214
2024-06-03 19:38:07 +08:00
morris
d47e88776e Merge branch 'feature/usb_host_hub_support_collective_backport_v5.1' into 'release/v5.1'
refactor(usb/host): Prerequisite Refactoring For Hub Collective backport (v5.1)

See merge request espressif/esp-idf!29447
2024-06-03 16:10:30 +08:00
zhangyanjiao
5d00019475 fix(lwip): fixed the dhcp pool error on dhcp server 2024-06-03 11:34:15 +08:00
Omar Chebib
16d957e7aa fix(esp_hw_support): clear reserved interrupts that are not applicable for each target 2024-06-03 11:09:45 +08:00
Omar Chebib
1439815d57 refactor(esp_hw_support): changed reserved interrupt functions to be now defined per SoC 2024-06-03 11:05:25 +08:00
zhangyanjiao
e81e61f86f docs(wifi): update the docmentation for mesh API 2024-06-03 10:50:27 +08:00
zhangyanjiao
64d34d84be fix(wifi): fixed sniffer and espnow issue
1. fix(wifi): fixed sniffer dump fcs error packets fail

Closes https://github.com/espressif/esp-idf/issues/10777

2. fix(wifi): fixed the espnow priv parameter get error

Closes https://github.com/espressif/esp-idf/issues/13693
2024-06-03 10:49:23 +08:00
Jiang Jiang Jian
8d296506b5 Merge branch 'contrib/github_pr_13022_v5.1' into 'release/v5.1'
fix(freertos): Fix broken portable macro portTRY_ENTER_CRITICAL_SAFE() (v5.1)

See merge request espressif/esp-idf!30317
2024-06-03 10:27:00 +08:00
xiongweichao
0648347994 feat(ble): Added API to get low power clock source 2024-06-03 10:25:29 +08:00
Jiang Jiang Jian
f209f008f3 Merge branch 'bugfix/esp_timer_test_fail_v5.1' into 'release/v5.1'
fix(esp_timer): Force test to go light sleep ignoring ESP_ERR_SLEEP_REJECT (v5.1)

See merge request espressif/esp-idf!29872
2024-06-03 10:24:42 +08:00
xiongweichao
5a8f272660 fix(bt/bluedroid): Fix SPP crash after deinit
- The disconnection event comes up after spp disable is completed, so a null pointer is used.
2024-06-03 10:24:00 +08:00
Jiang Jiang Jian
67ee7eeaae Merge branch 'bugfix/pm-108_v5.1' into 'release/v5.1'
backport v5.1: fix the issue of tg0 watchdog reset caused by wifi module retention

See merge request espressif/esp-idf!31013
2024-06-03 10:19:41 +08:00
zhiweijian
42aa1be457 feat(bt/nimble): support hci log for nimble 2024-06-03 09:48:51 +08:00
zhanghaipeng
9d5f956e87 fix(ble/bluedroid): Optimize BLE stack connect callback name 2024-06-02 19:25:12 +08:00
zhanghaipeng
2f14db087d fix(ble/bluedroid): Fixed BLE no data length change event 2024-06-02 19:23:56 +08:00
Darian Leung
29ae4e7a4f
refactor(usb/usbh): Update USBH device creation and enumeration handling
This commit updates how the USBH handles device creation and enumeration so that
upper layers (such as the Hub driver) can use the USBH API for enumeration instead
of calling the HCD.

USBH Updates:

USBH now creates unenumerated devices set to address 0 with no device/config
descriptor. A newly created device can be opened and communicated with immediately
(using control transfers). This allows the Hub driver to call the USBH instead of
the HCD. Summary of USBH changes:

- Added new APIs to add/remove a device. Devices are now created as unenumerated
and can be immediately opened and communicated with.
- Added new APIs to enumerate a device (see 'usbh_dev_set_...()' functions). Device
must be locked (see 'usbh_dev_enum_lock()') before enumeration functions can be called.
- Added UID for each device. This allows the particular USBH without needing to
use the device's handle (which implies opening the device).

Hub Driver Updates:

Hub driver now calls the USBH for enumeration. Summary of USBH changes:

- Replace all 'hcd_pipe_...()' calls with 'usbh_dev_...()' calls
- Refactored port event handling to fit with new USBH API
- Updated to use UID to uniquely identify devices without opening them

USB Host Updates:

- Reroute USBH control transfers to clients and hub driver

Note: Backported ESP_ERR_NOT_ALLOWED macro
2024-06-02 00:29:36 +08:00
Darian Leung
15121a3ef6
refactor(usb/hub): Update Hub driver port request logic 2024-06-02 00:29:35 +08:00
Darian Leung
144463be5c
refactor(usb/hcd): Allow port resets with allocated pipes
This commit updates the HCD API to allow port resets to occur even if pipes
are allocated. The pipes cannot be active and the port reset will simply
restore the pipes (by reinitializing their channel registers) following the
reset.

Changes:

- Allow port resets while channels are allocated
- Remove pipe persistance API 'hcd_pipe_set_persist_reset()'
2024-06-02 00:29:35 +08:00
Darian Leung
8053174dd4
refactor(usb/usbh): Rename device pool functions and ref_count
This commit renames the following APIs and variables in the USBH:

- Rename the prefix of device pool functions from 'usbh_dev_...' to
  'usbh_devs_...'.
- Rename 'ref_count' to 'open_count'. This variable tracks the number of times
  a device has been opened.
2024-06-02 00:29:34 +08:00
Darian Leung
5f0a659e73
refactor(usb/host): Refactor USBH function grouping
This commit rearranges the USBH functions into new groupings to provide a
clearer abstraction. This is in preparation for refactoring/removing the Hub
related functions in the USBH API. This commit DOES NOT MAKE ANY BEHAVIORAL
CHANGES to the code.

Functions are now grouped into...

- USBH Processing: Functions dealing with overall USBH processing
- Device Pool: Functions that add/remove/open/close devices from the internal
               device pool
- Device: Functions that pertain to setting/getting a particular device
- Endpoints: Functions that pertain to a particular endpoint
- Transfer: Functions that pertain to sending transfers
2024-06-02 00:29:34 +08:00
Roman Leonov
8479302503
refactor(hcd_dwc): Added mps request from hcd_dwc 2024-06-02 00:29:34 +08:00
Darian Leung
0b77a7289c
refactor(usb/host): Simplify USBH and Hub interaction
Previously, on a device disconnection, the USBH and Hub would the require the
following 2-way interaction:

- Hub -> usbh_hub_pass_event() -> USBH to indicate a port error
- USBH -> usbh_hub_req_cb_t -> Hub to request port recovery after the device
has been freed.

The 2-way interaction has been simplified:

- USBH now nofities upper layers of devices being freed via the
USBH_EVENT_DEV_FREE event
- Hub now handles port recovery only after a device has been freed
2024-06-02 00:29:33 +08:00
Roman Leonov
cfa48efc6a
refactor(usb_host): Renamed hub_driver_state to root_port_state 2024-06-02 00:29:33 +08:00
Tomas Rezucha
4270a4edce
feat(usb/host): Add missing sync types from USB specification 2024-06-02 00:29:33 +08:00
Roman Leonov
54d984644a
feat(usb_host): Added KConfig parameter for External HUB support enable 2024-06-02 00:29:32 +08:00
Roman Leonov
01761f4c99
refactor(usb_host): Added chapter11 header, refactor chapter9 header 2024-06-02 00:29:32 +08:00
Darian Leung
78515b3fef
refactor(usb): Remove USBH control transfer callback
This commit merges the USBH control transfer callback into the USBH event
callback. This simplifies the code as the USBH now uses a single callback.
2024-06-02 00:29:32 +08:00
Darian Leung
42076af4c4
refactor(usb): Update USBH event callback arguments
This commit does the following:

- Updates the USBH event callback arguments to now pass a usbh_event_data_t
which can contain different data for each event
- Updated event names
2024-06-02 00:29:31 +08:00
Rahul Tank
3f9ab2d6a6 Merge branch 'bugfix/free_reattempt_adv_data_v5.1' into 'release/v5.1'
fix(nimble): Added change to free memory in case of failure (v5.1)

See merge request espressif/esp-idf!31166
2024-06-01 18:59:49 +08:00
morris
8318a2ad44 Merge branch 'feature/usb_new_phy_driver_collective_backport_v5.1' into 'release/v5.1'
refactor(usb/host): PHY driver preqrequisite refacotring collective backport (v5.1)

See merge request espressif/esp-idf!29791
2024-05-31 22:30:32 +08:00
zwl
f590e07eb1 ble: fixed ble some issues on esp32c6 and esp32h2 2024-05-31 17:13:44 +08:00
zwl
ffc8485670 ble: fixed ble some issues on esp32c2 2024-05-31 17:13:44 +08:00
Rahul Tank
3b5c0b7d73 fix(nimble): Added change to free memory in case of failure 2024-05-31 12:09:32 +05:30
Jiang Jiang Jian
08aef5cd64 Merge branch 'bugfix/wps_scan_log_flood_v5.1' into 'release/v5.1'
fix(wpa_supplicant): Suppress RSN IE print to Verbose level (Backport v5.1)

See merge request espressif/esp-idf!31157
2024-05-31 13:47:41 +08:00
Jiang Jiang Jian
6535d0745b Merge branch 'bugfix/ftm_fix_wrong_compensation_v5.1' into 'release/v5.1'
Fix issue in selecting FTM compensation with external AP (Backport v5.1)

See merge request espressif/esp-idf!30740
2024-05-31 13:37:05 +08:00
Island
a7a612c9fc Merge branch 'bugfix/bleqabr24-549_v5.1' into 'release/v5.1'
fix(ble_mesh): fix issues in mesh deinit_v5.1

See merge request espressif/esp-idf!30542
2024-05-31 11:13:53 +08:00
luoxu
cd5f3bf146 fix(ble_mesh): fix issues in mesh deinit 2024-05-30 20:40:55 +08:00
Jiang Jiang Jian
cfe861582c Merge branch 'bugfix/stop_tg_wdt_in_xpd_xtal_lightsleep_v5.1' into 'release/v5.1'
fix(esp_hw_support): stop tg wdt in xpd xtal lightsleep (v5.1)

See merge request espressif/esp-idf!31140
2024-05-30 20:00:24 +08:00
Nachiket Kukade
3e82811fec fix(esp_wifi): Fix issue in selecting FTM compensation with external AP 2024-05-30 19:42:24 +08:00
Li Shuai
493b757a53 fix(wifi): fixed the issue of tg0 watchdog reset caused by wifi module retention 2024-05-30 17:20:03 +08:00
Song Ruo Jing
78ea2c19e7 fix(gpio): fix IO 21-27 IOMUX registers not being backed up on ESP32H2 2024-05-30 15:08:09 +08:00
David Cermak
cea1893729 fix(esp_netif): Prevent running esp_netif_sntp_init() multiple times
Closes https://github.com/espressif/esp-idf/issues/12854
2024-05-29 17:22:29 +08:00
David Cermak
2f87894e58 fix(netif): Add missing SNTP get-reachablitiy API 2024-05-29 17:22:29 +08:00
Rahul Tank
ebe0b3f40c Merge branch 'feature/ble_resolve_adv_data_v5.1' into 'release/v5.1'
feat(nimble): Added API to get resolve ADV data (v5.1)

See merge request espressif/esp-idf!30952
2024-05-29 13:51:39 +08:00
Nachiket Kukade
1614f9e3b5 fix(wpa_supplicant): Suppress RSN IE print to Verbose level 2024-05-29 11:09:57 +05:30
wuzhenghui
725381290e
fix(esp_hw_support/sleep): stop TG0/TG1 watchdog if XTAL not power down in lightsleep 2024-05-28 19:39:19 +08:00