mech_eap.git
7 years agomesh: Make DTIM period configurable
Masashi Honma [Fri, 8 Jul 2016 05:42:48 +0000 (14:42 +0900)]
mesh: Make DTIM period configurable

Signed-off-by: Masashi Honma <masashi.honma@gmail.com>
7 years agomesh: Stop joining to different frequency network
Masashi Honma [Fri, 8 Jul 2016 02:39:13 +0000 (11:39 +0900)]
mesh: Stop joining to different frequency network

Signed-off-by: Masashi Honma <masashi.honma@gmail.com>
7 years agomesh: Join an existing MBSS instead of creating a new one
Masashi Honma [Fri, 8 Jul 2016 02:39:12 +0000 (11:39 +0900)]
mesh: Join an existing MBSS instead of creating a new one

If scan results show a matching existing MBSS, join it instead of
creating a new MBSS.

Signed-off-by: Masashi Honma <masashi.honma@gmail.com>
7 years agogitignore static library files
Mikael Kanstrup [Thu, 7 Jul 2016 12:09:07 +0000 (14:09 +0200)]
gitignore static library files

Signed-off-by: Mikael Kanstrup <mikael.kanstrup@sonymobile.com>
7 years agoP2Ps: Clear existing value when peer stops sending adv_service_instance
Nishant Chaprana [Tue, 5 Jul 2016 09:41:45 +0000 (15:11 +0530)]
P2Ps: Clear existing value when peer stops sending adv_service_instance

If a peer stops sending adv_service_instance, we should clear the
existing dev->info.p2ps_instance.

This commit fixes the following scenario:

When peer device stops sending adv_service_instance, wpa_supplicant did
not remove old dev->info.p2ps_instance from device's property. This
variable should be updated as per peer behavior and should be cleared
when peer stops sending this information.

Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
7 years agotests: DRIVER_FLAGS command
Jouni Malinen [Sat, 23 Jul 2016 17:51:55 +0000 (20:51 +0300)]
tests: DRIVER_FLAGS command

Signed-off-by: Jouni Malinen <j@w1.fi>
7 years agoMake driver flags available through control interface
Erik Ljungberg [Mon, 4 Jul 2016 09:25:39 +0000 (11:25 +0200)]
Make driver flags available through control interface

This shows the current set of driver flags in wpa_cli and hostapd_cli.

Signed-off-by: Erik Ljungberg <erik.ljungberg@sonymobile.com>
7 years agoP2P: Cleanup by removing unnecessary os_free() call from p2p_deinit()
MAYANK HAARIT [Mon, 4 Jul 2016 05:12:39 +0000 (05:12 +0000)]
P2P: Cleanup by removing unnecessary os_free() call from p2p_deinit()

Remove the unnecessary os_free() call from p2p_deinit() since
p2p_flush() called just above this takes care of freeing
p2p->after_scan_tx and the second call here ends up being no-op
os_free(NULL) in practice.

Signed-off-by: Mayank Haarit <mayank.h@samsung.com>
7 years agomesh: Report mesh peer AID to kernel
Masashi Honma [Fri, 1 Jul 2016 01:22:39 +0000 (10:22 +0900)]
mesh: Report mesh peer AID to kernel

Previously, mesh power management functionality works only with kernel
MPM. Because user space MPM did not report mesh peer AID to kernel,
the kernel could not identify the bit in TIM element. So this patch
reports mesh peer AID to kernel.

Signed-off-by: Masashi Honma <masashi.honma@gmail.com>
7 years agoSync with mac80211-next.git include/uapi/linux/nl80211.h
Jouni Malinen [Sat, 23 Jul 2016 17:25:28 +0000 (20:25 +0300)]
Sync with mac80211-next.git include/uapi/linux/nl80211.h

This brings in nl80211 definitions as of 2016-07-01.

