Commit Graph

32418 Commits

Author SHA1 Message Date
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
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
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
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
wuzhenghui
36756bfd22
docs(lowpower): updating low-power statistics in Wi-Fi scenarios 2024-05-31 10:28:36 +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
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