diff options
author | Angus Gratton <angus@redyak.com.au> | 2024-11-13 10:16:25 +1100 |
---|---|---|
committer | Damien George <damien@micropython.org> | 2024-11-28 23:08:18 +1100 |
commit | 03bc561edb39073af28e0ee32a5e47543a0973c8 (patch) | |
tree | b508bd1609ad328a670e520076c3f270ffc5beee /tests/extmod/uasyncio_micropython.py | |
parent | 49b83ed44a0bd8ed2e8b4b82ae9ca09b47f4dbf9 (diff) | |
download | micropython-03bc561edb39073af28e0ee32a5e47543a0973c8.tar.gz micropython-03bc561edb39073af28e0ee32a5e47543a0973c8.zip |
esp32: Fix setting WLAN channel in AP mode.
- Previously the call to esp_wifi_set_channel() would be immediately
overridden by calling esp_wifi_config(...) with the previous channel set.
- AP interface doesn't seem to need more than esp_wifi_config(...) to work.
It will automatically configure 40MHz bandwidth and place the secondary
channel using similar logic to what was being explicitly calculated here.
- However, calling esp_wifi_set_channel() on the STA interface is necessary
if using this interface with ESP-NOW (without connecting to an AP). So
the esp_wifi_set_channel() call is kept in for this purpose. Without
this, tests/multi_espnow/70_channel.py fails.
This work was funded through GitHub Sponsors.
Signed-off-by: Angus Gratton <angus@redyak.com.au>
Diffstat (limited to 'tests/extmod/uasyncio_micropython.py')
0 files changed, 0 insertions, 0 deletions