-
Notifications
You must be signed in to change notification settings - Fork 7.6k
feat(wifi): Add support for 2.4GHz and 5GHz band switching #11045
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
Conversation
👋 Hello me-no-dev, we appreciate your contribution to this project! 📘 Please review the project's Contributions Guide for key guidelines on code, documentation, testing, and more. 🖊️ Please also make sure you have read and signed the Contributor License Agreement for this project. Click to see more instructions ...
Review and merge process you can expect ...
|
Test Results 76 files 76 suites 13m 55s ⏱️ Results for commit c5db444. ♻️ This comment has been updated with latest results. |
Memory usage test (comparing PR against master branch)The table below shows the summary of memory usage change (decrease - increase) in bytes and percentage for each target.
Click to expand the detailed deltas report [usage change in BYTES]
|
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.
LGTM
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.
LGTM
* feat(wifi): Add support for 2.4GHz and 5GHz band switching * ci(pre-commit): Apply automatic fixes --------- Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
This pull request includes changes to the WiFi library to add support for scanning WiFi networks in both 2.4GHz and 5GHz bands. The most important changes include updating the example sketch to demonstrate scanning for both bands, adding new methods to control WiFi band modes, and ensuring compatibility with chips that support 5GHz WiFi.
Enhancements to WiFi scanning:
libraries/WiFi/examples/WiFiScan/WiFiScan.ino
: Updated the example sketch to perform separate scans for 2.4GHz and 5GHz bands if supported by the chip. [1] [2]New methods for WiFi band control:
libraries/WiFi/src/WiFiGeneric.cpp
: Added methodssetBandMode
,getBandMode
, andgetBand
to control and retrieve the current WiFi band mode and active band. These methods ensure compatibility with chips supporting 5GHz WiFi.libraries/WiFi/src/WiFiGeneric.h
: Declared the new methodssetBandMode
,getBandMode
, andgetBand
in theWiFiGenericClass
.Initialization improvements:
libraries/WiFi/src/WiFiGeneric.cpp
: Set the default band mode to AUTO during WiFi initialization if the chip supports 5GHz WiFi.