aboutsummaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* tests: Add UDP checksum into DHCP frames in ProxyARP/DGAF disabled caseJouni Malinen2018-12-291-4/+13
| | | | | | | Previously, the special value 0 was used to indicate no UDP checksum. Replace that with the calculated checksum for more like use case. Signed-off-by: Jouni Malinen <j@w1.fi>
* tests: Clear regulatory Beacon hints more robustly in TDLS test casesJouni Malinen2018-12-291-28/+20
| | | | | | | | | | | | The ap_open_tdls_vht* test cases could leave some pending regulatory Beacon hints waiting to be cleared during the following test case. This would result in a failure if the following test case expected specific regdom event behavior. For example, this caused "ap_open_tdls_vht160 dbus_country" sequence to result in failure in dbus_country. Fix this by using more robust sequence in clearing regdom state at the end of the TDLS test cases that have the AP advertising a country code. Signed-off-by: Jouni Malinen <j@w1.fi>
* tests: MKA MIB informationJouni Malinen2018-12-291-0/+22
| | | | Signed-off-by: Jouni Malinen <j@w1.fi>
* tests: MACsec PSK with bridge interfaceJouni Malinen2018-12-291-0/+108
| | | | Signed-off-by: Jouni Malinen <j@w1.fi>
* tests: Use more robust way to determine MKA is done for MACsec testingJouni Malinen2018-12-291-13/+47
| | | | Signed-off-by: Jouni Malinen <j@w1.fi>
* tests: MACsec PSK local failures in CP state machineJouni Malinen2018-12-271-24/+71
| | | | Signed-off-by: Jouni Malinen <j@w1.fi>
* tests: MACsecJouni Malinen2018-12-261-0/+472
| | | | | | | Add some coverage for MACsec with the macsec_linux driver interface in wpa_supplicant. Signed-off-by: Jouni Malinen <j@w1.fi>
* tests: Allow TX/RX data test to use different frame lengthJouni Malinen2018-12-241-3/+36
| | | | | | This is needed for MACsec test cases with a bit shorter MTU. Signed-off-by: Jouni Malinen <j@w1.fi>
* tests: Do not override connectivity test address if no driver infoJouni Malinen2018-12-241-2/+6
| | | | | | | | Not all driver interfaces provide driver status information with the local address, so skip the override step if the field is not available. This is needed, e.g., with macsec_linux. Signed-off-by: Jouni Malinen <j@w1.fi>
* tests: AP mode and D-Bus StationAdded/StationRemoved signalsJouni Malinen2018-12-231-4/+51
| | | | Signed-off-by: Jouni Malinen <j@w1.fi>
* tests: Validate that AP doesn't reflect station framesJohannes Berg2018-12-231-0/+27
| | | | | | | | | Add a new test to check that the AP won't send frames to the client if it tries to talk to itself. Note that this fails until the relevant mac80211 patch is merged. Signed-off-by: Johannes Berg <johannes.berg@intel.com>
* tests: Fix AP wait in ap_require_ht and ap_require_ht_limited_ratesJouni Malinen2018-12-231-2/+2
| | | | | | | | | | These test cases seemed to have copy-paste errors where wait_enabled=False was forgotten even though there was no additional steps checking the AP mode startup results. This did not break the tests, but could have resulted in slowing them down if the STAs did not find the AP in the first scan. Signed-off-by: Jouni Malinen <j@w1.fi>
* tests: HT STBC overridesJouni Malinen2018-12-231-0/+11
| | | | Signed-off-by: Jouni Malinen <j@w1.fi>
* tests: Allow overriding HT STBC capabilitiesSergey Matyukevich2018-12-232-2/+2
| | | | Signed-off-by: Sergey Matyukevich <sergey.matyukevich.os@quantenna.com>
* tests: Automatic channel selection, HT scan, and DFSJouni Malinen2018-12-232-3/+56
| | | | Signed-off-by: Jouni Malinen <j@w1.fi>
* tests: Work around cfg80211 reg.c intersection (country 98) issuesJouni Malinen2018-12-239-38/+176
| | | | | | | | | | | | | | | | | The Linux kernel commit 113f3aaa81bd ("cfg80211: Prevent regulatory restore during STA disconnect in concurrent interfaces") broke the regulatory clearing attempt in many test cases since cfg80211_is_all_idle() is now returning false due to the AP interface being up and that results in the Country IE -based regulatory information not getting cleared back to defaults. Work around this by stopping the AP interface first so that when the station interface receives the disconnection, there are no other active interfaces in the system. In addition, wait for REGDOM event for the Country IE hint after association to avoid disconnection before the regulatory events have been fully processed. Signed-off-by: Jouni Malinen <j@w1.fi>
* tests: Fix mbo_supp_oper_classes after cfg80211 changeJouni Malinen2018-12-222-2/+20
| | | | | | | | | | | | | | | | | The Linux kernel commit 113f3aaa81bd ("cfg80211: Prevent regulatory restore during STA disconnect in concurrent interfaces") broke the regulatory clearing attempt in this test case since cfg80211_is_all_idle() is now returning false due to the AP interface being up and that results in the Country IE -based regulatory information not getting cleared back to defaults. Work around this by stopping the AP interface first so that when the station interface receives the disconnection, there are no other active interfaces in the system. In addition, wait for REGDOM event for the Country IE hint after association to avoid disconnection before the regulatory events have been fully processed. Signed-off-by: Jouni Malinen <j@w1.fi>
* tests: Enable dynamic debug from cfg80211/mac80211Jouni Malinen2018-12-211-1/+1
| | | | | | These debug logs were lost due to CONFIG_DYNAMIC_DEBUG=y. Signed-off-by: Jouni Malinen <j@w1.fi>
* tests: hostapd.vlan with bridge ifnameJouni Malinen2018-12-213-0/+21
| | | | Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
* tests: DPP_CONFIGURATOR_SIGN without double spaceJouni Malinen2018-12-211-2/+2
| | | | Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
* tests: Be more careful in clearing REGDOM stateJouni Malinen2018-12-201-36/+22
| | | | | | | | | | | | | | | | cfg80211 regulatory code gets into pretty inconvenient state if it needs to intersect regulatory domain information from multiple regulations (country=98). The existing mechanisms in the hwsim test cases are not able to clear that up for the following test case and this can result in large number of failures. It looks like country=98 case is hit frequently in WNM test cases where a station associates with an AP that advertises a specific country code and that station is then asked to disconnect before the REGDOM events have been received. Avoid this by waiting for the REGDOM events for the init=COUNTRY_IE case before disconnecting. Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
* tests: Connect attempt with transmitting/nontransmitting BSSJouni Malinen2018-12-201-0/+47
| | | | | | | | This adds some minimal testing for Multi-BSS connection attempts. The part for nontransmitted BSS is limited since hostapd/mac80211 does not yet have sufficient support for Multi-BSS in AP mode. Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
* tests: Additional Multiple BSSID IE parsing testsPeng Xu2018-12-201-0/+188
| | | | Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
* tests: Multiple BSSID element in scan resultsJouni Malinen2018-12-201-0/+153
| | | | Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
* tests: Multi-AP associationJouni Malinen2018-12-202-1/+75
| | | | Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
* tests: OCI validation in WNM-Sleep Exit frames (OCV)Mathy Vanhoef2018-12-171-1/+134
| | | | Signed-off-by: Mathy Vanhoef <Mathy.Vanhoef@cs.kuleuven.be>
* tests: OCI validation in the AMPE handshake (OCV)Mathy Vanhoef2018-12-171-1/+136
| | | | Signed-off-by: Mathy Vanhoef <Mathy.Vanhoef@cs.kuleuven.be>
* tests: OCI validation in the FILS handshake (OCV)Mathy Vanhoef2018-12-171-0/+61
| | | | Signed-off-by: Mathy Vanhoef <Mathy.Vanhoef@cs.kuleuven.be>
* tests: OCI validation in SA Query frames (OCV)Mathy Vanhoef2018-12-171-1/+66
| | | | Signed-off-by: Mathy Vanhoef <Mathy.Vanhoef@cs.kuleuven.be>
* tests: OCI validation in the FT handshake (OCV)Mathy Vanhoef2018-12-171-1/+46
| | | | Signed-off-by: Mathy Vanhoef <Mathy.Vanhoef@cs.kuleuven.be>
* tests: OCI validation in the 4-way and group key handshakes (OCV)Mathy Vanhoef2018-12-172-1/+865
| | | | | | | | | | | Perform detailed tests with OCV enabled, for both the 4-way and group key handshakes. These tests include establishing a working connection with OCV enabled, assuring that a STA without OCV enabled can still connect to a STA with OCV enabled (and vice versa), verifying that invalid OCI elements get silently ignored, verifying that missing OCI elements are reported, and so on. Signed-off-by: Mathy Vanhoef <Mathy.Vanhoef@cs.kuleuven.be>
* tests: Enable OCV in the testing buildsMathy Vanhoef2018-12-172-0/+4
| | | | Signed-off-by: Mathy Vanhoef <Mathy.Vanhoef@cs.kuleuven.be>
* tests: Hotspot 2.0 AAA server behavior for SIM provisioningJouni Malinen2018-12-151-0/+92
| | | | Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
* tests: wpa_supplicant config file writing and key_mgmt valuesJouni Malinen2018-12-081-0/+61
| | | | Signed-off-by: Jouni Malinen <j@w1.fi>
* tests: Remove parallel-vm.shJouni Malinen2018-12-081-38/+0
| | | | | | | parallel-vm.py has obsoleted this a long time ago and there is no need to maintain two scripts for doing more or less the same thing. Signed-off-by: Jouni Malinen <j@w1.fi>
* tests: Add dfs_etsi to the long_tests listJouni Malinen2018-12-081-1/+2
| | | | Signed-off-by: Jouni Malinen <j@w1.fi>
* tests: Hotspot 2.0 connection attempt without PMFJouni Malinen2018-12-081-0/+24
| | | | Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
* tests: Fix ap_hs20_deauth_req_without_pmfJouni Malinen2018-12-081-1/+7
| | | | | | | | Now that hostapd starts mandating PMF for Hotspot 2.0 Release 2 association, this test case needs some more tweaks to work. Hardcode Hotspot 2.0 Release 1 to be used and disable PMF explicitly. Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
* tests: Fix ap_hs20_ft with PMF enabledJouni Malinen2018-12-081-5/+7
| | | | | | | | The Beacon loss event was not reported anymore, so remove that as an unnecessary step in the test case. In addition, check the key_mgmt values explicitly. Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
* tests: Enable PMF in ap_hs20_unexpected configurationJouni Malinen2018-12-081-0/+2
| | | | | | | This is needed to meet the Hotspot 2.0 Release 2 requirement for the third station that is actually using RSN. Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
* tests: Enable PMF in ap_hs20_external_selection network profileJouni Malinen2018-12-081-0/+1
| | | | | | This is required for Hotspot 2.0 Release 2. Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
* tests: Hotspot 2.0 release number indicationJouni Malinen2018-12-081-1/+23
| | | | Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
* tests: Update Hotspot 2.0 release number expectation to 3Jouni Malinen2018-12-081-4/+4
| | | | | | | Match the implementation change to fix the test cases that verified a specific Hotspot 2.0 release number indication. Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
* tests: Connect to WPS AP with NFC connection handover (local failure)Jouni Malinen2018-12-041-0/+25
| | | | | | | This is a regression test case for a potential NULL pointer dereferencing fixed in the previous commit. Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
* tests: Opportunistic Wireless Encryption association rejection handlingJouni Malinen2018-12-021-0/+38
| | | | Signed-off-by: Jouni Malinen <j@w1.fi>
* tests: DPP network addition failureJouni Malinen2018-12-021-0/+46
| | | | Signed-off-by: Jouni Malinen <j@w1.fi>
* tests: DPP and continue listen stateJouni Malinen2018-12-021-0/+29
| | | | Signed-off-by: Jouni Malinen <j@w1.fi>
* tests: DPP_BOOTSTRAP_GEN/REMOVE/GET_URI/INFO error casesJouni Malinen2018-12-021-0/+51
| | | | Signed-off-by: Jouni Malinen <j@w1.fi>
* tests: DPP and unknown configurator idJouni Malinen2018-12-021-0/+19
| | | | Signed-off-by: Jouni Malinen <j@w1.fi>
* tests: DPP and PKEX with local failure in processing Commit Reveal ReqJouni Malinen2018-12-021-0/+33
| | | | Signed-off-by: Jouni Malinen <j@w1.fi>