Commit Graph

32431 Commits

Author SHA1 Message Date
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
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
Rahul Tank
d3d5a4ef53 Merge branch 'bugfix/explict_free_adv_data_v5.1' into 'release/v5.1'
fix(nimble): Explicitly NULL assign adv data (v5.1)

See merge request espressif/esp-idf!31290
2024-06-04 19:32:19 +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
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
9eea1706bf Merge branch 'doc/update_esp32c6_power_statics_5.1' into 'release/v5.1'
docs(lowpower): updating low-power statistics in Wi-Fi scenarios (v5.1)

See merge request espressif/esp-idf!31211
2024-06-03 10:38:11 +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
Darian Leung
f0b26289d7
docs(usb): Add USBH maintainer notes 2024-06-02 00:29:36 +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