wifi: fix off-by-one in min PSK length handling

The MIN_PSK_LENGTH constant was not adjusted to accommodate for the
semcantic change when switching from using the raw char array to using
the Genode::String class. The Genode::String::length() method includes
the terminating NUL byte while strlen() does not.

Fixes #2296.
This commit is contained in:
Josef Söntgen 2017-02-27 11:43:45 +01:00 committed by Christian Helmuth
parent 5ad4da4b1b
commit 27cc20049e

View File

@ -171,7 +171,7 @@ struct Wlan_configration
enum { MAX_SSID_LENGTH = 32 + 1,
BSSID_LENGTH = 12 + 5 + 1,
PROT_LENGTH = 7 + 1,
MIN_PSK_LENGTH = 8,
MIN_PSK_LENGTH = 8 + 1,
MAX_PSK_LENGTH = 63 + 1};
String<MAX_SSID_LENGTH> ssid;