Signed-off-by: Jouni Malinen <j@w1.fi>
7 years agoAssign QCA vendor attribute for setting TX fail count threshold
Sunil Dutt [Fri, 22 Jul 2016 15:22:29 +0000 (20:52 +0530)]
Assign QCA vendor attribute for setting TX fail count threshold

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
7 years agoAssign QCA vendor attributes for set retry configuration
zhangq [Thu, 30 Jun 2016 02:59:21 +0000 (10:59 +0800)]
Assign QCA vendor attributes for set retry configuration

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
7 years agoQCA vendor command to configure conditional switch channel for AP
Chandrasekaran, Manishekar [Mon, 18 Jul 2016 12:29:43 +0000 (17:59 +0530)]
QCA vendor command to configure conditional switch channel for AP

This commit introduces a new vendor sub command
QCA_NL80211_VENDOR_SUBCMD_SAP_CONDITIONAL_CHAN_SWITCH and associated
attributes which aim to configure selected frequencies on which the AP
can conditionally switch onto for preferred operation.

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
7 years agoMBO: Remove unused assignment
Jouni Malinen [Mon, 18 Jul 2016 20:41:19 +0000 (23:41 +0300)]
MBO: Remove unused assignment

The local found variable is not used in this case. Commit
653d227e9f40cad1114c1c96654061446fd8b131 ('MBO: Improve supported
operating class generation') introduced this variable and unnecessarily
set it here. Remove the write-only assignment to silence static
analyzers.

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
7 years agotests: WPA2-PSK AP with station using SA Query local failures
Jouni Malinen [Sun, 17 Jul 2016 21:58:27 +0000 (00:58 +0300)]
tests: WPA2-PSK AP with station using SA Query local failures

Signed-off-by: Jouni Malinen <j@w1.fi>
7 years agoSME: Fix SA Query local failure handling
Jouni Malinen [Sun, 17 Jul 2016 21:57:34 +0000 (00:57 +0300)]
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>
7 years agoClear wpa_s->sme.last_unprot_disconnect.sec on FLUSH command
Jouni Malinen [Sun, 17 Jul 2016 21:56:53 +0000 (00:56 +0300)]
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>
7 years agotests: Overlapping BSS scan request (HT40+)
Jouni Malinen [Sun, 17 Jul 2016 21:14:34 +0000 (00:14 +0300)]
tests: Overlapping BSS scan request (HT40+)

Signed-off-by: Jouni Malinen <j@w1.fi>
7 years agotests: FT OOM in SME
Jouni Malinen [Sun, 17 Jul 2016 21:14:14 +0000 (00:14 +0300)]
tests: FT OOM in SME

Signed-off-by: Jouni Malinen <j@w1.fi>
7 years agotests: AP with open mode and driver operations failing
Jouni Malinen [Sun, 17 Jul 2016 20:49:44 +0000 (23:49 +0300)]
tests: AP with open mode and driver operations failing

Signed-off-by: Jouni Malinen <j@w1.fi>
7 years agotests: SAE and invalid anti-clogging token request
Jouni Malinen [Sun, 17 Jul 2016 14:53:25 +0000 (17:53 +0300)]
tests: SAE and invalid anti-clogging token request

Signed-off-by: Jouni Malinen <j@w1.fi>
7 years agotests: IEEE 802.1X connection using dynamic WEP104 when WPA enabled
Jouni Malinen [Sun, 17 Jul 2016 08:29:42 +0000 (11:29 +0300)]
tests: IEEE 802.1X connection using dynamic WEP104 when WPA enabled

Signed-off-by: Jouni Malinen <j@w1.fi>
7 years agotests: IEEE 802.1X connection with LEAP included in configuration
Jouni Malinen [Sun, 17 Jul 2016 08:22:04 +0000 (11:22 +0300)]
tests: IEEE 802.1X connection with LEAP included in configuration

Signed-off-by: Jouni Malinen <j@w1.fi>
7 years agotests: More SAE OOM coverage
Jouni Malinen [Sun, 17 Jul 2016 08:15:59 +0000 (11:15 +0300)]
tests: More SAE OOM coverage

Signed-off-by: Jouni Malinen <j@w1.fi>
7 years agotests: Hotspot 2.0 OSU provider and OOM
Jouni Malinen [Fri, 15 Jul 2016 10:26:11 +0000 (13:26 +0300)]
tests: Hotspot 2.0 OSU provider and OOM

Signed-off-by: Jouni Malinen <j@w1.fi>
7 years agotests: Hotspot 2.0 OSU provider and invalid directory
Jouni Malinen [Fri, 15 Jul 2016 10:21:41 +0000 (13:21 +0300)]
tests: Hotspot 2.0 OSU provider and invalid directory

Signed-off-by: Jouni Malinen <j@w1.fi>
7 years agoHS 2.0: Add an event message to note failed OSU provider write
Jouni Malinen [Fri, 15 Jul 2016 10:21:12 +0000 (13:21 +0300)]
HS 2.0: Add an event message to note failed OSU provider write

Signed-off-by: Jouni Malinen <j@w1.fi>
7 years agotests: More GET_HS20_ICON coverage
Jouni Malinen [Fri, 15 Jul 2016 10:11:36 +0000 (13:11 +0300)]
tests: More GET_HS20_ICON coverage

Signed-off-by: Jouni Malinen <j@w1.fi>
7 years agotests: Unexpected Hotspot 2.0 AP configuration
Jouni Malinen [Fri, 15 Jul 2016 10:01:18 +0000 (13:01 +0300)]
tests: Unexpected Hotspot 2.0 AP configuration

Signed-off-by: Jouni Malinen <j@w1.fi>
7 years agotests: Fix ap_wpa2_eap_too_many_roundtrips with OpenSSL 1.1.0
Jouni Malinen [Fri, 15 Jul 2016 09:40:16 +0000 (12:40 +0300)]
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>
7 years agoOpenSSL: Fix OpenSSL 1.1.0 DH operation
Jouni Malinen [Fri, 15 Jul 2016 08:36:31 +0000 (11:36 +0300)]
OpenSSL: Fix OpenSSL 1.1.0 DH operation

Commit 49fe2ada20d5fd53c0388442d23e7f03086f4d57 ('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>
7 years agotests: Hotspot 2.0 OSU provider and protocol testing
Jouni Malinen [Tue, 12 Jul 2016 20:44:52 +0000 (23:44 +0300)]
tests: Hotspot 2.0 OSU provider and protocol testing

Signed-off-by: Jouni Malinen <j@w1.fi>
7 years agoHS 2.0: Add optional no-scan parameter to FETCH_OSU
Jouni Malinen [Tue, 12 Jul 2016 20:13:09 +0000 (23:13 +0300)]
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>
7 years agotests: Hotspot 2.0 OSU provider and no icon found
Jouni Malinen [Tue, 12 Jul 2016 17:58:20 +0000 (20:58 +0300)]
tests: Hotspot 2.0 OSU provider and no icon found

Signed-off-by: Jouni Malinen <j@w1.fi>
7 years agotests: Hotspot 2.0 connection and deauthentication request without PMF
Jouni Malinen [Tue, 12 Jul 2016 17:49:02 +0000 (20:49 +0300)]
tests: Hotspot 2.0 connection and deauthentication request without PMF

Signed-off-by: Jouni Malinen <j@w1.fi>
7 years agotests: GAS/ANQP and Hotspot 2.0 element protocol testing
Jouni Malinen [Mon, 11 Jul 2016 21:14:42 +0000 (00:14 +0300)]
tests: GAS/ANQP and Hotspot 2.0 element protocol testing

Signed-off-by: Jouni Malinen <j@w1.fi>
7 years agotests: GAS/ANQP and icon binary protocol testing
Jouni Malinen [Mon, 11 Jul 2016 21:05:35 +0000 (00:05 +0300)]
tests: GAS/ANQP and icon binary protocol testing

Signed-off-by: Jouni Malinen <j@w1.fi>
7 years agoInterworking: Define control interface message prefixes in wpa_ctrl.h
Jouni Malinen [Mon, 11 Jul 2016 18:50:41 +0000 (21:50 +0300)]
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>
7 years agotests: Extend GAS error case coverage
Jouni Malinen [Mon, 11 Jul 2016 18:10:59 +0000 (21:10 +0300)]
tests: Extend GAS error case coverage

Signed-off-by: Jouni Malinen <j@w1.fi>
7 years agoHS 2.0: Make hs20_build_anqp_req() static
Jouni Malinen [Mon, 11 Jul 2016 18:03:09 +0000 (21:03 +0300)]
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>
7 years agotests: Hotspot 2.0 icon fetch OOM with REQ_HS20_ICON
Jouni Malinen [Mon, 4 Jul 2016 16:40:59 +0000 (19:40 +0300)]
tests: Hotspot 2.0 icon fetch OOM with REQ_HS20_ICON

Signed-off-by: Jouni Malinen <j@w1.fi>
7 years agoHS 2.0: Fix hs20_get_icon() error path
Jouni Malinen [Mon, 4 Jul 2016 16:34:22 +0000 (19:34 +0300)]
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>
7 years agotests: Hotspot 2.0 and connect attempt without matching cred
Jouni Malinen [Mon, 4 Jul 2016 15:54:26 +0000 (18:54 +0300)]
tests: Hotspot 2.0 and connect attempt without matching cred

Signed-off-by: Jouni Malinen <j@w1.fi>
7 years agotests: ANQP no sharing
Jouni Malinen [Mon, 4 Jul 2016 15:50:59 +0000 (18:50 +0300)]
tests: ANQP no sharing

Signed-off-by: Jouni Malinen <j@w1.fi>
7 years agotests: Hotspot 2.0 and select with multiple matching home credentials
Jouni Malinen [Mon, 4 Jul 2016 15:43:30 +0000 (18:43 +0300)]
tests: Hotspot 2.0 and select with multiple matching home credentials

Signed-off-by: Jouni Malinen <j@w1.fi>
7 years agotests: Hotspot 2.0 connection with TTLS/default
Jouni Malinen [Mon, 4 Jul 2016 15:12:41 +0000 (18:12 +0300)]
tests: Hotspot 2.0 connection with TTLS/default

Signed-off-by: Jouni Malinen <j@w1.fi>
7 years agotests: Hotspot 2.0 and connect attempt without RSN
Jouni Malinen [Mon, 4 Jul 2016 15:08:49 +0000 (18:08 +0300)]
tests: Hotspot 2.0 and connect attempt without RSN

Signed-off-by: Jouni Malinen <j@w1.fi>
7 years agotests: Hotspot 2.0 and connect attempt without credential
Jouni Malinen [Mon, 4 Jul 2016 15:03:28 +0000 (18:03 +0300)]
tests: Hotspot 2.0 and connect attempt without credential

Signed-off-by: Jouni Malinen <j@w1.fi>
7 years agotests: Hotspot 2.0 connection and invalid roaming consortium element
Jouni Malinen [Mon, 4 Jul 2016 15:00:23 +0000 (18:00 +0300)]
tests: Hotspot 2.0 connection and invalid roaming consortium element

Signed-off-by: Jouni Malinen <j@w1.fi>
7 years agotests: Hotspot 2.0 connection and 3GPP credential constraints
Jouni Malinen [Mon, 4 Jul 2016 10:59:14 +0000 (13:59 +0300)]
tests: Hotspot 2.0 connection and 3GPP credential constraints

Signed-off-by: Jouni Malinen <j@w1.fi>
7 years agotests: Hotspot 2.0 and failures during profile configuration
Jouni Malinen [Mon, 4 Jul 2016 09:15:15 +0000 (12:15 +0300)]
tests: Hotspot 2.0 and failures during profile configuration

Signed-off-by: Jouni Malinen <j@w1.fi>
7 years agotests: Hotspot 2.0 connection and no full match
Jouni Malinen [Mon, 4 Jul 2016 10:21:42 +0000 (13:21 +0300)]
tests: Hotspot 2.0 connection and no full match

Signed-off-by: Jouni Malinen <j@w1.fi>
7 years agoInterworking: Remove unused allow_excluded from interworking_connect()
Jouni Malinen [Sun, 3 Jul 2016 21:46:26 +0000 (00:46 +0300)]
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>
7 years agotests: Hotspot 2.0 connection and roaming consortium constraints
Jouni Malinen [Sun, 3 Jul 2016 21:46:07 +0000 (00:46 +0300)]
tests: Hotspot 2.0 connection and roaming consortium constraints

Signed-off-by: Jouni Malinen <j@w1.fi>
7 years agotests: Hotspot 2.0 network selection with req_conn_capab (not present)
Jouni Malinen [Sun, 3 Jul 2016 20:57:36 +0000 (23:57 +0300)]
tests: Hotspot 2.0 network selection with req_conn_capab (not present)

Signed-off-by: Jouni Malinen <j@w1.fi>
7 years agotests: D-Bus GetAll wpa_config_get_all() OOM
Jouni Malinen [Mon, 4 Jul 2016 14:48:30 +0000 (17:48 +0300)]
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>
7 years agoFix wpa_config_get_all() error path
Jouni Malinen [Mon, 4 Jul 2016 14:34:19 +0000 (17:34 +0300)]
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>
7 years agotests: Hotspot 2.0 OSU provider and no AP with info
Jouni Malinen [Sun, 3 Jul 2016 19:08:31 +0000 (22:08 +0300)]
tests: Hotspot 2.0 OSU provider and no AP with info

Signed-off-by: Jouni Malinen <j@w1.fi>
7 years agotests: GAS/ANQP query OOM
Jouni Malinen [Sun, 3 Jul 2016 19:02:21 +0000 (22:02 +0300)]
tests: GAS/ANQP query OOM

Signed-off-by: Jouni Malinen <j@w1.fi>
7 years agotests: ANQP_GET to unknown BSS
Jouni Malinen [Sun, 3 Jul 2016 19:00:24 +0000 (22:00 +0300)]
tests: ANQP_GET to unknown BSS

Signed-off-by: Jouni Malinen <j@w1.fi>
7 years agotests: GAS_REQUEST OOM
Jouni Malinen [Sun, 3 Jul 2016 18:25:45 +0000 (21:25 +0300)]
tests: GAS_REQUEST OOM

Signed-off-by: Jouni Malinen <j@w1.fi>
7 years agotests: Hotspot 2.0 network selection and invalid GAS response
Jouni Malinen [Sun, 3 Jul 2016 18:20:08 +0000 (21:20 +0300)]
tests: Hotspot 2.0 network selection and invalid GAS response

Signed-off-by: Jouni Malinen <j@w1.fi>
7 years agotests: Hotspot 2.0 and maximum BSS load (roaming)
Jouni Malinen [Sun, 3 Jul 2016 18:00:08 +0000 (21:00 +0300)]
tests: Hotspot 2.0 and maximum BSS load (roaming)

Signed-off-by: Jouni Malinen <j@w1.fi>
7 years agotests: Hotspot 2.0 network selection with min bandwidth - special cases
Jouni Malinen [Sun, 3 Jul 2016 17:55:02 +0000 (20:55 +0300)]
tests: Hotspot 2.0 network selection with min bandwidth - special cases

Signed-off-by: Jouni Malinen <j@w1.fi>
7 years agotests: Hotspot 2.0 required roaming consortium and no match
Jouni Malinen [Sun, 3 Jul 2016 17:45:37 +0000 (20:45 +0300)]
tests: Hotspot 2.0 required roaming consortium and no match

Signed-off-by: Jouni Malinen <j@w1.fi>
7 years agotests: Hotspot 2.0 connection and invalid roaming consortium ANQP-element
Jouni Malinen [Sun, 3 Jul 2016 17:30:19 +0000 (20:30 +0300)]
tests: Hotspot 2.0 connection and invalid roaming consortium ANQP-element

Signed-off-by: Jouni Malinen <j@w1.fi>
7 years agotests: Hotspot 2.0 with simulated SIM and EAP-SIM - OOM
Jouni Malinen [Sun, 3 Jul 2016 17:05:51 +0000 (20:05 +0300)]
tests: Hotspot 2.0 with simulated SIM and EAP-SIM - OOM

Signed-off-by: Jouni Malinen <j@w1.fi>
7 years agoInterworking: Combine identical error returns into a single one
Jouni Malinen [Sun, 3 Jul 2016 16:57:31 +0000 (19:57 +0300)]
Interworking: Combine identical error returns into a single one

There is no need to maintain separate "return -1;" for each of the
wpa_config_set() calls that cannot really fail in practice.

Signed-off-by: Jouni Malinen <j@w1.fi>
7 years agotests: Fix interworking_select() bssid argument in some test cases
Jouni Malinen [Sun, 3 Jul 2016 16:55:34 +0000 (19:55 +0300)]
tests: Fix interworking_select() bssid argument in some test cases

The bssid argument was missing from couple of test cases. While this is
clearly incorrect, it looks like the error did not really cause any
significant issues to the test case. Anyway, better provide the correct
set of arguments to the call.

Signed-off-by: Jouni Malinen <j@w1.fi>
7 years agotests: Hotspot 2.0 with simulated SIM and EAP-SIM - invalid IMSI
Jouni Malinen [Sun, 3 Jul 2016 16:53:03 +0000 (19:53 +0300)]
tests: Hotspot 2.0 with simulated SIM and EAP-SIM - invalid IMSI

Signed-off-by: Jouni Malinen <j@w1.fi>
7 years agotests: Remove extra semicolons from python scripts
Jouni Malinen [Sun, 3 Jul 2016 16:37:50 +0000 (19:37 +0300)]
tests: Remove extra semicolons from python scripts

Signed-off-by: Jouni Malinen <j@w1.fi>
7 years agotests: Hotspot 2.0 network selection and OOM
Jouni Malinen [Sun, 3 Jul 2016 16:23:18 +0000 (19:23 +0300)]
tests: Hotspot 2.0 network selection and OOM

Signed-off-by: Jouni Malinen <j@w1.fi>
7 years agotests: Hotspot 2.0 network selection and no roaming consortium
Jouni Malinen [Sun, 3 Jul 2016 15:15:29 +0000 (18:15 +0300)]
tests: Hotspot 2.0 network selection and no roaming consortium

Signed-off-by: Jouni Malinen <j@w1.fi>
7 years agotests: Hotspot 2.0 network selection and cred_with_nai_realm cred->realm
Jouni Malinen [Sun, 3 Jul 2016 15:12:44 +0000 (18:12 +0300)]
tests: Hotspot 2.0 network selection and cred_with_nai_realm cred->realm

Signed-off-by: Jouni Malinen <j@w1.fi>
7 years agotests: Hotspot 2.0 multi-cred and same sp_priority
Jouni Malinen [Sun, 3 Jul 2016 15:04:48 +0000 (18:04 +0300)]
tests: Hotspot 2.0 multi-cred and same sp_priority

Signed-off-by: Jouni Malinen <j@w1.fi>
7 years agotests: wpa_supplicant P2P_LO_START and P2P_LO_STOP commands
Jouni Malinen [Sun, 3 Jul 2016 14:44:45 +0000 (17:44 +0300)]
tests: wpa_supplicant P2P_LO_START and P2P_LO_STOP commands

Signed-off-by: Jouni Malinen <j@w1.fi>
7 years agoP2P: Allow P2P listen being offloaded to the driver/firmware
Peng Xu [Fri, 24 Jun 2016 18:36:18 +0000 (11:36 -0700)]
P2P: Allow P2P listen being offloaded to the driver/firmware

This allows P2P Listen to be offloaded to device to enhance power
saving.

To start P2P listen offload, from wpa_cli interface, issue the command:
p2p_lo_start <freq> <period> <interval> <count>

To stop P2P listen offload, issue the command:
p2p_lo_stop

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
7 years agonl80211: P2P Listen offload vendor command definitions
Peng Xu [Fri, 24 Jun 2016 00:32:09 +0000 (17:32 -0700)]
nl80211: P2P Listen offload vendor command definitions

Define QCA vendor commands, events, and attributes for P2P
Listen offload.

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
7 years agoDo not exceed scan ssid max size advertised by driver
Roshan Pius [Thu, 30 Jun 2016 22:26:07 +0000 (15:26 -0700)]
Do not exceed scan ssid max size advertised by driver

Previously, wpa_set_scan_ssids() fully exhausted
wpa_driver_scan_params.ssid list when hidden network IDs are provided
via the control interface. This results in us exceeding the max size for
the list advertised by the driver when we add the "wildcard" scan SSID
entry. So, ensure that we leave space for one more scan SSID entry in
the list when we exit out of wpa_set_scan_ssids().

Signed-off-by: Roshan Pius <rpius@google.com>
7 years agotests: IBSS and key_mgmt field in STATUS
Jouni Malinen [Fri, 1 Jul 2016 18:16:20 +0000 (21:16 +0300)]
tests: IBSS and key_mgmt field in STATUS

Signed-off-by: Jouni Malinen <j@w1.fi>
7 years agoAdd text name for WPA_KEY_MGMT_WPA_NONE key_mgmt value
Saurav Babu [Fri, 1 Jul 2016 07:06:45 +0000 (12:36 +0530)]
Add text name for WPA_KEY_MGMT_WPA_NONE key_mgmt value

This will output WPA-NONE for WPA_KEY_MGMT_WPA_NONE key_mgmt value in
STATUS command.

Signed-off-by: Saurav Babu <saurav.babu@samsung.com>
7 years agotests: IBSS operating frequency reporting
Jouni Malinen [Fri, 1 Jul 2016 17:50:13 +0000 (20:50 +0300)]
tests: IBSS operating frequency reporting

Signed-off-by: Jouni Malinen <j@w1.fi>
7 years agonl80211: Provide frequency in EVENT_ASSOC when IBSS is joined
Saurav Babu [Fri, 1 Jul 2016 12:06:17 +0000 (12:06 +0000)]
nl80211: Provide frequency in EVENT_ASSOC when IBSS is joined

Provides operating frequency in EVENT_ASSOC when IBSS is joined so that
wpa_s->assoc_freq can be updated when any IBSS network is joined.

Signed-off-by: Saurav Babu <saurav.babu@samsung.com>
7 years agotests: MBO and supported operating classes
Jouni Malinen [Thu, 30 Jun 2016 19:02:12 +0000 (22:02 +0300)]
tests: MBO and supported operating classes

Signed-off-by: Jouni Malinen <j@w1.fi>
7 years agoMBO: Improve supported operating class generation
Jouni Malinen [Thu, 30 Jun 2016 18:59:09 +0000 (21:59 +0300)]
MBO: Improve supported operating class generation

Previously, 2.4 GHz operating class 81 was not added for US due to not
all of the channels (1-13 in this operating class) being supported.
Still, this operating class is the main operating class in the global
table for 2.4 GHz and it is the only option for indicating support for
the 2.4 GHz band channels in US.

Change the supported operating class building rules to include all
operating classes for which at least one channel is enabled. In
addition, fix the 80, 80+80, and 160 MHz channel checks (checking the
center frequency channel was failing since it is not a valid 20 MHz
channel).

Signed-off-by: Jouni Malinen <j@w1.fi>
7 years agotests: MBO BSS transition request MBO IE parsing
Jouni Malinen [Wed, 29 Jun 2016 22:49:21 +0000 (01:49 +0300)]
tests: MBO BSS transition request MBO IE parsing

Signed-off-by: Jouni Malinen <j@w1.fi>
7 years agotests: MBO failure cases
Jouni Malinen [Wed, 29 Jun 2016 22:11:35 +0000 (01:11 +0300)]
tests: MBO failure cases

Signed-off-by: Jouni Malinen <j@w1.fi>
7 years agotests: MBO WNM token wrap around
Jouni Malinen [Thu, 30 Jun 2016 09:52:50 +0000 (12:52 +0300)]
tests: MBO WNM token wrap around

Signed-off-by: Jouni Malinen <j@w1.fi>
7 years agotests: Invalid MBO non_pref_chan values
Jouni Malinen [Wed, 29 Jun 2016 21:38:39 +0000 (00:38 +0300)]
tests: Invalid MBO non_pref_chan values

Signed-off-by: Jouni Malinen <j@w1.fi>
7 years agotests: MBO mbo_cell_capa duplicate update
Jouni Malinen [Wed, 29 Jun 2016 21:34:48 +0000 (00:34 +0300)]
tests: MBO mbo_cell_capa duplicate update

Signed-off-by: Jouni Malinen <j@w1.fi>
7 years agonl80211: Keep QCA vendor extensions together
Dmitry Shmidt [Mon, 27 Jun 2016 22:54:56 +0000 (15:54 -0700)]
nl80211: Keep QCA vendor extensions together

Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
7 years agotests: MPM protocol testing - CLS_ACPT event in OPN_SNT
Jouni Malinen [Tue, 28 Jun 2016 22:56:26 +0000 (01:56 +0300)]
tests: MPM protocol testing - CLS_ACPT event in OPN_SNT

Signed-off-by: Jouni Malinen <j@w1.fi>
7 years agotests: MPM protocol testing - CLS_ACPT event in CNF_RCVD
Jouni Malinen [Tue, 28 Jun 2016 22:42:58 +0000 (01:42 +0300)]
tests: MPM protocol testing - CLS_ACPT event in CNF_RCVD

Signed-off-by: Jouni Malinen <j@w1.fi>
7 years agotests: Mesh MPM FSM and HOLDING state event OPN_ACPT
Jouni Malinen [Tue, 28 Jun 2016 22:13:55 +0000 (01:13 +0300)]
tests: Mesh MPM FSM and HOLDING state event OPN_ACPT

Signed-off-by: Jouni Malinen <j@w1.fi>
7 years agomesh: Add debug prints on my/peer lid mismatches
Jouni Malinen [Tue, 28 Jun 2016 22:12:32 +0000 (01:12 +0300)]
mesh: Add debug prints on my/peer lid mismatches

This makes it easier to figure out why a received mesh peering frame
could end up getting dropped.

Signed-off-by: Jouni Malinen <j@w1.fi>
7 years agomesh: Add MPM FSM transitions from ESTAB to HOLDING for {OPN,CNF}_RJCT
Jouni Malinen [Tue, 28 Jun 2016 20:30:40 +0000 (23:30 +0300)]
mesh: Add MPM FSM transitions from ESTAB to HOLDING for {OPN,CNF}_RJCT

These events were missing from the MPM FSM state transition table.

Signed-off-by: Jouni Malinen <j@w1.fi>
7 years agomesh: Update MPM FSM events to match the standard
Jouni Malinen [Tue, 28 Jun 2016 20:20:39 +0000 (23:20 +0300)]
mesh: Update MPM FSM events to match the standard

{OPN,CNF,CLS}_IGNR events were removed during P802.11s draft development
process. Replace these with not generating a MPM FSM event. In addition,
add the standard REQ_RJCT event and option to pass in a specific reason
code to mesh_mpm_fsm().

Signed-off-by: Jouni Malinen <j@w1.fi>
7 years agomesh: Rename MPM FSM states to match the standard
Jouni Malinen [Tue, 28 Jun 2016 19:53:05 +0000 (22:53 +0300)]
mesh: Rename MPM FSM states to match the standard

During the P802.11s draft development, there were separate LISTEN and
IDLE states. However, the current IEEE 802.11 standards uses only the
IDLE state while the implementation called this LISTEN. Rename the state
in the implementation to match the one used in the standard to avoid
confusion. In addition, rename OPEN_{SENT,RCVD} to OPN_{SNT,RCVD} to
match the exact spelling of these states in the standard.

Signed-off-by: Jouni Malinen <j@w1.fi>
7 years agomesh: Indicate OPN_RJCT event if AES-SIV decrypt fails
Jouni Malinen [Tue, 28 Jun 2016 19:45:41 +0000 (22:45 +0300)]
mesh: Indicate OPN_RJCT event if AES-SIV decrypt fails

REVmc/D6.0 14.5.5.2.2 (Processing Mesh Peering Open frames for AMPE)
mandates the OPN_RJCT event to be invoked if AES-SIV decryption for
received Mesh Peering Open frame fails. This allows a Mesh Peering Close
frame to be sent in such a case.

Signed-off-by: Jouni Malinen <j@w1.fi>
7 years agomesh: Write close reason from Mesh Peering Close to debug log
Jouni Malinen [Tue, 28 Jun 2016 19:44:28 +0000 (22:44 +0300)]
mesh: Write close reason from Mesh Peering Close to debug log

This makes it a bit easier to understand the debug log entries related
to tearing down a mesh connection.

Signed-off-by: Jouni Malinen <j@w1.fi>