Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions source/webconfig/wifi_ovsdb_translator.c
Original file line number Diff line number Diff line change
Expand Up @@ -3188,6 +3188,10 @@ webconfig_error_t translate_sta_vap_info_to_ovsdb_state_personal_sec(const wifi_
vap_row->wpa = true;
vap_row->wpa_key_mgmt_len = len;

if (!is_personal_sec(vap->u.sta_info.security.mode)) {
return webconfig_error_none;
}

if ((strlen(vap->u.sta_info.security.u.key.key) < MIN_PWD_LEN) || (strlen(vap->u.sta_info.security.u.key.key) > MAX_PWD_LEN)) {
wifi_util_dbg_print(WIFI_WEBCONFIG,"%s:%d: Invalid password length\n", __func__, __LINE__);
return webconfig_error_translate_to_ovsdb;
Expand Down
Loading