wifi: fix condition for non-protected connections

This commit is contained in:
Norman Feske 2015-05-24 23:19:28 +02:00 committed by Christian Helmuth
parent 167925ab76
commit 65837e8ae9

View File

@ -189,7 +189,7 @@ struct Wlan_configration
node.attribute("psk").value(psk, sizeof(psk));
/* psk must be between 8 and 63 characters long */
if (Genode::strlen(psk) < MIN_PSK_LENGTH) {
if (use_protection && (Genode::strlen(psk) < MIN_PSK_LENGTH)) {
_active_dummy_configuration();
return;
}