remove unsupported authmodes
This commit is contained in:
parent
6640db9555
commit
eebcd2eeaf
@ -179,15 +179,6 @@ void common_hal_wifi_radio_start_ap(wifi_radio_obj_t *self, uint8_t *ssid, size_
|
|||||||
case ((1 << AUTHMODE_WPA) | (1 << AUTHMODE_WPA2) | (1 << AUTHMODE_PSK)):
|
case ((1 << AUTHMODE_WPA) | (1 << AUTHMODE_WPA2) | (1 << AUTHMODE_PSK)):
|
||||||
authmode = WIFI_AUTH_WPA_WPA2_PSK;
|
authmode = WIFI_AUTH_WPA_WPA2_PSK;
|
||||||
break;
|
break;
|
||||||
case ((1 << AUTHMODE_WPA2) | (1 << AUTHMODE_ENTERPRISE)):
|
|
||||||
authmode = WIFI_AUTH_WPA2_ENTERPRISE;
|
|
||||||
break;
|
|
||||||
case ((1 << AUTHMODE_WPA3) | (1 << AUTHMODE_PSK)):
|
|
||||||
authmode = WIFI_AUTH_WPA3_PSK;
|
|
||||||
break;
|
|
||||||
case ((1 << AUTHMODE_WPA2) | (1 << AUTHMODE_WPA3) | (1 << AUTHMODE_PSK)):
|
|
||||||
authmode = WIFI_AUTH_WPA2_WPA3_PSK;
|
|
||||||
break;
|
|
||||||
default:
|
default:
|
||||||
mp_raise_ValueError(translate("Invalid AuthMode"));
|
mp_raise_ValueError(translate("Invalid AuthMode"));
|
||||||
break;
|
break;
|
||||||
|
@ -203,7 +203,9 @@ MP_DEFINE_CONST_FUN_OBJ_1(wifi_radio_stop_station_obj, wifi_radio_stop_station);
|
|||||||
//| a station is already operating on a different channel.
|
//| a station is already operating on a different channel.
|
||||||
//|
|
//|
|
||||||
//| If ``authmode`` is given, the access point will use that Authentication
|
//| If ``authmode`` is given, the access point will use that Authentication
|
||||||
//| mode. If a password is given, ``authmode`` must not be ``OPEN``."""
|
//| mode. If a password is given, ``authmode`` must not be ``OPEN``.
|
||||||
|
//| If ``authmode`` isn't given, ``OPEN`` will be used when password isn't provided,
|
||||||
|
//| otherwise ``WPA_WPA2_PSK``."""
|
||||||
//| ...
|
//| ...
|
||||||
//|
|
//|
|
||||||
STATIC mp_obj_t wifi_radio_start_ap(size_t n_args, const mp_obj_t *pos_args, mp_map_t *kw_args) {
|
STATIC mp_obj_t wifi_radio_start_ap(size_t n_args, const mp_obj_t *pos_args, mp_map_t *kw_args) {
|
||||||
|
Loading…
Reference in New Issue
Block a user