Jouni Malinen
f8608fab85
SME: Fix SA Query local failure handling
...
If no new sme_sa_query_timer() callback is scheculed,
sme_stop_sa_query() needs to be called to allow new SA Query operations
to be started after the failure.
Signed-off-by: Jouni Malinen <j@w1.fi>
2016-07-18 00:57:34 +03:00
Jouni Malinen
ab6ab07ad1
Clear wpa_s->sme.last_unprot_disconnect.sec on FLUSH command
...
This is needed for hwsim test cases to allow multiple STA-initiated SA
Query operations in short amount of time.
Signed-off-by: Jouni Malinen <j@w1.fi>
2016-07-18 00:56:53 +03:00
Jouni Malinen
e0a9370b3f
tests: Overlapping BSS scan request (HT40+)
...
Signed-off-by: Jouni Malinen <j@w1.fi>
2016-07-18 00:14:34 +03:00
Jouni Malinen
dcbb5d808b
tests: FT OOM in SME
...
Signed-off-by: Jouni Malinen <j@w1.fi>
2016-07-18 00:14:14 +03:00
Jouni Malinen
674af173fe
tests: AP with open mode and driver operations failing
...
Signed-off-by: Jouni Malinen <j@w1.fi>
2016-07-17 23:49:44 +03:00
Jouni Malinen
28be769bc3
tests: SAE and invalid anti-clogging token request
...
Signed-off-by: Jouni Malinen <j@w1.fi>
2016-07-17 17:53:25 +03:00
Jouni Malinen
dcd54211c4
tests: IEEE 802.1X connection using dynamic WEP104 when WPA enabled
...
Signed-off-by: Jouni Malinen <j@w1.fi>
2016-07-17 17:34:16 +03:00
Jouni Malinen
d1150e5666
tests: IEEE 802.1X connection with LEAP included in configuration
...
Signed-off-by: Jouni Malinen <j@w1.fi>
2016-07-17 17:34:16 +03:00
Jouni Malinen
2fd44db70e
tests: More SAE OOM coverage
...
Signed-off-by: Jouni Malinen <j@w1.fi>
2016-07-17 17:34:16 +03:00
Jouni Malinen
19f2a3f357
tests: Hotspot 2.0 OSU provider and OOM
...
Signed-off-by: Jouni Malinen <j@w1.fi>
2016-07-17 11:08:02 +03:00
Jouni Malinen
f281f508b7
tests: Hotspot 2.0 OSU provider and invalid directory
...
Signed-off-by: Jouni Malinen <j@w1.fi>
2016-07-17 11:08:02 +03:00
Jouni Malinen
9636b07ae2
HS 2.0: Add an event message to note failed OSU provider write
...
Signed-off-by: Jouni Malinen <j@w1.fi>
2016-07-17 11:08:02 +03:00
Jouni Malinen
502f0ce848
tests: More GET_HS20_ICON coverage
...
Signed-off-by: Jouni Malinen <j@w1.fi>
2016-07-17 11:08:02 +03:00
Jouni Malinen
6fc562a406
tests: Unexpected Hotspot 2.0 AP configuration
...
Signed-off-by: Jouni Malinen <j@w1.fi>
2016-07-15 13:30:57 +03:00
Jouni Malinen
78d2233f01
tests: Fix ap_wpa2_eap_too_many_roundtrips with OpenSSL 1.1.0
...
Use a smaller fragment_size to force the roundtrip limit to be reached
with OpenSSL 1.1.0 which seemed to result in a bit shorter TLS messages
being used and being able to complete the authentication successfully
with the previously used fragment_size value.
Signed-off-by: Jouni Malinen <j@w1.fi>
2016-07-15 13:30:57 +03:00
Jouni Malinen
460e5cdf43
OpenSSL: Fix OpenSSL 1.1.0 DH operation
...
Commit 49fe2ada20
('OpenSSL: Support
OpenSSL 1.1.0 DH opacity') started using the new accessor functions, but
used incorrect success check for the DH_set0_key() call. This resulted
in dh5_init_fixed() failures and double-free on error path if the build
was linked against OpenSSL 1.1.0. Fix this by checking DH_set0_key()
return value to be 1 for the success case.
Signed-off-by: Jouni Malinen <j@w1.fi>
2016-07-15 13:30:57 +03:00
Jouni Malinen
ec9812e7e7
tests: Hotspot 2.0 OSU provider and protocol testing
...
Signed-off-by: Jouni Malinen <j@w1.fi>
2016-07-15 13:30:57 +03:00
Jouni Malinen
dd20eabd16
HS 2.0: Add optional no-scan parameter to FETCH_OSU
...
This is mainly for testing purposes to allow multiple FETCH_OSU ANQP
operations to be ran without having to wait for full scan between each
query.
Signed-off-by: Jouni Malinen <j@w1.fi>
2016-07-12 23:13:09 +03:00
Jouni Malinen
2752537926
tests: Hotspot 2.0 OSU provider and no icon found
...
Signed-off-by: Jouni Malinen <j@w1.fi>
2016-07-12 20:58:20 +03:00
Jouni Malinen
424e344fbf
tests: Hotspot 2.0 connection and deauthentication request without PMF
...
Signed-off-by: Jouni Malinen <j@w1.fi>
2016-07-12 20:49:02 +03:00
Jouni Malinen
21d410ca82
tests: GAS/ANQP and Hotspot 2.0 element protocol testing
...
Signed-off-by: Jouni Malinen <j@w1.fi>
2016-07-12 00:14:42 +03:00
Jouni Malinen
5dec77ee00
tests: GAS/ANQP and icon binary protocol testing
...
Signed-off-by: Jouni Malinen <j@w1.fi>
2016-07-12 00:05:35 +03:00
Jouni Malinen
f465c32dc2
Interworking: Define control interface message prefixes in wpa_ctrl.h
...
These control interface event message are used by external programs, so
define them a bit more formally in the header file.
Signed-off-by: Jouni Malinen <j@w1.fi>
2016-07-11 21:56:56 +03:00
Jouni Malinen
3e5f781800
tests: Extend GAS error case coverage
...
Signed-off-by: Jouni Malinen <j@w1.fi>
2016-07-11 21:56:56 +03:00
Jouni Malinen
99a9423c7b
HS 2.0: Make hs20_build_anqp_req() static
...
This function is not used outside hs20_supplicant.c.
Signed-off-by: Jouni Malinen <j@w1.fi>
2016-07-11 21:56:56 +03:00
Jouni Malinen
1c39f984fd
tests: Hotspot 2.0 icon fetch OOM with REQ_HS20_ICON
...
Signed-off-by: Jouni Malinen <j@w1.fi>
2016-07-11 21:56:56 +03:00
Jouni Malinen
75b2a87952
HS 2.0: Fix hs20_get_icon() error path
...
If base64_encode() fails (e.g., due to memory allocation failure), the
return value needs to be checked against NULL before using the (not
really) returned length value. The error path here ended up reading
uninitialized variable.
Signed-off-by: Jouni Malinen <j@w1.fi>
2016-07-04 19:35:18 +03:00
Jouni Malinen
8e590f02bd
tests: Hotspot 2.0 and connect attempt without matching cred
...
Signed-off-by: Jouni Malinen <j@w1.fi>
2016-07-04 18:54:26 +03:00
Jouni Malinen
6b16e073d3
tests: ANQP no sharing
...
Signed-off-by: Jouni Malinen <j@w1.fi>
2016-07-04 18:50:59 +03:00
Jouni Malinen
c342bb7a3d
tests: Hotspot 2.0 and select with multiple matching home credentials
...
Signed-off-by: Jouni Malinen <j@w1.fi>
2016-07-04 18:43:30 +03:00
Jouni Malinen
c63f2eb973
tests: Hotspot 2.0 connection with TTLS/default
...
Signed-off-by: Jouni Malinen <j@w1.fi>
2016-07-04 18:24:23 +03:00
Jouni Malinen
26e43f01ae
tests: Hotspot 2.0 and connect attempt without RSN
...
Signed-off-by: Jouni Malinen <j@w1.fi>
2016-07-04 18:24:23 +03:00
Jouni Malinen
99cbec7ea7
tests: Hotspot 2.0 and connect attempt without credential
...
Signed-off-by: Jouni Malinen <j@w1.fi>
2016-07-04 18:03:28 +03:00
Jouni Malinen
863a6bf6ae
tests: Hotspot 2.0 connection and invalid roaming consortium element
...
Signed-off-by: Jouni Malinen <j@w1.fi>
2016-07-04 18:00:23 +03:00
Jouni Malinen
63929c763a
tests: Hotspot 2.0 connection and 3GPP credential constraints
...
Signed-off-by: Jouni Malinen <j@w1.fi>
2016-07-04 17:49:57 +03:00
Jouni Malinen
604f559ae4
tests: Hotspot 2.0 and failures during profile configuration
...
Signed-off-by: Jouni Malinen <j@w1.fi>
2016-07-04 17:49:57 +03:00
Jouni Malinen
af52992a37
tests: Hotspot 2.0 connection and no full match
...
Signed-off-by: Jouni Malinen <j@w1.fi>
2016-07-04 17:49:57 +03:00
Jouni Malinen
0da9869b02
Interworking: Remove unused allow_excluded from interworking_connect()
...
This argument was set to a hardcoded value 1 and as such, the other
cases were not reachable.
Signed-off-by: Jouni Malinen <j@w1.fi>
2016-07-04 17:49:57 +03:00
Jouni Malinen
a7fa20e047
tests: Hotspot 2.0 connection and roaming consortium constraints
...
Signed-off-by: Jouni Malinen <j@w1.fi>
2016-07-04 17:49:57 +03:00
Jouni Malinen
416556d06b
tests: Hotspot 2.0 network selection with req_conn_capab (not present)
...
Signed-off-by: Jouni Malinen <j@w1.fi>
2016-07-04 17:49:56 +03:00
Jouni Malinen
73ece491c1
tests: D-Bus GetAll wpa_config_get_all() OOM
...
This is a regression test for a crash on wpa_config_get_all() error
path.
Signed-off-by: Jouni Malinen <j@w1.fi>
2016-07-04 17:49:56 +03:00
Jouni Malinen
8329ad4d06
Fix wpa_config_get_all() error path
...
The previous version did not really work at all and it ended up crashing
if the os_strdup(field->name) call failed.
Signed-off-by: Jouni Malinen <j@w1.fi>
2016-07-04 17:49:15 +03:00
Jouni Malinen
c8fa30f213
tests: Hotspot 2.0 OSU provider and no AP with info
...
Signed-off-by: Jouni Malinen <j@w1.fi>
2016-07-03 22:37:01 +03:00
Jouni Malinen
3429e2ff36
tests: GAS/ANQP query OOM
...
Signed-off-by: Jouni Malinen <j@w1.fi>
2016-07-03 22:37:01 +03:00
Jouni Malinen
60547477e0
tests: ANQP_GET to unknown BSS
...
Signed-off-by: Jouni Malinen <j@w1.fi>
2016-07-03 22:37:01 +03:00
Jouni Malinen
69e85c7fb3
tests: GAS_REQUEST OOM
...
Signed-off-by: Jouni Malinen <j@w1.fi>
2016-07-03 22:37:01 +03:00
Jouni Malinen
1ea75c7ce0
tests: Hotspot 2.0 network selection and invalid GAS response
...
Signed-off-by: Jouni Malinen <j@w1.fi>
2016-07-03 22:37:01 +03:00
Jouni Malinen
1169516b62
tests: Hotspot 2.0 and maximum BSS load (roaming)
...
Signed-off-by: Jouni Malinen <j@w1.fi>
2016-07-03 22:37:01 +03:00
Jouni Malinen
a0061cf48f
tests: Hotspot 2.0 network selection with min bandwidth - special cases
...
Signed-off-by: Jouni Malinen <j@w1.fi>
2016-07-03 22:37:01 +03:00
Jouni Malinen
43e337f70c
tests: Hotspot 2.0 required roaming consortium and no match
...
Signed-off-by: Jouni Malinen <j@w1.fi>
2016-07-03 22:37:01 +03:00