3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-11-21 22:09:23 +01:00

unit: Add a WSC-R PBC test with Open auth_type

This commit is contained in:
Andrew Zaborowski 2020-08-25 00:34:26 +02:00 committed by Denis Kenzior
parent 3aafb80b54
commit 7a91f6dba4

View File

@ -2584,6 +2584,14 @@ struct wsc_credential wsc_r_test_wpa2_cred_psk = {
.encryption_type = WSC_ENCRYPTION_TYPE_AES_TKIP,
};
struct wsc_credential wsc_r_test_open_cred = {
.ssid_len = 7,
.ssid = "thessid",
.auth_type = WSC_AUTHENTICATION_TYPE_OPEN,
.network_key_len = 0,
.encryption_type = WSC_ENCRYPTION_TYPE_NONE,
};
int main(int argc, char *argv[])
{
l_test_init(&argc, &argv);
@ -2703,6 +2711,9 @@ int main(int argc, char *argv[])
l_test_add("/wsc-r/handshake/PBC Handshake WPA2 PSK test",
wsc_r_test_pbc_handshake,
&wsc_r_test_wpa2_cred_psk);
l_test_add("/wsc-r/handshake/PBC Handshake Open test",
wsc_r_test_pbc_handshake,
&wsc_r_test_open_cred);
done:
return l_test_run();