aboutsummaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* tests: FILS SK with PFS and PMKSA cachingJouni Malinen2017-09-131-0/+107
| | | | Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
* tests: RSN pre-authentication based on pre-connection scan resultsJouni Malinen2017-09-121-0/+36
| | | | Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
* tests: Fix radius_acct_failure_sta_data testAndrei Otcheretianski2017-09-101-0/+1
| | | | | | | | The STA can get disconnected event before the AP processed the deauthentication frame, resulting in GET_FAIL command being sent too early. Fix this by waiting for AP-STA-DISCONNECTED on AP side, too. Signed-off-by: Andrei Otcheretianski <andrei.otcheretianski@intel.com>
* tests: Use global control interface in autogo_m2d testAloni, Adiel2017-09-101-1/+1
| | | | | | | If dedicated P2P device is used, SET p2p_no_group_iface 0 should be directed to the P2P device. Signed-off-by: Adiel Aloni <adiel.aloni@intel.com>
* tests: Fix missing function on some rrm test case error pathsLi Zhijian2017-09-101-0/+1
| | | | | | | | Import vht_supported from test_ap_vht to fix the following issue: rrm_beacon_req_table_vht run failed: global name 'vht_supported' is not defined Signed-off-by: Li Zhijian <lizhijian@cn.fujitsu.com>
* tests: Enable D-Bus test on more platformsLi Zhijian2017-09-101-1/+1
| | | | | | | | | | | Not all distro contains /var/run/dbus/pid, debian for example: dbus-daemon start with nopidfile root@debian9:/home/lizhijian/chroot_clean/tmp/build-hwsim/hostap/tests/hwsim# ps aux |grep dbus message+ 598 0.0 0.1 46068 4836 ? Ss 15:46 0:00 /usr/bin/dbus-daemon --system --address=systemd: --nofork --nopidfile --systemd-activation Debian-+ 656 0.0 0.0 45220 3924 ? Ss 15:46 0:00 /usr/bin/dbus-daemon --session --address=systemd: --nofork --nopidfile --systemd-activation Signed-off-by: Li Zhijian <lizhijian@cn.fujitsu.com> Signed-off-by: Xiaodong Jia <jiaxd-fnst@cn.fujitsu.com>
* tests: Remove forgotten print from ap_wpa2_eap_sim_zero_db_timeoutJouni Malinen2017-09-091-1/+0
| | | | | | This was supposed to be used during development testing only. Signed-off-by: Jouni Malinen <j@w1.fi>
* tests: EAP-AKA' with external UMTS auth to hit Synchronization-FailureJouni Malinen2017-09-091-0/+34
| | | | Signed-off-by: Jouni Malinen <j@w1.fi>
* tests: D-Bus mesh signals and propertiesJouni Malinen2017-09-091-0/+77
| | | | Signed-off-by: Jouni Malinen <j@w1.fi>
* tests: Enable DPP in default configuration filesJouni Malinen2017-09-062-0/+2
| | | | Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
* tests: Write MSK dump files from authentication serverJouni Malinen2017-09-055-67/+78
| | | | | | | | This makes it easier to post-process frame capture files if frames need to be decrypted in test cases that do not configure wlantest with the PMK directly (i.e., mainly the cases when a RADIUS server is used). Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
* tests: SAE commit message override on wpa_supplicantJouni Malinen2017-09-041-0/+17
| | | | Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
* tests: SAE commit message override on hostapdJouni Malinen2017-09-041-0/+17
| | | | Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
* tests: SAE reflection attack using internal hostapd mechanismJouni Malinen2017-09-041-0/+28
| | | | Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
* tests: Verify data connectivity with DPP AKMJouni Malinen2017-08-241-0/+2
| | | | Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
* tests: DPP association with nl80211 connect commandJouni Malinen2017-08-241-0/+11
| | | | Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
* tests: Make dpp_qr_code_auth_initiator_enrollee more robustJouni Malinen2017-08-231-0/+8
| | | | | | | | | Wait for the configuration step to complete before forcefully terminating DPP listen. Previous version was causing failures for this test case sequence: dpp_qr_code_auth_initiator_enrollee dpp_pkex_config2 Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
* tests: Update DPP discovery override value formatJouni Malinen2017-08-221-1/+1
| | | | | | | This changed in the DPP tech spec, so update the test case to match the current encoding. Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
* tests: Remove use of dpp_devices_overrideJouni Malinen2017-08-221-2/+0
| | | | | | | The devices object was removed, so this parameter will disappear as well. Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
* tests: sigma_dut tests for SAEJouni Malinen2017-08-221-0/+96
| | | | Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
* tests: hostapd with zero length ap_pin parameterJouni Malinen2017-08-181-0/+19
| | | | Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
* tests: Make wnm_bss_tm_req_with_mbo_ie more robustAndrei Otcheretianski2017-07-181-7/+10
| | | | | | | | | | | On slow machines or inside VM it may take some time for "DISCONNECTED" event to arrive. Since the retry delay counter is started already, it may result in less than 5 seconds time between "DISCONNECTED" and "CONNECTED" events. Fix the test by taking more accurate timestamps between the events. Signed-off-by: Andrei Otcheretianski <andrei.otcheretianski@intel.com>
* tests: Fix RRM tests to allow refused/incapable responsesAndrei Otcheretianski2017-07-171-10/+21
| | | | Signed-off-by: Andrei Otcheretianski <andrei.otcheretianski@intel.com>
* tests: Rejection of group-addressed RRM measurement requestJouni Malinen2017-07-171-0/+11
| | | | Signed-off-by: Jouni Malinen <j@w1.fi>
* tests: Additional EAP-TTLS error pathJouni Malinen2017-07-081-0/+17
| | | | | | This is a regression test for a memory leak on an error path. Signed-off-by: Jouni Malinen <j@w1.fi>
* tests: Additional LEAP error pathJouni Malinen2017-07-081-0/+17
| | | | | | This is a regression test for a memory leak on an error path. Signed-off-by: Jouni Malinen <j@w1.fi>
* tests: Use global control interface in test_p2p_channel.pyAdiel Aloni2017-07-081-10/+10
| | | | | | | | | Previously p2p_channel_drv_pref_* tests would fail if dedicated P2P device is used, since the SET commands were sent to incorrect interface. Fix this by using a global control interface instead. Signed-off-by: Adiel Aloni <adiel.aloni@intel.com>
* tests: Print higher debug level on consoleJohannes Berg2017-07-081-0/+2
| | | | | | | | We capture the dmesg that contains everything, but if a test causes a kernel crash we will miss all logging at higher levels like debug. Change the printk level to catch all of that too. Signed-off-by: Johannes Berg <johannes.berg@intel.com>
* tests: Catch various lockdep warningsJohannes Berg2017-07-081-1/+1
| | | | | | | | Lockdep no longer prints "INFO:" but now prints "WARNING:". Also add the "*** DEADLOCK ***" string it usually prints so if it changes again we can keep finding that string. Signed-off-by: Johannes Berg <johannes.berg@intel.com>
* tests: Skip dpp_pkex_config dpp_pkex_config2 tests correctlyAndrei Otcheretianski2017-07-071-0/+4
| | | | | | When CONFIG_DPP is not defined these tests would fail. Skip them. Signed-off-by: Andrei Otcheretianski <andrei.otcheretianski@intel.com>
* tests: FILS ERP authentication followed by PMKSA cachingVidyullatha Kanchanapally2017-07-051-0/+68
| | | | | | | This test case verifies that both wpa_supplicant and hostapd are adding a PMKSA cache entry based on FILS shared key authentication using ERP. Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
* tests: Scan for a specific BSSIDJouni Malinen2017-07-041-0/+30
| | | | Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
* tests: DPP configurator signing own connectorJouni Malinen2017-07-041-38/+118
| | | | Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
* tests: DPP_BOOTSTRAP_INFO with hostapdJouni Malinen2017-07-041-0/+8
| | | | Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
* tests: Clear ignore_old_scan_res after sigma_dut test casesJouni Malinen2017-07-031-0/+18
| | | | | | | | | sigma_dut can end up setting ignore_old_scan_res=1 and that can result in some of the consecutive test cases failing. Fix this by explicitly clearing ignore_old_scan_res after sigma_dut cases that may have ended up setting the parameter. Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
* tests: key_mgmt values OWE and DPPJouni Malinen2017-07-032-0/+9
| | | | Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
* tests: mgmt_group_cipher in STATUSJouni Malinen2017-07-031-0/+3
| | | | Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
* tests: DPP configurator in hostapdJouni Malinen2017-07-031-0/+96
| | | | Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
* tests: DPP PKEX in hostapdJouni Malinen2017-07-031-0/+107
| | | | Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
* tests: hostapd as DPP Authentication initiatorJouni Malinen2017-07-031-0/+50
| | | | Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
* tests: DPP auth responder acting as configuratorJouni Malinen2017-07-031-0/+46
| | | | Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
* tests: DPP PKEX test casesJouni Malinen2017-07-021-0/+147
| | | | Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
* tests: sigma_dut test casesJouni Malinen2017-06-231-0/+220
| | | | | | | Add possibility to test sigma_dut functionality as part of the hwsim test cases. Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
* tests: Update DPP legacy config cases to provide the passphraseJouni Malinen2017-06-231-2/+2
| | | | | | | This is now needed from the control interface since the hardcoded default value has been removed from the implementation. Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
* tests: DPP Configurator getting SSID from control interfaceJouni Malinen2017-06-231-2/+3
| | | | Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
* tests: DPP automatic network profile processingJouni Malinen2017-06-211-0/+126
| | | | Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
* tests: DPP bootstrapping, authentication, and configuration exchangesJouni Malinen2017-06-192-2/+993
| | | | Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
* tests: Update base64 OOM test cases to match implementation changesJouni Malinen2017-06-172-6/+11
| | | | | | | | Introduction of the new base64 helper function changed the backtraces for these OOM test cases and resulted in test failures. Update the test scripts to work with the new implementation. Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
* tests: Avoid unexpected roam in wnm_bss_tmJouni Malinen2017-05-271-1/+1
| | | | | | | | | | It was possible for the BTM Request with no matching BSSIDs to cause wpa_supplicant-initated roam to a better BSS (5 GHz band preferred) when finding the second AP in a scan started by that BTM Request. This could make the following step in the test case fail. Fix this by asking another channel to be scanned to postpone discovery of the other AP. Signed-off-by: Jouni Malinen <j@w1.fi>
* tests: Write TEST-START and TEST-STOP into kernel logs with timestampsJouni Malinen2017-05-271-0/+2
| | | | | | | This makes it easier to synchronize log entries in the kernel log (seconds from boot) and wpa_supplicant/hostapd (UNIX timestamp). Signed-off-by: Jouni Malinen <j@w1.fi>