Skip to content
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

drivers: wifi: esp32: connect to highest signal AP #84490

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

EricNRS
Copy link
Contributor

@EricNRS EricNRS commented Jan 24, 2025

The station-mode channel scan method is currently set to WIFI_FAST_SCAN which ignores the signal strength and connects to the first channel found which may result in poor WiFi bandwidth.

Change the scan mode to scan all channels and connect to the channel with the highest RSSI.

Fixes #84488

sylvioalves
sylvioalves previously approved these changes Jan 24, 2025
@wmrsouza
Copy link
Collaborator

wmrsouza commented Jan 24, 2025

Since WIFI_FAST_SCAN is also an option for wifi_config.sta.scan_method, would you mind providing a Kconfig parameter regarding to the preferred scan method having WIFI_ALL_CHANNEL_SCAN as the default one?

The station-mode channel scan method is currently set to WIFI_FAST_SCAN
which ignores the signal strength and connects to the first channel found
which may result in poor WiFi bandwidth.

Change the scan mode to scan all channels and connect to the channel with
the highest RSSI.

Fixes zephyrproject-rtos#84488

Signed-off-by: Eric Holmberg <[email protected]>
@EricNRS
Copy link
Contributor Author

EricNRS commented Jan 24, 2025

Since WIFI_FAST_SCAN is also an option for wifi_config.sta.scan_method, would you mind providing a Kconfig parameter regarding to the preferred scan method having WIFI_ALL_CHANNEL_SCAN as the default one?

Done, please take a look to see if the configuration item is as you expected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: Wi-Fi Wi-Fi platform: ESP32 Espressif ESP32
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ESP32 WiFi Channel Selection
5 participants