diff options
author | Damien George <damien@micropython.org> | 2022-12-19 23:51:24 +1100 |
---|---|---|
committer | Damien George <damien@micropython.org> | 2022-12-20 16:06:40 +1100 |
commit | 699477d12d1aa1cb57ff6cfc3f5dc5e97524dbe6 (patch) | |
tree | 09cb87b616a945af56ad57ab88c97b2c5fe6d3be /docs/esp32/tutorial | |
parent | b151422cb2066a475329002c7a529df6cf220ba0 (diff) |
extmod/network_cyw43: Fix handling of networks with open security.
Prior to this commit, the default security=-1 would be passed directly
through to the cyw43 driver to auto-detect the security type, but that
driver did not correctly handle the case of open security.
The cyw43 driver has now been changed to no longer support auto-detection,
rather it is up to the caller to always select the security type. The
defaults are now implemented in the Python bindings and are:
- if no key is given then it selects open security
- if a key is given then it selects WPA2_MIXED_PSK
Calling `wlan.connect(<ssid>)` will now connect to an open network, on
both rp2 and stm32 ports. The form `wlan.connect(<ssid>, <key>)` will
connect to a WPA2 network.
Fixes issue #9016.
Signed-off-by: Damien George <damien@micropython.org>
Diffstat (limited to 'docs/esp32/tutorial')
0 files changed, 0 insertions, 0 deletions