aboutsummaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* tests: PMF and Authentication frame injectionJouni Malinen2016-11-291-0/+27
| | | | | | | | | Verify that AP does not break PMF-enabled connection due to injected Authentication frame. This is a regression test for NL80211_FEATURE_FULL_AP_CLIENT_STATE changes resulting in dropping the key in such a case. Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
* tests: WPA2-PSK-FT AP with WPA2-PSK enabled and unexpected MDEJouni Malinen2016-11-261-0/+29
| | | | Signed-off-by: Jouni Malinen <j@w1.fi>
* tests: Beacon frame TX rate configurationJouni Malinen2016-11-251-1/+105
| | | | Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
* tests: Random MAC address in scans while connectedJouni Malinen2016-11-252-1/+27
| | | | Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
* tests: D-Bus P2P and IP address parametersJouni Malinen2016-11-211-0/+73
| | | | Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
* tests: GAS/ANQP and Capability List ANQP-elementJouni Malinen2016-11-171-0/+38
| | | | Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
* tests: GAS/ANQP and Venue URLJouni Malinen2016-11-171-0/+53
| | | | Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
* tests: Allow multiple management frames to be used with ap-mgmt-fuzzerJouni Malinen2016-11-162-7/+76
| | | | | | | | | | | The optional "-m <multi.dat>" command line option can now be used to specify a data file that can include multiple management frames with each one prefixed with a 16-bit big endian length field. This allows a single fuzzer run to be used to go through multi-frame exchanges. The multi.dat file shows an example of this with Probe Request frame, Authentication frame, Association Request frame, and an Action frame. Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
* tests: Make ap_interworking_scan_filtering more robustJouni Malinen2016-10-291-0/+7
| | | | | | | | | | It was possible for the first wt.clear_bss_counters(bssid) call to fail the test if timing worked out in a way that the wlantest process had not received any Beacon frames from the first AP. Run a directed scan for both of the BSSs before starting the test validation steps to make sure such a case cannot fail this test case. Signed-off-by: Jouni Malinen <j@w1.fi>
* tests: hostapd stationary_ap=1 in neighbor DBJouni Malinen2016-10-291-0/+25
| | | | Signed-off-by: Jouni Malinen <j@w1.fi>
* tests: Open AP and TDLS prohibitedJouni Malinen2016-10-281-0/+16
| | | | Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
* tests: Avoid failures in ap_vlan_without_station with new kernelJouni Malinen2016-10-271-1/+4
| | | | | | | | | | The kernel commit 'mac80211: filter multicast data packets on AP / AP_VLAN' started filtering out the test frame used in ap_vlan_without_station and that resulted in false failures. For now, ignore that "error" case to avoid claiming failures when the kernel is doing what it is expected to do. Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
* tests: Enable FILS in the example hwsim build configurationsJouni Malinen2016-10-272-0/+2
| | | | | | | This allows the new FILS test cases to be executed automatically when a recent enough kernel version is used. Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
* tests: FILSJouni Malinen2016-10-251-0/+197
| | | | Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
* tests: WPS PBC with two APs advertising same SSIDJouni Malinen2016-10-101-0/+27
| | | | Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
* tests: Update eap_proto_psk_errors and ap_wpa2_eap_psk_oomJouni Malinen2016-10-102-4/+4
| | | | | | | | | The extension of aes_128_ctr_encrypt() to allow AES-192 and AES-256 to be used in addition to AES-128 for CTR mode encryption resulted in the backtrace for the function calls changing. Update the test cases that started failing due to that change. Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
* tests: Mesh network and SELECT_NETWORKJouni Malinen2016-10-091-0/+13
| | | | Signed-off-by: Jouni Malinen <j@w1.fi>
* test: FT: EAP test for mismatching keysMichael Braun2016-10-091-0/+116
| | | | Signed-off-by: Michael Braun <michael-dev@fami-braun.de>
* test: FT with locally generated PMK-R0/PMK-R1 from PSKMichael Braun2016-10-091-2/+26
| | | | Signed-off-by: Michael Braun <michael-dev@fami-braun.de>
* tests: Fix wpas_ctrl_sched_scan_plans without WPA_TRACEJouni Malinen2016-10-031-3/+5
| | | | | | | | This test case did not clear sched_scan_plans if alloc_fail() resulted in skipping the test case. This would result in the following autoscan_exponential and autoscan_periodic test cases failing. Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
* tests: Fix cfg80211_tx_frame testAvraham Stern2016-10-021-6/+9
| | | | | | | | | | In case that a dedicated P2P Device interface is used, a new interface must be create for a P2P group. Thus, in order to send mgmt frames, attach a new WpaSupplicant object to the newly created group and use this object for sending the frames. Signed-off-by: Avraham Stern <avraham.stern@intel.com> Signed-off-by: Andrei Otcheretianski <andrei.otcheretianski@intel.com>
* tests: Use global control interface to remove P2P networksIlan Peer2016-10-021-1/+1
| | | | | | | | Use the global control interface to remove P2P networks in persistent_group_peer_dropped3 to support configurations that use a dedicated P2P Device interface. Signed-off-by: Ilan Peer <ilan.peer@intel.com>
* tests: Fix p2p_ext_vendor_elem_assoc test with P2P Device interfaceAvraham Stern2016-10-021-2/+6
| | | | | | | | | | | | | | | For configurations that use a dedicated P2P Device interface, which mandates that a separate interface is used for the P2P group, vendor specific IE's must be added to the VENDOR_ELEM_P2P_* frame types in order to be used by the P2P group interface. The VENDOR_ELEM_ASSOC_REQ (13) parameter would need to be issued on the group interface which would be challenging to do due to timing in case a separate group interface gets used. In case a dedicated P2P Device interface is used, don't include a test for VENDOR_ELEM_ASSOC_REQ to avoid failing this part of the test case. Signed-off-by: Avraham Stern <avraham.stern@intel.com>
* tests: Fix ap_track_taxonomy to clear country code settingJouni Malinen2016-09-301-0/+4
| | | | | | | | | | | | This test case could have ended with the station devices still in US regulatory domain and that could make a following test case fail in some sequences. For example, "ap_track_taxonomy ibss_5ghz" sequence made ibss_5ghz fail to see the regdom change event since there was not one due to the US country code already being in use at the beginning of the test case. Fix this by clearing the country code at the end of ap_track_taxonomy. Signed-off-by: Jouni Malinen <j@w1.fi>
* tests: Extend gas_anqp_get to cover MBO cases with non-MBO APJouni Malinen2016-09-301-0/+15
| | | | Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
* tests: Update server and user certificates (2015)Jouni Malinen2016-09-3012-38/+38
| | | | | | | The previous versions expired, so need to re-sign these to fix number of the EAP test cases. Signed-off-by: Jouni Malinen <j@w1.fi>
* tests: Long P2P_LISTEN and offchannel TXJouni Malinen2016-09-261-0/+33
| | | | Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
* tests: WNM BSS Transition Management request getting rejectedJouni Malinen2016-09-251-0/+56
| | | | Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
* tests: MBO and ignoring disallowed associationJouni Malinen2016-09-251-0/+32
| | | | Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
* tests: Fix a typo in a debug message (mbo_assoc_disallow)Jouni Malinen2016-09-251-1/+1
| | | | Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
* tests: Update MBO test cases for non_pref_chan changesJouni Malinen2016-09-251-15/+11
| | | | | | | The reason_detail field was removed from the implementation, so the test cases need matching changes. Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
* tests: Add testcase for reconnect failure due to auth timeoutMikael Kanstrup2016-09-231-0/+39
| | | | | | | | Add testcase to verify a failed reconnect attempt due to authentication timeout blacklists the correct AP. Driver capabilities are forced to non-SME and driver roaming (BSS selection) mode. Signed-off-by: Mikael Kanstrup <mikael.kanstrup@sonymobile.com>
* tests: Add testcase for (reassoc) roam failure due to auth timeoutMikael Kanstrup2016-09-231-0/+38
| | | | | | | | | Add testcase to verify failed roaming attempt due to authentication timeout blacklists the correct AP. Roaming attempt is performed with the reassociate command and bssid_set=1. Driver capabilities are forced to non-SME and driver roaming (BSS selection) mode. Signed-off-by: Mikael Kanstrup <mikael.kanstrup@sonymobile.com>
* tests: Make pmksa_cache_{,opportunistic_}multiple_sta more robustJouni Malinen2016-09-231-1/+10
| | | | | | | | | Clear wpa_supplicant scan cache before starting these test cases since the ROAM command depends on the correct BSS entry being found. scan_for_bss() does not enforce that correct entry to be present if there was an earlier BSS entry with the same BSSID. Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
* tests: Reset wlan5 device before RELOG commandJouni Malinen2016-09-231-4/+4
| | | | | | | | | This moves the wpa_supplicant debug entries from the end of a test case using a dynamically added wlan5 interface to the correct test case, i.e., the test case that added the interface instead of whatever test case happens to follow this. Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
* tests: WPA-PSK AP and only rsn_pairwise setJouni Malinen2016-09-231-0/+8
| | | | Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
* tests: Skip wpas_ap_dfs when MCC > 1Ilan Peer2016-09-221-0/+3
| | | | | | | Skip wpas_ap_dfs in case that multi-channel is used, as DFS operation is not supported in such a case. Signed-off-by: Ilan Peer <ilan.peer@intel.com>
* tests: mode=mesh in STATUSJouni Malinen2016-09-221-0/+4
| | | | Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
* tests: AP tracking STA taxonomyJouni Malinen2016-09-212-0/+105
| | | | Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
* tests: Setup wlantest once for qosmap testsJonathan Afek2016-09-171-1/+3
| | | | | | | | | | | | Some tests call the check_qos_map() function more than once. Make sure each test sets up wlantest only once before the first time the function is called. The wlantest setup sets the channel for the wlantest interface and executes the wlantest executable. It is more efficient to do that only once for each test. Signed-off-by: Jonathan Afek <jonathanx.afek@intel.com>
* tests: Increase timeout for remote testsJonathan Afek2016-09-172-2/+4
| | | | | | | | Some operations take longer time on real hardware than on hwsim. This commit increases two timeouts so that the tests will pass on real hardware, too. Signed-off-by: Jonathan Afek <jonathanx.afek@intel.com>
* tests: Increase connection timeouts for remote testsJonathan Afek2016-09-171-2/+6
| | | | | | | Use increased timeouts for connect and disconnect since these operations take a longer time on real harware than they do on hwsim. Signed-off-by: Jonathan Afek <jonathanx.afek@intel.com>
* tests: Dynamic Interworking element updateJouni Malinen2016-09-081-0/+30
| | | | Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
* tests: FTM capability indicationJouni Malinen2016-09-051-0/+20
| | | | Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
* tests: VHT with 80 MHz channel width and use_sta_nsts=1Jouni Malinen2016-09-051-0/+31
| | | | Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
* tests: Allow regdb missing some op classes in mbo_supp_oper_classesJouni Malinen2016-08-221-2/+8
| | | | | | | Not all installed regdb files include channels for global operating classes 121-123, and 129. Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
* tests: Make FST kill_pid() more robustJouni Malinen2016-08-221-3/+11
| | | | | | | | | | | | | | | | | It looks like the attempt to read the process id from a PID file can return empty data. This resulted in kill_pid() failing to kill the process and all the following FST test cases using the extra interface failing. While the PID file is really supposed to have a valid PID value when we get this far, it is better to try multiple times to avoid failing large number of test cases. The current os_daemonize() implementation ends up calling daemon() first and then writing the PID file from the remaining process that is running in the background. This leaves a short race condition where an external process that started hostapd/wpa_supplicant could end up trying to read the PID file before it has been written. Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
* tests: hostapd and ctrl_iface commands when BSS not yet fully enabledJouni Malinen2016-08-221-0/+64
| | | | Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
* tests: IAPP and multiple BSSesJouni Malinen2016-08-182-1/+44
| | | | | | This verifies IAPP socket registration from multiple hostapd interfaces. Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
* tests: hostapd and MIB ctrl_iface command with open networkJouni Malinen2016-08-181-0/+30
| | | | Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>