Skip to content

Commit eebcd2e

Browse files
committed
remove unsupported authmodes
1 parent 6640db9 commit eebcd2e

File tree

2 files changed

+3
-10
lines changed

2 files changed

+3
-10
lines changed

ports/esp32s2/common-hal/wifi/Radio.c

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -179,15 +179,6 @@ void common_hal_wifi_radio_start_ap(wifi_radio_obj_t *self, uint8_t *ssid, size_
179179
case ((1 << AUTHMODE_WPA) | (1 << AUTHMODE_WPA2) | (1 << AUTHMODE_PSK)):
180180
authmode = WIFI_AUTH_WPA_WPA2_PSK;
181181
break;
182-
case ((1 << AUTHMODE_WPA2) | (1 << AUTHMODE_ENTERPRISE)):
183-
authmode = WIFI_AUTH_WPA2_ENTERPRISE;
184-
break;
185-
case ((1 << AUTHMODE_WPA3) | (1 << AUTHMODE_PSK)):
186-
authmode = WIFI_AUTH_WPA3_PSK;
187-
break;
188-
case ((1 << AUTHMODE_WPA2) | (1 << AUTHMODE_WPA3) | (1 << AUTHMODE_PSK)):
189-
authmode = WIFI_AUTH_WPA2_WPA3_PSK;
190-
break;
191182
default:
192183
mp_raise_ValueError(translate("Invalid AuthMode"));
193184
break;

shared-bindings/wifi/Radio.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,9 @@ MP_DEFINE_CONST_FUN_OBJ_1(wifi_radio_stop_station_obj, wifi_radio_stop_station);
203203
//| a station is already operating on a different channel.
204204
//|
205205
//| If ``authmode`` is given, the access point will use that Authentication
206-
//| mode. If a password is given, ``authmode`` must not be ``OPEN``."""
206+
//| mode. If a password is given, ``authmode`` must not be ``OPEN``.
207+
//| If ``authmode`` isn't given, ``OPEN`` will be used when password isn't provided,
208+
//| otherwise ``WPA_WPA2_PSK``."""
207209
//| ...
208210
//|
209211
STATIC mp_obj_t wifi_radio_start_ap(size_t n_args, const mp_obj_t *pos_args, mp_map_t *kw_args) {

0 commit comments

Comments
 (0)