aboutsummaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
...
* tests: hostapd disconnecting STA without transmitting Deauth/DisassocJouni Malinen2016-04-081-0/+39
| | | | Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
* tests: AP with open mode and STA statisticsJouni Malinen2016-04-081-0/+19
| | | | Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
* tests: VENDOR_ELEM 14 to add an IE into Probe Request frameJouni Malinen2016-04-081-0/+12
| | | | Signed-off-by: Jouni Malinen <j@w1.fi>
* tests: Modify test_hs20_filterIlan Peer2016-04-081-79/+60
| | | | | | | Modify the test cases to tests the Hotspot 2.0 filtering functionality in wpa_supplicant, instead of testing only the kernel interface. Signed-off-by: Ilan Peer <ilan.peer@intel.com>
* tests: RADIUS failure when adding MPPE keysJouni Malinen2016-04-081-2/+27
| | | | | | | This is a regression test case for a radius_msg_add_mppe_keys() memory leak on an error path. Signed-off-by: Jouni Malinen <j@w1.fi>
* tests: WPA2 with invalid PSK from RADIUSJouni Malinen2016-04-081-0/+74
| | | | | | | This is a regression test case for a memory leak on a decode_tunnel_passwords() error path. Signed-off-by: Jouni Malinen <j@w1.fi>
* tests: Fix pyrad exception name in RADIUS test casesJouni Malinen2016-04-081-3/+3
| | | | Signed-off-by: Jouni Malinen <j@w1.fi>
* tests: Add P2P invitation coverage during p2p_findJouni Malinen2016-04-072-8/+38
| | | | | | | | | | | | | | | | | The new persistent_group_peer_dropped3 test case is similar to persistent_group_peer_dropped with the difference being in the responding device (the one from which the persistent group information is dropped) is not issued a separate P2P_LISTEN command and instead, a single P2P_FIND is used through the exchange to verify that this operation does not get stopped unexpectedly. This is a regression test case to verify that P2P_PENDING_INVITATION_RESPONSE case ends up calling p2p_check_after_scan_tx_continuation() in non-success case. It should be noted that this is dependent on timing: Action frame TX request needs to occur during the P2P_FIND Search phase (scan). As such, not every execution of this test case will hit the previous issue sequence, but that should be hit every now and then. Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
* tests: Pass full apdev to add_ap() function (7)Janusz Dziedzic2016-04-034-18/+18
| | | | | | | | | | | Pass the full apdev to the add_ap() function instead of just ifname. This allows us to handle also remote hosts while we can check apdev['hostname'], apdev['port']. This step (7) converts the cases where a local variable is used to store apdev[#]['ifname'] before passing it as the argument to hostapd.add_ap(). Signed-off-by: Janusz Dziedzic <janusz.dziedzic@tieto.com>
* tests: Pass full apdev to add_ap() function (6)Janusz Dziedzic2016-04-031-4/+4
| | | | | | | | | | | Pass the full apdev to the add_ap() function instead of just ifname. This allows us to handle also remote hosts while we can check apdev['hostname'], apdev['port']. This step (6) converts the cases where apdevs[#]['ifname'] was used as the argument to hostapd.add_ap(). Signed-off-by: Janusz Dziedzic <janusz.dziedzic@tieto.com>
* tests: Pass full apdev to add_ap() function (5)Janusz Dziedzic2016-04-031-16/+16
| | | | | | | | | | | Pass the full apdev to the add_ap() function instead of just ifname. This allows us to handle also remote hosts while we can check apdev['hostname'], apdev['port']. This step (5) converts the cases that use the start_ap_wpa2_psk() helper function. Signed-off-by: Janusz Dziedzic <janusz.dziedzic@tieto.com>
* tests: Pass full apdev to add_ap() function (4)Janusz Dziedzic2016-04-0314-22/+22
| | | | | | | | | | | Pass the full apdev to the add_ap() function instead of just ifname. This allows us to handle also remote hosts while we can check apdev['hostname'], apdev['port']. This step (4) converts the cases that call hostapd.add_ap() from a helper function that got apdev[i] as an argument. Signed-off-by: Janusz Dziedzic <janusz.dziedzic@tieto.com>
* tests: Pass full apdev to add_ap() function (3)Janusz Dziedzic2016-04-031-31/+31
| | | | | | | | | | | Pass the full apdev to the add_ap() function instead of just ifname. This allows us to handle also remote hosts while we can check apdev['hostname'], apdev['port']. This step (3) converts the cases that use the start_ap() helper function. Signed-off-by: Janusz Dziedzic <janusz.dziedzic@tieto.com>
* tests: Pass full apdev to add_ap() function (2)Janusz Dziedzic2016-04-031-15/+15
| | | | | | | | | | | Pass the full apdev to the add_ap() function instead of just ifname. This allows us to handle also remote hosts while we can check apdev['hostname'], apdev['port']. This step (2) converts the cases that use the add_ssdp_ap() helper function. Signed-off-by: Janusz Dziedzic <janusz.dziedzic@tieto.com>
* tests: Pass full apdev to add_ap() function (1)Janusz Dziedzic2016-04-0360-1083/+1083
| | | | | | | | | | | Pass the full apdev to the add_ap() function instead of just ifname. This allows us to handle also remote hosts while we can check apdev['hostname'], apdev['port']. This step (1) converts the cases where apdev[#]['ifname'] was used as the argument to hostapd.add_ap(). Signed-off-by: Janusz Dziedzic <janusz.dziedzic@tieto.com>
* tests: Allow full apdev to be passed to add_ap() functionJanusz Dziedzic2016-04-031-3/+16
| | | | | | | | | | This allows the full apdev dict to be passed to the add_ap() function instead of just ifname. This allows us to handle also remote hosts while we can check apdev['hostname'], apdev['port']. The old style ifname argument is still accepted to avoid having to convert all callers in a single commit. Signed-off-by: Janusz Dziedzic <janusz.dziedzic@tieto.com>
* tests: EAP-SIM fast reauth with no-change SET_NETWORKJouni Malinen2016-03-311-0/+45
| | | | Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
* tests: SAE and bignum failuresJouni Malinen2016-03-271-1/+87
| | | | Signed-off-by: Jouni Malinen <j@w1.fi>
* tests: SAE and pwe failureJouni Malinen2016-03-271-1/+36
| | | | Signed-off-by: Jouni Malinen <j@w1.fi>
* tests: RADIUS accounting with various security casesJouni Malinen2016-03-271-1/+53
| | | | Signed-off-by: Jouni Malinen <j@w1.fi>
* tests: Suite B error cases for PMKID and MIC derivationJouni Malinen2016-03-271-9/+89
| | | | Signed-off-by: Jouni Malinen <j@w1.fi>
* tests: WNM BSS transition management with various PHY typesJouni Malinen2016-03-271-4/+34
| | | | Signed-off-by: Jouni Malinen <j@w1.fi>
* tests: DFS CAC functionality on channel 104 HT40-Jouni Malinen2016-03-272-1/+41
| | | | Signed-off-by: Jouni Malinen <j@w1.fi>
* tests: AP Channel Switch - invalid channelJouni Malinen2016-03-261-1/+11
| | | | Signed-off-by: Jouni Malinen <j@w1.fi>
* tests: Information element parsing OOMJouni Malinen2016-03-261-0/+13
| | | | Signed-off-by: Jouni Malinen <j@w1.fi>
* tests: Information element parsing - extra coverageJouni Malinen2016-03-261-0/+12
| | | | Signed-off-by: Jouni Malinen <j@w1.fi>
* tests: QCA vendor element parsingJouni Malinen2016-03-261-1/+1
| | | | Signed-off-by: Jouni Malinen <j@w1.fi>
* tests: Invalid VHT 80 and 80+80 MHz configuration (seg0/seg1)Jouni Malinen2016-03-261-0/+92
| | | | Signed-off-by: Jouni Malinen <j@w1.fi>
* tests: HT40 co-ex scan and broken legacy/HT APJouni Malinen2016-03-261-0/+46
| | | | Signed-off-by: Jouni Malinen <j@w1.fi>
* tests: HT40 on 5 GHz with disabled secondary channelJouni Malinen2016-03-261-0/+20
| | | | Signed-off-by: Jouni Malinen <j@w1.fi>
* tests: Fix FST cleanup if alloc_fail is not supportedJouni Malinen2016-03-261-4/+13
| | | | | | | | | | | | | The test cases fst_ap_start_session_oom and fst_setup_mbie_diff did not clean up FST sessions properly in case alloc_fail failed due to missing support for it in the build. This could result in abandoning attached hostapd global control interface monitors and test case failures due to the global control interface socket running out of output buffer. Fix this by going through the cleanup steps even if alloc_fail raises HwsimSkip exception. Signed-off-by: Jouni Malinen <j@w1.fi>
* tests: WNM BSS Transition Management and cfg80211 connect commandJouni Malinen2016-03-251-0/+53
| | | | | | | | For now, this is not enforcing cfg80211 reassociation since the needed changes do not yet exist in the upstream kernel. Once those changes are accepted, the TODO note in the test case can be addressed. Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
* tests: WNM BSS Transition Management and security mismatchJouni Malinen2016-03-241-0/+37
| | | | Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
* tests: Allow RC4-SHA failure in ap_wpa2_eap_fast_cipher_suitesJouni Malinen2016-03-211-5/+17
| | | | | | | This needs to be allowed with OpenSSL 1.1.0 since the RC4-based cipher has been disabled by default. Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
* tests: Improve debug logs in hostapd/wpasupplicant with remote commandsJanusz Dziedzic2016-03-202-22/+28
| | | | | | | Show more info when we are using remote wpaspy and UDP-based control interface. Signed-off-by: Janusz Dziedzic <janusz.dziedzic@tieto.com>
* tests: hostapd.py/wpasupplicant.py use Host when executing commandsJanusz Dziedzic2016-03-202-17/+17
| | | | | | | Execute commands using the Host class. This enables use of remote hosts as well. Signed-off-by: Janusz Dziedzic <janusz.dziedzic@tieto.com>
* tests: Add remotehost.py and Host classJanusz Dziedzic2016-03-201-0/+99
| | | | | | | | | | | | | | This class allows execution of commands on a remote hosts/machine. This is based on ssh with authorized keys, so you should be able to execute such commands without any password: ssh <user>@<hostname> id By default user is root. Support for sync and async calls is included. Signed-off-by: Janusz Dziedzic <janusz.dziedzic@tieto.com>
* tests: Add CONFIG_VLAN_NETLINK=y to hostapd build configurationJouni Malinen2016-03-201-0/+1
| | | | | | | | This is needed for ap_vlan_tagged_wpa2_radius_id_change to pass. The ioctl-based vlan_add() function does not use the vlan_if_name parameter at all. Signed-off-by: Jouni Malinen <j@w1.fi>
* tests: Secure mesh network and PMKSA cachingJouni Malinen2016-03-201-0/+158
| | | | Signed-off-by: Jouni Malinen <j@w1.fi>
* tests: PMKSA cache control interface operationsJouni Malinen2016-03-202-0/+58
| | | | Signed-off-by: Jouni Malinen <j@w1.fi>
* tests: Return result from WpaSupplicant::global_request() in all casesJouni Malinen2016-03-201-1/+1
| | | | | | | | | The no self.global_iface case was not returning the result from the self.request() case. While this is not really a path that is supposed to be used, make it return the response since it is at least theoretically possible to get here. Signed-off-by: Jouni Malinen <j@w1.fi>
* tests: wpa_supplicant AP mode - open network and HT disabledJouni Malinen2016-03-181-0/+15
| | | | Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
* tests: EAP-SIM and check fast reauth with bssid changeJouni Malinen2016-03-161-0/+41
| | | | Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
* tests: Accept "user@example.com" as user identity similarly to "user"Jouni Malinen2016-03-111-0/+1
| | | | | | | This is needed to allow updated Interworking behavior that adds the realm to the EAP-Response/Identity value. Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
* tests: Set ocsp_stapling_response_multi in as2.confJouni Malinen2016-03-091-0/+1
| | | | | | This keeps the as.conf and as2.conf more consistent. Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
* tests: Fix root_ocsp() for multi-OCSP test casesJouni Malinen2016-03-091-22/+3
| | | | | | | | | | | Incorrect path and file name was used in the openssl command to generate one of the OCSP responses. Also fix ap_wpa2_eap_tls_intermediate_ca_ocsp_multi to expect success rather than failure due to OCSP response. Based on the test description, this was supposed to succeed, but apparently that root_ocsp() bug prevented this from happening. Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
* tests: Add tests for HS 2.0 frame filteringJohannes Berg2016-03-072-4/+221
| | | | Signed-off-by: Johannes Berg <johannes.berg@intel.com>
* tests: Add a test for mesh gate forwardingBob Copeland2016-03-071-0/+51
| | | | | | | This test checks that mesh nodes forward frames for unknown destinations to the mesh gates. Signed-off-by: Bob Copeland <me@bobcopeland.com>
* tests: D-Bus AssocStatusCodeJouni Malinen2016-03-061-0/+51
| | | | Signed-off-by: Jouni Malinen <j@w1.fi>
* tests: Add hostapd.py helpers for various radio parametersJanusz Dziedzic2016-03-051-0/+49
| | | | | | | Add support for generating hostapd parameters for b_only/g_only/a_only/HT20/HT40/VHT80. Signed-off-by: Janusz Dziedzic <janusz.dziedzic@tieto.com>