Jouni Malinen
615d8a9705
tests: Add room for more vendor elems in wpas_ctrl_vendor_elem
...
This test case was verifying that the first unused VENDOR_ELEM value
above the current maximum is rejected. That makes it a bit inconvenient
to add new entries, so increase the elem value to leave room for new
additions without having to continuously modify this test case.
Signed-off-by: Jouni Malinen <j@w1.fi>
2015-01-14 01:12:56 +02:00
Jouni Malinen
c2096d9981
tests: bssid_blacklist and bssid_whitelist
...
Signed-off-by: Jouni Malinen <j@w1.fi>
2015-01-10 17:35:53 +02:00
Jouni Malinen
f12240a371
tests: Memory allocation failure in wpa_supplicant blacklist
...
Signed-off-by: Jouni Malinen <j@w1.fi>
2015-01-08 22:43:48 +02:00
Jouni Malinen
5434f07c20
tests: TDLS channel switching
...
Verify correct behavior with invalid commands. In addition, allow minor
mac80211_hwsim modifications to be used to enable testing of the driver
interface to enable and disable channel switching.
Signed-off-by: Jouni Malinen <j@w1.fi>
2015-01-04 21:46:38 +02:00
Jouni Malinen
e2a8db7785
tests: Report missing erp support more nicely in wpas_ctrl_get_capability
...
Signed-off-by: Jouni Malinen <j@w1.fi>
2014-12-29 15:49:05 +02:00
Jouni Malinen
9828b70ebd
tests: Fix wpas_ctrl_data_test with Linux 3.19-rc1
...
The kernel commit 'packet: make packet_snd fail on len smaller than l2
header' started rejecting <= 14 octet raw packet socket transmission.
This test case was testing with 14 ocets and that is now rejected by the
kernel. While this may be a kernel side issue, use one octet longer test
data for now to avoid undesired FAIL cases in hwsim tests.
Signed-off-by: Jouni Malinen <j@w1.fi>
2014-12-23 12:27:14 +02:00
Jouni Malinen
5f35a5e27f
tests: Add wait_connected() and wait_disconnected() helpers
...
Signed-off-by: Jouni Malinen <j@w1.fi>
2014-12-20 13:10:09 +02:00
Jouni Malinen
6eae42f98f
tests: Additional coverage for miscellaneous ctrl_iface commands
...
Signed-off-by: Jouni Malinen <j@w1.fi>
2014-12-14 02:28:02 +02:00
Jouni Malinen
70d29ec946
tests: Extend RRM neighbor request testing
...
This uses a new testing mode in hostapd to allow RRM neighbor request
transmittion to be tested. For the second part of the test case to be
executed, mac80211_hwsim needs to be modified to claim support for the
required RRM capabilities (that change is not yet in Linux kernel).
Signed-off-by: Jouni Malinen <j@w1.fi>
2014-12-12 21:09:32 +02:00
Jouni Malinen
357edd386f
tests: Additional VENDOR_ELEM coverage
...
Signed-off-by: Jouni Malinen <j@w1.fi>
2014-12-12 20:12:24 +02:00
Jouni Malinen
d655bbc797
tests: DATA_TEST_* error cases
...
Signed-off-by: Jouni Malinen <j@w1.fi>
2014-12-12 19:33:54 +02:00
Jouni Malinen
b854d3c85d
tests: EAPOL_RX failure cases
...
Signed-off-by: Jouni Malinen <j@w1.fi>
2014-12-12 19:16:34 +02:00
Jouni Malinen
f157078c13
tests: DRIVER_EVENT failure case
...
Signed-off-by: Jouni Malinen <j@w1.fi>
2014-12-12 19:08:24 +02:00
Jouni Malinen
3d9848967a
tests: Additional MGMT_TX coverage
...
Signed-off-by: Jouni Malinen <j@w1.fi>
2014-12-12 19:05:00 +02:00
Jouni Malinen
9c1be553c8
tests: Invalid VENDOR command
...
Signed-off-by: Jouni Malinen <j@w1.fi>
2014-12-12 00:10:52 +02:00
Jouni Malinen
a5c43328d9
tests: Additional GET_CAPABILITY coverage
...
Signed-off-by: Jouni Malinen <j@w1.fi>
2014-12-08 11:42:07 +02:00
Jouni Malinen
8c020b0f05
tests: Additional DUP_NETWORK coverage
...
Signed-off-by: Jouni Malinen <j@w1.fi>
2014-12-08 11:42:07 +02:00
Jouni Malinen
feb795d6d3
tests: wpa_supplicant ctrl_iface BSSID command error case
...
Signed-off-by: Jouni Malinen <j@w1.fi>
2014-12-08 11:07:56 +02:00
Jouni Malinen
67966089a6
tests: wpa_supplicant ctrl_iface CTRL-RSP-
...
Signed-off-by: Jouni Malinen <j@w1.fi>
2014-12-08 11:07:56 +02:00
Jouni Malinen
1490eff500
tests: More coverage for WPS NFC error and uncommon cases
...
Signed-off-by: Jouni Malinen <j@w1.fi>
2014-12-08 11:07:56 +02:00
Jouni Malinen
19ef208640
tests: wpa_supplicant ctrl_iface SET operations
...
This adds more test coverage for wpa_supplicant SET ctrl_iface command.
Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
2014-12-05 16:29:08 +02:00
Jouni Malinen
556408940e
tests: SET disallow_aps in P2P GO mode
...
Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
2014-12-05 16:21:10 +02:00
Jouni Malinen
8201054da6
tests: Huge number of network blocks and LIST_NETWORKS LAST_ID
...
Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
2014-12-02 23:47:34 +02:00
Jouni Malinen
986ed3a9ca
tests: NEIGHBOR_REP_REQUEST failure cases
...
Signed-off-by: Jouni Malinen <j@w1.fi>
2014-11-22 21:49:45 +02:00
Jouni Malinen
9d3d2dbdcb
tests: IP address in STATUS
...
Signed-off-by: Jouni Malinen <j@w1.fi>
2014-10-26 10:21:48 +02:00
Jouni Malinen
8094a0077a
tests: Fix wpas_ctrl_country to match the fixed event data
...
This test case for enforcing the incorrect init=DRIVER instead of
init=CORE for the event due to bug in the event message.
Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
2014-07-02 13:34:34 +03:00
Jouni Malinen
487a31f355
tests: Make wpas_ctrl_bssid_filter more robust
...
Use scan_for_bss() to make sure the AP is seen even under heavy CPU
load.
Signed-off-by: Jouni Malinen <j@w1.fi>
2014-05-15 18:38:11 +03:00
Jouni Malinen
c126cb4d1c
tests: Make pmksa_cache_on_roam_back more robust
...
The single channel scan while associated to another AP and immediately
after starting the second AP can miss the Probe Response frame
especially under heavy CPU load. Avoid false error reports by allowing
multiple scan rounds to be performed. wpas_ctrl_bssid_filter is also
modified to take into account different get_bss() behavior.
Signed-off-by: Jouni Malinen <j@w1.fi>
2014-05-15 16:56:45 +03:00
Jouni Malinen
4162db59ae
tests: DUP_NETWORK
...
Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
2014-05-12 19:43:59 +03:00
Jouni Malinen
60b9422080
tests: ROAM error cases
...
Signed-off-by: Jouni Malinen <j@w1.fi>
2014-04-29 15:05:18 +03:00
Jouni Malinen
b102823ddc
tests: GET_CAPABILITY special cases
...
Signed-off-by: Jouni Malinen <j@w1.fi>
2014-04-29 15:05:18 +03:00
Jouni Malinen
657f50df27
tests: SET_CRED/GET_CRED error cases
...
Signed-off-by: Jouni Malinen <j@w1.fi>
2014-04-29 15:05:18 +03:00
Jouni Malinen
7b85a9430f
tests: Additional REMOVE_CRED coverage
...
Signed-off-by: Jouni Malinen <j@w1.fi>
2014-04-29 15:05:18 +03:00
Jouni Malinen
5cff0ae2e3
tests: Large number of creds and LIST_CREDS truncation
...
Signed-off-by: Jouni Malinen <j@w1.fi>
2014-04-29 15:05:18 +03:00
Jouni Malinen
733c8acf6f
tests: SET/GET_NETWORK failure cases
...
Signed-off-by: Jouni Malinen <j@w1.fi>
2014-04-29 12:52:10 +03:00
Jouni Malinen
5f0e59329b
tests: Invalid MAC address with BLACKLIST
...
Signed-off-by: Jouni Malinen <j@w1.fi>
2014-04-29 12:52:10 +03:00
Jouni Malinen
20fd210a56
tests: WPS command error cases
...
Signed-off-by: Jouni Malinen <j@w1.fi>
2014-04-29 12:52:10 +03:00
Jouni Malinen
2a354dc06f
tests: More converage for INTERFACE_ADD
...
Signed-off-by: Jouni Malinen <j@w1.fi>
2014-04-15 23:50:49 +03:00
Jouni Malinen
d21939a6fb
tests: wpa_supplicant global control interface and SUSPEND/RESUME
...
Signed-off-by: Jouni Malinen <j@w1.fi>
2014-04-15 00:06:12 +03:00
Jouni Malinen
2b46e69811
tests: Try to work around bogus errors in wpas_ctrl_country
...
It seems like it is possible for a CTRL-EVENT-REGDOM-CHANGE event from a
previous test case to "leak" through to the execution of this test case.
That can result in the validation steps here failing, so wait a bit and clear the pending events before starting the test.
Signed-off-by: Jouni Malinen <j@w1.fi>
2014-04-14 00:45:25 +03:00
Jouni Malinen
aed1c0564f
tests: NFC_GET_HANDOVER_REQ/SEL
...
Signed-off-by: Jouni Malinen <j@w1.fi>
2014-04-13 19:25:00 +03:00
Jouni Malinen
ad38f1f05e
tests: WPS_NFC_TAG_READ error cases
...
Signed-off-by: Jouni Malinen <j@w1.fi>
2014-04-13 18:46:05 +03:00
Jouni Malinen
c9075f6266
tests: wpa_supplicant country code SET/GET
...
Signed-off-by: Jouni Malinen <j@w1.fi>
2014-04-13 16:33:18 +03:00
Jouni Malinen
e4ac747c5f
tests: ENABLE/DISABLE_NETWORK
...
Signed-off-by: Jouni Malinen <j@w1.fi>
2014-04-13 10:26:52 +03:00
Jouni Malinen
c7a4bf8284
tests: ctrl_iface LIST_CREDS
...
Signed-off-by: Jouni Malinen <j@w1.fi>
2014-04-13 10:26:52 +03:00
Jouni Malinen
939f5b2624
tests: ctrl_iface SCAN_RESULTS
...
Signed-off-by: Jouni Malinen <j@w1.fi>
2014-04-13 10:26:52 +03:00
Jouni Malinen
82146a863d
tests: ctrl_iface LOG_LEVEL
...
Signed-off-by: Jouni Malinen <j@w1.fi>
2014-04-13 10:26:52 +03:00
Jouni Malinen
2eaf55c2be
tests: ctrl_iface BLACKLIST
...
Signed-off-by: Jouni Malinen <j@w1.fi>
2014-04-13 10:26:51 +03:00
Jouni Malinen
23fbf45cf5
tests: ctrl_iface BSSID command
...
Signed-off-by: Jouni Malinen <j@w1.fi>
2014-04-13 10:26:51 +03:00
Jouni Malinen
d6e88ee9e8
tests: NFC_REPORT_HANDOVER error cases
...
Signed-off-by: Jouni Malinen <j@w1.fi>
2014-04-13 10:26:51 +03:00