QUERY · ISSUE
ESP32 WiFi AP Channel Width
port-esp32
It seems when creating a WiFi AP, it defaults to a 40 MHz channel bandwidth.
import network
ap = network.WLAN(network.AP_IF)
ap.active(True)
ap.config(essid="TEST")
ap.config(authmode=0, channel=2)
In the above example, when viewing the broadcasted SSID with an Android app such as "Wifi Analyzer", shows "CH 2+6" and "2447 - 2407 = 40 MHz".
Is there a setting that can be changed to set this to 20 MHz, so it only uses one channel?
CANDIDATE · ISSUE
wifi channel selection in access point mode is ignored
bugport-esp32
Port, board and/or hardware
Waveshare ESP32-S3-ZERO
MicroPython version
MicroPython v1.24.0 on 2024-10-25; Generic ESP32S3 module with ESP32S3
Reproduction
Here is the code I use to test :
import network
wlan = network.WLAN(network.AP_IF)
wlan.active(True)
wlan.config(ssid='potato',password='password',channel=6)
while True
print(wlan.config('channel'))
Expected behaviour
I expect this code to create an access point that will be on channel 6.
Observed behaviour
The returned print command indicates the channel is "1", and a wifi scanner also confirms the access point is being broadcasted on channel 1.
Additional Information
No response
Code of Conduct
Yes, I agree