Jouni Malinen
2afc46a0a9
tests: sigma_dut and second DPP reconfiguration
...
Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
2020-08-13 17:01:32 +03:00
Jouni Malinen
abd950be90
tests: sigma_dut controlled AP using SAE-PK(disabled) and PSK
...
Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
2020-08-07 00:49:00 +03:00
Jouni Malinen
0a9d7b169e
SAE-PK: Update design for fingerprint encoding into password
...
Update the SAE-PK implementation to match the changes in the protocol
design:
- allow only Sec values 3 and 5 and encode this as a single bit field
with multiple copies
- add a checksum character
Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
2020-08-05 22:05:20 +03:00
Jouni Malinen
5579da7d5f
tests: sigma_dut and WPA3 frame inject
...
Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
2020-08-03 11:54:47 +03:00
Jouni Malinen
9d00efd829
tests: Skip sigma_dut_dpp_qr_resp_11 if dpp-ca.py does not exist
...
Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
2020-07-31 10:09:33 +03:00
Jouni Malinen
a80ab0ea95
tests: sigma_dut DPP Configurator reporting MUD URL
...
Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
2020-07-28 16:44:41 +03:00
Jouni Malinen
4df892c781
tests: sigma_dut client privacy
...
Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
2020-06-26 22:50:13 +03:00
Jouni Malinen
58b384f467
tests: sigma_dut DPP reconfiguration
...
Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
2020-06-26 21:06:12 +03:00
Jouni Malinen
2f4c6a5bf3
tests: sigma_dut SAE-PK AP with additional SAE_PK_KeyPair values
...
Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
2020-06-25 01:39:45 +03:00
Jouni Malinen
27ade59524
tests: sigma_dut sta_scan WaitCompletion,1
...
Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
2020-06-22 23:38:36 +03:00
Jouni Malinen
fc005be6c1
tests: sigma_dut DPP Configurator for dot1x
...
Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
2020-06-22 21:54:21 +03:00
Jouni Malinen
9a0807ce36
tests: sigma_dut controlled AP using SAE-PK misbehavior
...
Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
2020-06-08 20:00:14 +03:00
Jouni Malinen
3a6e674adf
tests: sigma_dut controlled AP and transition disabled indication change
...
Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
2020-06-07 17:07:57 +03:00
Jouni Malinen
db23b8f95b
tests: sigma_dut and SAE-PK
...
Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
2020-06-05 16:58:25 +03:00
Jouni Malinen
c55a52a85d
tests: sigma_dut controlled GTK rekeying
...
Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
2020-06-05 15:35:44 +03:00
Jouni Malinen
37a5b50de3
tests: Fix sigma_dut ap_get_mac_address result parsing
...
Get only the actual BSSID part from the response string.
Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
2020-06-05 13:41:59 +03:00
Jouni Malinen
cb43c9bfd0
tests: sigma_dut controlled AP using OCV
...
Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
2020-06-05 13:39:41 +03:00
Jouni Malinen
b96a3bd5df
tests: sigma_dut controlled STA using OCV
...
Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
2020-05-25 23:24:55 +03:00
Jouni Malinen
0132a72922
tests: Use test-name.* style files more consistently
...
Use params['prefix'] to build the file names for dynamically generated
files.
Signed-off-by: Jouni Malinen <j@w1.fi>
2020-05-17 16:03:29 +03:00
Jouni Malinen
49d1f9c98e
tests: Unify ignore_old_scan_res resetting
...
Add a decorator that clears ignore_old_scan_res parameter value instead
of doing this with try/finally in large number of test cases.
Signed-off-by: Jouni Malinen <j@w1.fi>
2020-05-17 01:31:19 +03:00
Jouni Malinen
f636bc3abc
tests: Skip TOD-TOFU/STRICT tests if build does not support this
...
This functionality is currently available only with OpenSSL and internal
TLS implementation.
Signed-off-by: Jouni Malinen <j@w1.fi>
2020-05-16 21:58:10 +03:00
Thomas Pedersen
0218bf05d6
tests: sigma_dut: set regulatory inside try/except
...
If sigma_dut is not installed, start_sigma_dut() will
throw an exception. Call start_sigma_dut() inside the
try/except to correctly reset the regulatory domain.
This fixes several seemingly random failures due to
regulatory domain not being reset.
Signed-off-by: Thomas Pedersen <thomas@adapt-ip.com>
2020-05-16 17:30:16 +03:00
Jouni Malinen
47323a6f50
tests: sigma_dut DPP/QR AP as chirping Enrollee
...
Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
2020-05-13 17:59:05 +03:00
Jouni Malinen
644638819a
tests: Additional sigma_dut DPP over TCP coverage
...
Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
2020-05-12 14:48:49 +03:00
Jouni Malinen
6b8dde4ec9
tests: sigma_dut controlled AP doing DPP on offchannel
...
Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
2020-05-06 01:14:13 +03:00
Jouni Malinen
c32c3bcc6b
tests: sigma_dut and DPP MUD URL
...
Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
2020-05-04 15:33:03 +03:00
Jouni Malinen
1d4a1a819a
tests: sigma_dut DPP chirping
...
Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
2020-05-04 15:33:03 +03:00
Jouni Malinen
05abebaa06
tests: Fix sigma_dut_sae_h2e_enabled_group_rejected to clear sae_pwe
...
This test case was using sigma_dut to set sae_pwe=2, but that value was
not cleared in the end. This could result in following SAE test cases
failing due to unexpected behavior.
Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
2020-04-24 17:06:50 +03:00
Jouni Malinen
11bd6ea60e
tests: sigma_dut controlled AP with FT and RSNXE Used mismatch
...
Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
2020-04-16 23:58:36 +03:00
Jouni Malinen
7ad6016e19
tests: sigma_dut controlled FT protocol with RSNXE Used mismatch
...
Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
2020-04-16 15:44:42 +03:00
Jouni Malinen
169cf46534
tests: sigma_dut and DPP with NFC
...
Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
2020-04-03 16:27:57 +03:00
Jouni Malinen
4b9a1ba0ad
tests: Use a helper function for starting DPP AP in sigma_dut tests
...
Remove unnecessary code duplication.
Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
2020-04-03 12:59:47 +03:00
Jouni Malinen
f964a54ec2
tests: Remove duplicate definitions of csign/connector in sigma_dut
...
There is no need to duplicate the definitions of the exact same values
within each test function.
Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
2020-04-03 12:54:44 +03:00
Jouni Malinen
19e8536d47
tests: sigma_dut controlled AP and transition disabled indication
...
Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
2020-03-26 13:01:19 +02:00
Jouni Malinen
f3de8f35bc
tests: sigma_dut controlled AP and beacon protection
...
Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
2020-03-26 12:50:00 +02:00
Jouni Malinen
14ee49c24b
tests: sigma_dut controlled STA and beacon protection
...
Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
2020-03-26 11:52:47 +02:00
Jouni Malinen
634bc4e6df
tests: sigma_dut sta_scan ShortSSID
...
Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
2020-03-24 12:33:31 +02:00
Jouni Malinen
c557720ef0
tests: sigma_dut AP configuration for different channels
...
Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
2020-03-16 16:22:32 +02:00
Jouni Malinen
5732e57423
tests: Use hostapd_logdir in sigma_dut_ap_psk_sha256
...
logdir was prepared for this test case, but it was not actually used.
Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
2020-03-16 15:38:27 +02:00
Jouni Malinen
9bf306f57d
tests: Fix sigma_dut_sae_pw_id_pwe_loop to clear sae_pwe setting
...
Leaving out the special sae_pwe value was causing failures for following
test cases, e.g., in the following sequence:
sigma_dut_sae_pw_id_pwe_loop sae_password_id_only
Signed-off-by: Jouni Malinen <j@w1.fi>
2020-03-08 16:16:11 +02:00
Jouni Malinen
bdb2eaf876
tests: sigma_dut with OWE PTK workaround
...
Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
2020-03-06 21:44:31 +02:00
Jouni Malinen
dc054892a2
tests: sigma_dut special case for SAE Password Identifier with PWE looping
...
Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
2020-03-04 21:23:43 +02:00
Jouni Malinen
54bc5db16e
tests: sigma_dut controlled AP with SAE H2E and anti-clogging token
...
Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
2020-02-28 19:53:45 +02:00
Jouni Malinen
d57349d4b8
tests: sigma_dut fetching the current PMK
...
Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
2020-02-10 03:01:07 +02:00
Jouni Malinen
39a757c408
tests: sigma_dut and DPP Configurator provisioning
...
Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
2020-02-08 07:19:53 +02:00
Jouni Malinen
0c00679b15
tests: Check for TLS library capabilities in sigma_dut test cases
...
These test cases cannot be run with CONFIG_TLS=internal.
Signed-off-by: Jouni Malinen <j@w1.fi>
2020-01-26 16:50:20 +02:00
Jouni Malinen
5bf51d38b0
tests: Fix DPP capability checking to avoid failures in non-DPP build
...
"finally" handler should not trigger a new exception when trying to
clear state for non-DPP builds. In addition, couple of checks for DPP
capability in the build were missing.
Signed-off-by: Jouni Malinen <j@w1.fi>
2020-01-26 13:40:56 +02:00
Jouni Malinen
2be278696b
tests: Allow more time for sigma_dut sta_associate commands
...
The previously used timeout of two seconds did not allow more than a
single scan attempt and that could fail every now and then. Make these
more robust by increasing the timeout to 10 seconds which allows another
scan attempt to be completed similarly to the most non-sigma_dut test
cases.
Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
2020-01-21 13:22:57 +02:00
Jouni Malinen
991e6b9e79
tests: Call stop_sigma_dut() in more failure cases
...
Some of the sigma_dut test cases were not yet using try/finally to
ensure stop_sigma_dut() gets called. That could result in not logging
all failure reasons in the log and getting stuck with being unable to
start new sigma_dut processes after failed test cases.
Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
2020-01-10 00:44:07 +02:00
Jouni Malinen
f0b6b23fe3
tests: Enable sigma_dut debug log for all test cases
...
There is no point in having to enable this separately for each test case
since the debug details are always useful if something fails.
Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
2020-01-10 00:21:15 +02:00