Skip to content
Commit 30382daf authored by Robert Lubos's avatar Robert Lubos Committed by Carles Cufí
Browse files

net: wifi_shell: Add user input validation for SSID and PSK



When parsing user input for "wifi connect" and "wifi ap enable"
commands, the SSID and PSK lengths were not verified. It's better to
detect invalid connect/AP enable parameters early, so that help text can
be printed, instead of letting wifi_mgmt command to fail.

For WIFI_SECURITY_TYPE_SAE, follow the Linux convention of limiting the
size to 128 bytes.

Signed-off-by: default avatarRobert Lubos <robert.lubos@nordicsemi.no>
parent a22f7e77
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment