aboutsummaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* tests: Secure mesh and the first plink Open droppedJouni Malinen2016-05-132-0/+53
| | | | | | | This is a regression test case to verify that MTK is calculated properly also in this unexpected sequence. Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
* tests: Open network connection with pmf=2Jouni Malinen2016-05-051-0/+23
| | | | | | | This verifies that pmf=2 is ignored for a non-RSN network while a network profile specific ieee80211w=2 is enforced. Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
* tests: wpa_supplicant config file parsing of arbitrary global valuesJouni Malinen2016-05-021-0/+52
| | | | Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
* tests: Use \t instead of \n in discovery_ctrl_char_in_devnameJouni Malinen2016-05-021-1/+1
| | | | | | | This is needed to allow the SET command to be modified to reject newline characters. Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
* tests: wpa_supplicant config parsing of arbitrary cred valuesJouni Malinen2016-05-021-0/+48
| | | | Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
* tests: wpa_supplicant config file writing with arbitrary PSK valueJouni Malinen2016-05-021-0/+45
| | | | Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
* tests: wpa_supplicant config file parsing/writing with WPSJouni Malinen2016-05-023-0/+96
| | | | | | | | This verifies that a WPA2PSK passphrase with control characters gets rejected in a WPS Credential and that control characters in SSID get written as a hexdump. Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
* tests: Do not use tabs for indentationJouni Malinen2016-04-247-52/+52
| | | | | | | Be more consistent with indentation (always uses spaces in Python files). Signed-off-by: Jouni Malinen <j@w1.fi>
* tests: Test configuration propagation to group interfaceAndrei Otcheretianski2016-04-241-0/+28
| | | | | | | | When a dedicated P2P Device interface is used, its configuration should be cloned to the group interface. Add a test that covers this both when a separate group interface is used and not. Signed-off-by: Andrei Otcheretianski <andrei.otcheretianski@intel.com>
* tests: Fix persistent_group_peer_dropped testsAndrei Otcheretianski2016-04-241-2/+2
| | | | | | | Use the global control interface to remove P2P network blocks, to support cases when a dedicated P2P Device interface is used. Signed-off-by: Andrei Otcheretianski <andrei.otcheretianski@intel.com>
* tests: Don't use proxy in urllib.urlopen()Andrei Otcheretianski2016-04-241-3/+4
| | | | | | | | Some environments define default system wide HTTP proxy. Using default system configuration may result in a failure to open some HTTP URLs. Fix this by ensuring that no proxies are used. Signed-off-by: Andrei Otcheretianski <andrei.otcheretianski@intel.com>
* tests: Use global control interface for P2P configurationsAndrei Otcheretianski2016-04-241-52/+52
| | | | Signed-off-by: Andrei Otcheretianski <andrei.otcheretianski@intel.com>
* tests: Use global control interface to set p2p_no_group_ifaceIlan Peer2016-04-242-16/+16
| | | | Signed-off-by: Ilan Peer <ilan.peer@intel.com>
* tests: Parse group results in a couple of p2p_channel testsIlan Peer2016-04-241-0/+2
| | | | | | | | In p2p_channel_vht80_autogo and p2p_channel_vht80p80_autogo, parse the P2P-GROUP-STARTED event prior to calling the group_request() method, as otherwise the group ifname is not set. Signed-off-by: Ilan Peer <ilan.peer@intel.com>
* tests: Modify use of GET command to support P2P Device interfaceAvraham Stern2016-04-241-2/+2
| | | | | | | | Support configurations that use a dedicated P2P Device interface by using the global control interface and specifying the interface name for the GET commands fetching the ip_addr_go parameter. Signed-off-by: Avraham Stern <avraham.stern@intel.com>
* tests: persistent_group_profile_add to support P2P Device interfaceAvraham Stern2016-04-242-5/+26
| | | | | | | | | Modify the persistent_group_profile_add test to support configurations that use a dedicated P2P Device interface by sending the ADD_NETWORK and SET_NETWORK commands on the global control interface and specifying the P2P Device interface name. Signed-off-by: Avraham Stern <avraham.stern@intel.com>
* tests: Store P2P Device ifname in class WpaSupplicantAvraham Stern2016-04-241-0/+10
| | | | | | | | | | | | | | Add an attribute to class WpaSupplicant with the name of the P2P Device interface. If a separate interface is not used for P2P Device, this attribute will hold the name of the only used interface (with functions also as the P2P Device management interface). This attribute will be used to direct P2P related commands to the P2P Device interface, which is needed for configurations that use a separate interface for the P2P Device. Signed-off-by: Avraham Stern <avraham.stern@intel.com>
* tests: Modify p2p_msg_long_ssid to support P2P Device interfaceAvraham Stern2016-04-241-1/+1
| | | | | | | | Waiting for the P2P-DEVICE-FOUND event should be done on the global control interface to support configurations that use a dedicated P2P Device interface. Signed-off-by: Avraham Stern <avraham.stern@intel.com>
* tests: Modify autogo_scan to support P2P Device interfaceAvraham Stern2016-04-241-4/+10
| | | | | | | | | | | | Support configurations that use a dedicated P2P Device interface by sending the P2P_CONNECT command on the global control interface. In addition, when a dedicated P2P Device interface is used, there is no need to manually respond to the Provision Discovery Request since the request is processed by the P2P Device interface and this interface was not set for external RX management frames handling. Signed-off-by: Avraham Stern <avraham.stern@intel.com>
* tests: Fix error message in test_p2ps_connect_p2ps_method_4()Ilan Peer2016-04-241-2/+2
| | | | | | | This fixes commit 2f0f69a9ec93e063822628578bceb947cf083918 ('tests: Use p2ps_provision() and p2ps_connect_pd() in p2ps_connect_p2ps_method()'). Signed-off-by: Ilan Peer <ilan.peer@intel.com>
* tests: Add couple of roam failure testsIlan Peer2016-04-241-0/+53
| | | | | | | 1. Fail roaming to an AP which exceeded its number of allowed stations. 2. Fail roaming due to passphrase mismatch. Signed-off-by: Ilan Peer <ilan.peer@intel.com>
* tests: Remove unused eap_connect importJouni Malinen2016-04-241-1/+0
| | | | Signed-off-by: Jouni Malinen <j@w1.fi>
* tests: Convert Host() class to use list of arguments instead of stringJouni Malinen2016-04-243-13/+9
| | | | | | | | It is better to use a list of command line arguments for the local execution case and convert that to a space-separated string for the remote case. Signed-off-by: Jouni Malinen <j@w1.fi>
* tests: Print traceback if test failsJanusz Dziedzic2016-04-241-0/+2
| | | | | | This is useful in case we hit a problem in test code. Signed-off-by: Janusz Dziedzic <janusz.dziedzic@tieto.com>
* tests: Use hapd from hostapd.add_bss()Janusz Dziedzic2016-04-242-9/+4
| | | | Signed-off-by: Janusz Dziedzic <janusz.dziedzic@tieto.com>
* tests: Use hapd from hostapd.add_ap()Janusz Dziedzic2016-04-249-234/+166
| | | | Signed-off-by: Janusz Dziedzic <janusz.dziedzic@tieto.com>
* tests: Use hapd from hostapd.add_ap() in start_ap_er()Janusz Dziedzic2016-04-241-20/+16
| | | | Signed-off-by: Janusz Dziedzic <janusz.dziedzic@tieto.com>
* tests: Use hapd from hostapd.add_ap() in TDLSJanusz Dziedzic2016-04-241-47/+45
| | | | Signed-off-by: Janusz Dziedzic <janusz.dziedzic@tieto.com>
* tests: Pass apdev to HostapdGlobal() in ap_add_with_driverJanusz Dziedzic2016-04-241-2/+7
| | | | | | This is needed for running the test with a remote host. Signed-off-by: Janusz Dziedzic <janusz.dziedzic@tieto.com>
* tests: Use hapd from hostapd.add_ap() in eap_connect()Janusz Dziedzic2016-04-242-256/+251
| | | | Signed-off-by: Janusz Dziedzic <janusz.dziedzic@tieto.com>
* tests: Use hapd from hostapd.add_iface()Janusz Dziedzic2016-04-243-11/+4
| | | | | | Since add_iface() now returns the correct hapd, just use it. Signed-off-by: Janusz Dziedzic <janusz.dziedzic@tieto.com>
* tests: Pass apdev to HostapdGlobal()Janusz Dziedzic2016-04-245-7/+7
| | | | | | This can be used to work with remote hosts. Signed-off-by: Janusz Dziedzic <janusz.dziedzic@tieto.com>
* tests: Replace HostapdGlobal() + remove() with hostapd.remove_bss()Janusz Dziedzic2016-04-246-25/+17
| | | | | | This can be used to work with remote hosts. Signed-off-by: Janusz Dziedzic <janusz.dziedzic@tieto.com>
* tests: Use hostapd.add_ap() instead of HostapdGlobal() (DFS)Janusz Dziedzic2016-04-241-7/+1
| | | | | | | This makes the DFS test cases that use start_dfs_ap() more usable for testing with remote hosts. Signed-off-by: Janusz Dziedzic <janusz.dziedzic@tieto.com>
* tests: Use hostapd.remove_bss() instead of HostapdGlobal() (WPS)Janusz Dziedzic2016-04-241-6/+3
| | | | | | This makes ap_wps_twice more usable for testing with remote hosts. Signed-off-by: Janusz Dziedzic <janusz.dziedzic@tieto.com>
* tests: Use hostapd.add_ap() instead of HostapdGlobal() (PSK)Janusz Dziedzic2016-04-241-7/+1
| | | | | | This makes ap_cli_order more usable for testing with remote hosts. Signed-off-by: Janusz Dziedzic <janusz.dziedzic@tieto.com>
* tests: Remove HostapdGlobal() use from invalid_ap()Janusz Dziedzic2016-04-241-15/+6
| | | | | | | Pass apdev to instead of HostapdGlobal() to invalid_ap() to make the dynamic AP test cases more useful for testing with remove hosts. Signed-off-by: Janusz Dziedzic <janusz.dziedzic@tieto.com>
* tests: Remove direct HostapdGlobal() useJanusz Dziedzic2016-04-241-30/+11
| | | | | | | | Use hostapd.add_ap() and hostapd.remove_bss() to avoid direct HostapdGlobal() use in some of the dynamic AP test cases to make them more usable for testing with remote hosts. Signed-off-by: Janusz Dziedzic <janusz.dziedzic@tieto.com>
* tests: Return hapd when add_bss() and add_iface() are usedJanusz Dziedzic2016-04-241-0/+2
| | | | | | Return hapd from add_bss() and add_iface() while we can next use it. Signed-off-by: Janusz Dziedzic <janusz.dziedzic@tieto.com>
* tests: Pass apdev param to HostapdGlobal()Janusz Dziedzic2016-04-241-11/+13
| | | | | | | Pass apdev param to HostapdGlobal() to support operating with a remote test host. Signed-off-by: Janusz Dziedzic <janusz.dziedzic@tieto.com>
* tests: Pass apdev to hostapd.add_bss()Janusz Dziedzic2016-04-246-39/+68
| | | | | | | | Pass apdev param to hostapd.add_bss(). Kill hardcoded phy param and get phy base on apdev. These are needed to support operation with a remote test host. Signed-off-by: Janusz Dziedzic <janusz.dziedzic@tieto.com>
* tests: Pass apdev to hostapd.add_iface()Janusz Dziedzic2016-04-244-6/+14
| | | | | | | Pass apdev param to hostapd.add_iface() to support operation with a remote test host. Signed-off-by: Janusz Dziedzic <janusz.dziedzic@tieto.com>
* tests: Pass apdev to hostapd.terminate()Janusz Dziedzic2016-04-241-2/+9
| | | | | | | Pass apdev dictionary to hostapd.terminate() to support operation with a remote test host. Signed-off-by: Janusz Dziedzic <janusz.dziedzic@tieto.com>
* tests: Pass apdev to remove_bss()Janusz Dziedzic2016-04-242-22/+31
| | | | | | | We need this for remote host support. From apdev we can get apdev['hostname'] and apdev['port']. Signed-off-by: Janusz Dziedzic <janusz.dziedzic@tieto.com>
* tests: hostapd assocresp_elementsJouni Malinen2016-04-202-0/+3
| | | | Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
* tests: P2P_GROUP_MEMBERJouni Malinen2016-04-181-0/+9
| | | | Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
* tests: Add RRM testsDavid Spinadel2016-04-172-40/+303
| | | | | | | | | | | | | | 1. Add tests for hostapd neighbor database and neighbor report and request. Remove the partial neighbor report request test from test_wpas_ctrl.py since they are now covered more completely in test_rrm.py. 2. Add LCI request test. 3. Add FTM range request signaling test. This covers only the control interface commands and measurement request/response exchange for now. Full end-to-end functionality requires support of station reporting RRM capability. Signed-off-by: David Spinadel <david.spinadel@intel.com>
* tests: Replace radio_measurements with rrm_neighbor_reportDavid Spinadel2016-04-161-1/+1
| | | | | | | This moves neighbor report testing to use the new hostapd.conf parameter. Signed-off-by: David Spinadel <david.spinadel@intel.com>
* tests: Update NEIGHBOR_REP_REQUEST formatDavid Spinadel2016-04-161-2/+2
| | | | | | | | | | | Use quotation marks to match the new SSID encoding format in the NEIGHBOR_REP_REQUEST command. In this specific test case, the exact SSID value did not make any difference for behavior. The previous version ended up getting decoded as a hexstring after the NEIGHBOR_REP_REQUEST format change. The new version goes back to the ASCII string version of "abcdef". Signed-off-by: David Spinadel <david.spinadel@intel.com>
* tests: AP with open mode and STA pollJouni Malinen2016-04-081-0/+14
| | | | Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>