-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
xtensa/esp32: use common Espressif wireless source #15853
base: master
Are you sure you want to change the base?
xtensa/esp32: use common Espressif wireless source #15853
Conversation
Update the wireless symbols from ESP32_* to ESPRESSIF_* for using common layer. Remove ESP32 specific WiFi files and edit build system to use common layer.
[Experimental Bot, please feedback here] Yes, this PR appears to meet the NuttX requirements, although some minor improvements could be made. Here's a breakdown: Strengths:
Areas for Improvement:
Recommendation: The PR is close to meeting the requirements. Adding the missing issue references, including actual testing logs (or links to them), and clarifying the hardware and build impact will strengthen the PR and make it easier for reviewers to assess. |
default n | ||
depends on ARCH_CHIP_ESP32 | ||
---help--- | ||
Enable optimization of WLAN memory |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please give some hints about that are these optimization. Why are they important? And why did they are enable by default?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's actually disabled by default.
Those are used for dynamic allocation of the buffers used on the WiFi. Seems to be a legacy thing from ESP32.
In fact, this will be probably removed soon as I'm testing an upgrade on esp_wlan.c
to use IOBs.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This PR is the second part of the WiFi common layer port for Espressif Xtensa devices.
ESP32S3 has been recently merged here #15816.
Summary
This PR modifies ESP32 to use WiFi source code from the common layer, which is already used by ESP32S2 and ESP32S3. KConfig prefixes such as
ESP32_*
are replaced withESPRESSIF_*
(CONFIG_ESP32_WIFI
->CONFIG_ESPRESSIF_WIFI
). This is applied through arch/ and also board/.BLE symbols are altered as well, since they share some common wireless implementations. However, source code for BLE has not been merged into the common layer.
Impact
arch/xtensa/src/esp32
and merged intoarch/xtensa/src/common/espressif
.Testing
Internal CI testing +
sta_softap
,wifi
,ble
,blewifi
defconfigs (among others) have been tested and are performing as expected.