]> git.ipfire.org Git - thirdparty/hostap.git/log
thirdparty/hostap.git
10 years agotests: Verify cred vs. network block priority selection
Jouni Malinen [Thu, 27 Feb 2014 12:17:31 +0000 (14:17 +0200)] 
tests: Verify cred vs. network block priority selection

This verifies that 'INTERWORKING_SELECT auto' is able to pick the
correct network based on priority configuration when connected to a
lower priority network.

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
10 years agoInterworking: Fix already-connected check to verify network priority
Jouni Malinen [Thu, 27 Feb 2014 12:06:23 +0000 (14:06 +0200)] 
Interworking: Fix already-connected check to verify network priority

Commit d28f4e44f10a8549d969e5434f7d4d16f462dfcc optimized Interworking
network selection in a case where the operation is run while already
connected to the selected network by skipping the reconnection. However,
this did not take into account that a higher priority network may have
shown up in the new scan results.

Fix this by checking whether network selection based on the latest scan
results (the ones from the interworking_select operation) would result
in a network with higher priority being selected. If so, skip the
optimization and force normal network connection (which will select this
newly found higher priority network). This fixes cases where a
non-Hotspot 2.0 network with higher priority (e.g., home network) shows
up while connected to a Hotspot 2.0 network with lower priority.

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
10 years agoInterworking: Fix last-network preference to not override priority
Jouni Malinen [Thu, 27 Feb 2014 11:47:23 +0000 (13:47 +0200)] 
Interworking: Fix last-network preference to not override priority

Commit 3d910ef497b11e149cf41e772670f7a7fe3a1e19 tried to make
last-network selection behave more consistently with Interworking
network selection preferences. However, it did not take into account
that other network block may have higher priority. In such cases, the
last added network from Interworking network selection should actually
not be selected for the next connection. Fix this by limiting the
last-network preference to work only within a priority class.

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
10 years agotests: Verify req_conn_capab as cred parameter
Jouni Malinen [Wed, 26 Feb 2014 22:49:52 +0000 (00:49 +0200)] 
tests: Verify req_conn_capab as cred parameter

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
10 years agoHS 2.0R2: Fix req_conn_capab example
Jouni Malinen [Wed, 26 Feb 2014 22:43:58 +0000 (00:43 +0200)] 
HS 2.0R2: Fix req_conn_capab example

Protocol field needs to be separated properly from te port number list.

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
10 years agotests: wpa_supplicant ctrl_iface config parser
Jouni Malinen [Wed, 26 Feb 2014 16:48:12 +0000 (18:48 +0200)] 
tests: wpa_supplicant ctrl_iface config parser

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
10 years agotests: Verify invalid required_roaming_consortium values
Jouni Malinen [Wed, 26 Feb 2014 16:35:13 +0000 (18:35 +0200)] 
tests: Verify invalid required_roaming_consortium values

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
10 years agotests: Verify HS 2.0 OSEN connection
Jouni Malinen [Wed, 26 Feb 2014 16:10:08 +0000 (18:10 +0200)] 
tests: Verify HS 2.0 OSEN connection

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
10 years agotests: Verify HS 2.0R2 deauthentication request
Jouni Malinen [Tue, 18 Feb 2014 10:08:47 +0000 (12:08 +0200)] 
tests: Verify HS 2.0R2 deauthentication request

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
10 years agotests: Add update_identifier to one of the HS 2.0 test cases
Jouni Malinen [Fri, 20 Dec 2013 04:46:07 +0000 (20:46 -0800)] 
tests: Add update_identifier to one of the HS 2.0 test cases

This allows debug logs to be used to verify byte order in the
PPS MO ID fields.

Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>

10 years agotests: Verify HS 2.0 excluded AP reporting
Jouni Malinen [Mon, 4 Nov 2013 14:36:19 +0000 (16:36 +0200)] 
tests: Verify HS 2.0 excluded AP reporting

Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>

10 years agotests: HS 2.0 maximum BSS Load constraint
Jouni Malinen [Mon, 4 Nov 2013 14:32:00 +0000 (16:32 +0200)] 
tests: HS 2.0 maximum BSS Load constraint

Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>

10 years agotests: Verify INTERWORKING-SELECTED in HS 2.0 policy tests
Jouni Malinen [Mon, 4 Nov 2013 12:45:41 +0000 (14:45 +0200)] 
tests: Verify INTERWORKING-SELECTED in HS 2.0 policy tests

Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>

10 years agotests: HS 2.0 roaming partner preference
Jouni Malinen [Mon, 4 Nov 2013 12:39:25 +0000 (14:39 +0200)] 
tests: HS 2.0 roaming partner preference

Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>

10 years agotests: Verify multi-cred sp_priority use
Jouni Malinen [Tue, 29 Oct 2013 17:46:38 +0000 (19:46 +0200)] 
tests: Verify multi-cred sp_priority use

test_ap_hs20_multi_cred_sp_prio verifies that two credentials
provisioned by a single SP are selected properly based on sp_priority
when a single BSS matches both credentials.
test_ap_hs20_multi_cred_sp_prio2 does the same when there a separate BSS
for each credential.

Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>

10 years agoHS 2.0R2: Add WFA server-only EAP-TLS server method
Jouni Malinen [Tue, 23 Jul 2013 18:22:38 +0000 (21:22 +0300)] 
HS 2.0R2: Add WFA server-only EAP-TLS server method

Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>

10 years agoHS 2.0R2: RADIUS server support to request Subscr Remediation
Jouni Malinen [Wed, 21 Nov 2012 15:04:21 +0000 (17:04 +0200)] 
HS 2.0R2: RADIUS server support to request Subscr Remediation

The new hostapd.conf parameter subscr_remediation_url can be used to
define the URL of the Subscription Remediation Server that will be added
in a WFA VSA to Access-Accept message if the SQLite user database
indicates that the user need subscription remediation.

Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>

10 years agoHS 2.0R2 AP: Add OSU Providers list ANQP element
Jouni Malinen [Sun, 17 Mar 2013 14:34:09 +0000 (16:34 +0200)] 
HS 2.0R2 AP: Add OSU Providers list ANQP element

hostapd can now be configured to advertise OSU Providers with the
new osu_* confgiuration parameters.

Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>

10 years agoHS 2.0R2 AP: Add Icon Request and Icon binary File ANQP elements
Jouni Malinen [Sun, 17 Mar 2013 14:28:59 +0000 (16:28 +0200)] 
HS 2.0R2 AP: Add Icon Request and Icon binary File ANQP elements

hostapd can now be configured to provide access for icon files
(hs20_icon config file parameter) for OSU. The hs20_icon data contains
additional meta data about the icon that is not yet used, but it will be
needed for the OSU Providers list ANQP element.

Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>

10 years agoHS 2.0R2 AP: Add support for Session Info URL RADIUS AVP
Jouni Malinen [Thu, 1 Aug 2013 21:39:30 +0000 (00:39 +0300)] 
HS 2.0R2 AP: Add support for Session Info URL RADIUS AVP

If the authentication server includes the WFA HS 2.0 Session Info URL
AVP in Access-Accept, schedule ESS Disassociation Imminent frame to be
transmitted specified warning time prior to session timeout.

Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>

10 years agoHS 2.0R2 AP: Add support for deauthentication request
Jouni Malinen [Fri, 26 Jul 2013 19:13:58 +0000 (22:13 +0300)] 
HS 2.0R2 AP: Add support for deauthentication request

If the RADIUS server includes deauthentication request in Access-Accept,
send a WNM-Notification frame to the station after 4-way handshake and
disconnect the station after configurable timeout.

A new control interface command, WNM_DEAUTH_REQ, is added for testing
purposes to allow the notification frame to sent based on local request.
This case does not disconnect the station automatically, i.e., a
separate control interface command would be needed for that.

Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>

10 years agoHS 2.0R2 AP: Add OSEN implementation
Jouni Malinen [Tue, 23 Jul 2013 18:25:21 +0000 (21:25 +0300)] 
HS 2.0R2 AP: Add OSEN implementation

Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>

10 years agoHS 2.0R2 AP: Use Subscr Remediation request from RADIUS server
Jouni Malinen [Wed, 21 Nov 2012 22:48:48 +0000 (00:48 +0200)] 
HS 2.0R2 AP: Use Subscr Remediation request from RADIUS server

If the RADIUS server includes the WFA RADIUS VSA in Access-Accept to
indicate need for subscription remediation, copy the server URL from
the message and send it to the station after successfully completed
4-way handshake (i.e., after PTK is set to allow PMF to work) in a
WNM-Notification.

AP must not allow PMKSA caching to be used after subscription
remediation association, so do not add the PMKSA cache entry whenever
the authentication server is indicating need for subscription
remediation. This allows station reassociation to use EAP authentication
to move to non-remediation connection.

Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>

10 years agoHS 2.0R2 AP: Add STA's Hotspot 2.0 Release Number into Access-Request
Jouni Malinen [Wed, 21 Nov 2012 22:28:04 +0000 (00:28 +0200)] 
HS 2.0R2 AP: Add STA's Hotspot 2.0 Release Number into Access-Request

If the station indicated support for Hotspot 2.0, send its release
number and PPS MO ID in Access-Request messages using the WFA RADIUS
VSA.

Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>

10 years agoHS 2.0R2 AP: Add AP Hotspot 2.0 Release Number as WFA RADIUS VSA
Jouni Malinen [Wed, 21 Nov 2012 22:11:01 +0000 (00:11 +0200)] 
HS 2.0R2 AP: Add AP Hotspot 2.0 Release Number as WFA RADIUS VSA

The Access-Request frames are used to inform the RADIUS server about the
Hotspot 2.0 release number supported by the AP.

Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>

10 years agoHS 2.0R2 AP: Add definition and helper function for WFA RADIUS VSA
Jouni Malinen [Wed, 21 Nov 2012 15:03:15 +0000 (17:03 +0200)] 
HS 2.0R2 AP: Add definition and helper function for WFA RADIUS VSA

These changes make it easier to add WFA vendor specific attributes
to RADIUS messages.

Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>

10 years agoHS 2.0R2 AP: Add WNM-Notification Request for Subscription Remediation
Jouni Malinen [Sun, 17 Mar 2013 14:03:42 +0000 (16:03 +0200)] 
HS 2.0R2 AP: Add WNM-Notification Request for Subscription Remediation

Subscription remediation notification can now be sent from hostapd with:
hostapd_cli hs20_wnm_notif 02:00:00:00:00:00 http://example.com/foo/

Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>

10 years agoHS 2.0R2 AP: Update HS 2.0 Indication element to Release 2
Jouni Malinen [Sun, 17 Mar 2013 13:59:36 +0000 (15:59 +0200)] 
HS 2.0R2 AP: Update HS 2.0 Indication element to Release 2

The HS 2.0 Indication element from hostapd now includes the release
number field and the new ANQP Domain ID field. This ID can be configured
with anqp_domain_id parameter in hostapd.conf.

Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>

10 years agoHS 2.0R2: Try to scan multiple times for OSU providers
Jouni Malinen [Fri, 13 Dec 2013 02:39:00 +0000 (18:39 -0800)] 
HS 2.0R2: Try to scan multiple times for OSU providers

Scan operation is not that reliable, so try couple of times if no
OSU provider matches are found during fetch_osu command.

Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>

10 years agoInterworking: Add OCSP parameter to the cred block
Jouni Malinen [Mon, 9 Dec 2013 01:30:01 +0000 (17:30 -0800)] 
Interworking: Add OCSP parameter to the cred block

This new parameter can be used to configure credentials to mandate use
of OCSP stapling for AAA server authentication.

Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>

10 years agoInterworking: Add more debug info on roaming partner preferences
Jouni Malinen [Mon, 4 Nov 2013 12:27:07 +0000 (14:27 +0200)] 
Interworking: Add more debug info on roaming partner preferences

This can be useful in debugging selection of roaming partner preference.

Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>

10 years agoInterworking: Add sp_priority cred parameter
Jouni Malinen [Tue, 29 Oct 2013 17:14:40 +0000 (19:14 +0200)] 
Interworking: Add sp_priority cred parameter

This new priority parameter can be used to specify priorities between
credentials provisioned by the same SP. cred->priority is checked first
and if it is same and the provisioning_sp parameter matches, the new
sp_priority is used to order the credentials. It should be noted that
the order of priorities is different (higher 'priority' value indicates
higher priority of the credential, while higher 'sp_priority' indicates
lower priority of the credential).

Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>

10 years agoInterworking: Use a helper function to compare cred priority
Jouni Malinen [Tue, 29 Oct 2013 17:06:49 +0000 (19:06 +0200)] 
Interworking: Use a helper function to compare cred priority

This makes it easier to extend credential priority comparison beyond a
single priority variable.

Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>

10 years agoInterworking: Remove separate credential priority tracking
Jouni Malinen [Tue, 29 Oct 2013 16:57:18 +0000 (18:57 +0200)] 
Interworking: Remove separate credential priority tracking

There is no need to keep the separate local variable for tracking the
highest selected priority since we track a pointer to the selected
credential with that information.

Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>

10 years agoHS 2.0R2: Disable full ESS for as a workaround for per-BSS issues
Jouni Malinen [Fri, 9 Aug 2013 21:04:50 +0000 (00:04 +0300)] 
HS 2.0R2: Disable full ESS for as a workaround for per-BSS issues

For now, disable full ESS since some drivers may not support disabling
per BSS.

Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>

10 years agoHS 2.0R2: Slow down connection attempts on EAP failures
Jouni Malinen [Fri, 9 Aug 2013 20:41:29 +0000 (23:41 +0300)] 
HS 2.0R2: Slow down connection attempts on EAP failures

This is needed to limit the number of consecutive authentication
attempts to no more than 10 within a 10-minute interval to avoid
unnecessary load on the authentication server. In addition, use a random
component in the delay to avoid multiple stations hitting the same
timing in case of simultaneous disconnection from the network.

Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>

10 years agoHS 2.0R2: Add more debug to network selection
Jouni Malinen [Wed, 9 Oct 2013 00:38:47 +0000 (17:38 -0700)] 
HS 2.0R2: Add more debug to network selection

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
10 years agoHS 2.0R2: Fix bandwidth policy BSS selection
Jouni Malinen [Sat, 17 Aug 2013 23:04:34 +0000 (16:04 -0700)] 
HS 2.0R2: Fix bandwidth policy BSS selection

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
10 years agoHS 2.0R2: Allow excluded network to be selected based on user override
Jouni Malinen [Fri, 9 Aug 2013 17:37:28 +0000 (20:37 +0300)] 
HS 2.0R2: Allow excluded network to be selected based on user override

Move excluded SSID filtering step to the end of credential validation
process and return list of BSSes that would otherwise have matching
credentials, but have an excluded SSID. Automatic network selection will
not select such a network, but interworking_connect command can be used
to pick excluded networks.

Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>

10 years agoHS 2.0R2: Add support for Policy/RequiredProtoPortTuple
Jouni Malinen [Thu, 8 Aug 2013 17:31:41 +0000 (20:31 +0300)] 
HS 2.0R2: Add support for Policy/RequiredProtoPortTuple

The new credential parameter req_conn_capab can be used to specify
restrictions on roaming networks providing connectivity for a set of
protocols/ports.

Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>

10 years agoHS 2.0R2: Add support for Policy/MaximumBSSLoadValue
Jouni Malinen [Tue, 6 Aug 2013 13:14:25 +0000 (16:14 +0300)] 
HS 2.0R2: Add support for Policy/MaximumBSSLoadValue

The new credential parameter max_bss_load can be used to specify
restrictions on BSS Load in the home network.

Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>

10 years agoHS 2.0R2: Add support for Policy/MinBackhaulThreshold
Jouni Malinen [Mon, 5 Aug 2013 22:06:44 +0000 (01:06 +0300)] 
HS 2.0R2: Add support for Policy/MinBackhaulThreshold

The new credential parameters min_{dl,ul}_bandwidth_{home,roaming} can
be used to specify restrictions on available backhaul bandwidth.

Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>

10 years agoHS 2.0R2: Add tracking of provisioning SP
Jouni Malinen [Fri, 2 Aug 2013 16:09:11 +0000 (19:09 +0300)] 
HS 2.0R2: Add tracking of provisioning SP

The new provisioning_sp cred field can now be used to track which SP
provisioned the credential. This makes it easier to find the matching
PPS MO from the management tree (./Wi-Fi/<provisioning_sp>).

Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>

10 years agoHS 2.0R2: Add WFA server-only EAP-TLS peer method
Jouni Malinen [Tue, 23 Jul 2013 18:21:36 +0000 (21:21 +0300)] 
HS 2.0R2: Add WFA server-only EAP-TLS peer method

Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>

10 years agoHS 2.0R2: Add OSEN client implementation
Jouni Malinen [Tue, 23 Jul 2013 18:24:05 +0000 (21:24 +0300)] 
HS 2.0R2: Add OSEN client implementation

Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>

10 years agoHS 2.0R2: Add common OSEN definitions
Jouni Malinen [Tue, 23 Jul 2013 18:23:25 +0000 (21:23 +0300)] 
HS 2.0R2: Add common OSEN definitions

Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>

10 years agoHS 2.0R2: Add GAS operation duration statistics into debug
Jouni Malinen [Sat, 15 Jun 2013 03:41:51 +0000 (20:41 -0700)] 
HS 2.0R2: Add GAS operation duration statistics into debug

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
10 years agoHS 2.0R2: Add routine for fetching OSU provider information
Jouni Malinen [Fri, 25 Jan 2013 22:10:41 +0000 (00:10 +0200)] 
HS 2.0R2: Add routine for fetching OSU provider information

The new wpa_cli fetch_osu command can be used to fetch information about
all OSU providers and write that to a text file with the icons in
separate files. cancel_osu_fetch command can be used to stop ongoing OSU
provider list fetch.

Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>

10 years agoHS 2.0R2: Add OSU Providers list ANQP element
Jouni Malinen [Tue, 8 Jan 2013 21:51:16 +0000 (23:51 +0200)] 
HS 2.0R2: Add OSU Providers list ANQP element

wpa_supplicant can now request OSU Providers list with "hs20_anqp_get
<BSSID> 8".

Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>

10 years agoHS 2.0R2: Add Icon Request and Icon binary File ANQP elements
Jouni Malinen [Thu, 20 Dec 2012 19:15:05 +0000 (21:15 +0200)] 
HS 2.0R2: Add Icon Request and Icon binary File ANQP elements

wpa_supplicant can request OSU icon data with "hs20_icon_request <BSSID>
<icon filename>". This transmits an Icon Request ANQP element and
processes the response in Icon Binary File ANQP elements.

Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>

10 years agoHS 2.0R2: Add STA support for Deauthentication Request notification
Jouni Malinen [Fri, 26 Jul 2013 19:12:37 +0000 (22:12 +0300)] 
HS 2.0R2: Add STA support for Deauthentication Request notification

If requested, disable the network based on the HS 2.0 deauthentication
request.

Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>

10 years agoHS 2.0R2: Add WNM-Notification Request for Subscription Remediation
Jouni Malinen [Fri, 2 Nov 2012 11:05:57 +0000 (13:05 +0200)] 
HS 2.0R2: Add WNM-Notification Request for Subscription Remediation

Subscription remediation notification WNM-Notification Request is now
shown in the following way in wpa_supplicant control interface:
<3>HS20-SUBSCRIPTION-REMEDIATION http://example.com/foo/

Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>

10 years agoHS 2.0R2: Update Indication element to Release 2
Jouni Malinen [Fri, 2 Nov 2012 10:08:11 +0000 (12:08 +0200)] 
HS 2.0R2: Update Indication element to Release 2

The HS 2.0 Indication element from wpa_supplicant now includes the
release number field and wpa_supplicant shows the release number of the
AP in STATUS command (hs20=1 replaced with hs20=<release>).

The new update_identifier field in the cred block can now be used to
configure the PPS MO ID so that wpa_supplicant adds it to the Indication
element in Association Request frames.

Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>

10 years agoInterworking: Allow roaming partner configuration
Jouni Malinen [Thu, 6 Dec 2012 06:48:18 +0000 (22:48 -0800)] 
Interworking: Allow roaming partner configuration

The new roaming_partner parameter within a cred block can be used to
configure priorities for roaming partners.

Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>

10 years agonl80211: Add driver capability for GTK_NOT_USED
Jouni Malinen [Mon, 27 Jan 2014 17:11:15 +0000 (19:11 +0200)] 
nl80211: Add driver capability for GTK_NOT_USED

Many drivers support operation without GTK configured, but most (if any)
today do not advertise this. Handle this by skipping GTK cipher suite
configuration if the driver did not advertise support in order to work
around cfg80211 validation steps.

Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>

10 years agoDo not clear global pmf setting on FLUSH
Jouni Malinen [Mon, 27 Jan 2014 16:30:40 +0000 (18:30 +0200)] 
Do not clear global pmf setting on FLUSH

This parameter was actually used in some testing cases in a way that did
not really work well with the FLUSH command ending up disabling PMF.

Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>

10 years agotests: Clear pmf parameter on reset()
Jouni Malinen [Tue, 25 Feb 2014 23:23:43 +0000 (01:23 +0200)] 
tests: Clear pmf parameter on reset()

This is in preparation of removing pmf parameter reset on the FLUSH
command.

Signed-off-by: Jouni Malinen <j@w1.fi>
10 years agoOnly try fast reconnect if network is not disabled
Jouni Malinen [Tue, 18 Feb 2014 10:07:06 +0000 (12:07 +0200)] 
Only try fast reconnect if network is not disabled

Previously, it would have been possible for the network to be marked
disabled and that marking to be ignored if a recoverable disconnection
reason event were processed. Avoid this by verifying network status
before trying to reconenct back to the same BSS.

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
10 years agotests: Verify domain_suffix_match in a cred block
Jouni Malinen [Tue, 25 Feb 2014 21:40:29 +0000 (23:40 +0200)] 
tests: Verify domain_suffix_match in a cred block

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
10 years agotests: Verify Interworking network selection with no auth params
Jouni Malinen [Tue, 25 Feb 2014 21:16:54 +0000 (23:16 +0200)] 
tests: Verify Interworking network selection with no auth params

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
10 years agotests: Verify Interworking network selection reconnection
Jouni Malinen [Tue, 25 Feb 2014 20:41:03 +0000 (22:41 +0200)] 
tests: Verify Interworking network selection reconnection

This verifies that 'INTERWORKING_SELECT auto' is able to roam to a
higher priority network when executed while connected to a lower
priority network.

Signed-off-by: Jouni Malinen <j@w1.fi>
10 years agoInterworking: Prefer last added network during network selection
Jouni Malinen [Tue, 25 Feb 2014 20:37:57 +0000 (22:37 +0200)] 
Interworking: Prefer last added network during network selection

Previously, any network block could be used to select the BSS to connect
to when processing scan results after Interworking network selection.
This can result in somewhat unexpected network selection in cases where
credential preferences indicated that a specific network was selected,
but another network ended up getting used for the connection. While the
older networks continue to be valid, add special processing for this
initial post-interworking-connect case to get more consistent network
selection to match with the Interworking network selection result.

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
10 years agotests: Add module tests for blacklist to complete coverage
Jouni Malinen [Tue, 25 Feb 2014 18:04:16 +0000 (20:04 +0200)] 
tests: Add module tests for blacklist to complete coverage

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
10 years agoP2P: Remove unnecessary ifdef CONFIG_NO_CONFIG_WRITE
Jouni Malinen [Tue, 25 Feb 2014 17:29:05 +0000 (19:29 +0200)] 
P2P: Remove unnecessary ifdef CONFIG_NO_CONFIG_WRITE

wpa_config_write() is defined as a dummy function even if actual
operation to write the configuration file are commented out from the
build. This cleans up the code a bit and removed a compiler warning on
set-only variable.

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
10 years agoFix documentation for wpa_supplicant_global_ctrl_iface_process()
Purushottam Kushwaha [Tue, 25 Feb 2014 13:55:53 +0000 (15:55 +0200)] 
Fix documentation for wpa_supplicant_global_ctrl_iface_process()

This fixes a copy-paste error in the function name in
wpa_supplicant_global_ctrl_iface_process() documentation.

Signed-off-by: Purushottam Kushwaha <p.kushwaha@samsung.com>
10 years agohwsim tests: Add support for the chanctx flag when creating radios
Luciano Coelho [Mon, 10 Feb 2014 15:06:19 +0000 (17:06 +0200)] 
hwsim tests: Add support for the chanctx flag when creating radios

Add a new option to set the use_chanctx flag when creating a radio.
While at it, refactor the arguments parsing code to use argparse.

Signed-hostap: Luciano Coelho <luciano.coelho@intel.com>

10 years agoDFS: Fix coding style (missing whitespace)
Jouni Malinen [Tue, 25 Feb 2014 14:47:22 +0000 (16:47 +0200)] 
DFS: Fix coding style (missing whitespace)

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
10 years agoDFS: Add VHT160 available channels
Janusz Dziedzic [Sat, 15 Feb 2014 18:37:22 +0000 (19:37 +0100)] 
DFS: Add VHT160 available channels

Add VHT160 available channels we can choose from when having detected a
radar event.

Signed-off-by: Janusz Dziedzic <janusz.dziedzic@tieto.com>
10 years agohostapd: DFS allow mixed channels
Janusz Dziedzic [Sat, 15 Feb 2014 18:37:21 +0000 (19:37 +0100)] 
hostapd: DFS allow mixed channels

Allow mixed DFS and non-DFS channels, e.g., VHT160 on channels 36-64.
This is useful for testing VHT160 with mac80211_hwsim.

Signed-off-by: Janusz Dziedzic <janusz.dziedzic@tieto.com>
10 years agowpa_supplicant: Add support for IPv6 with UDP ctrl_iface
Janusz Dziedzic [Mon, 24 Feb 2014 12:22:16 +0000 (13:22 +0100)] 
wpa_supplicant: Add support for IPv6 with UDP ctrl_iface

Add IPv6 support when using udp/udp-remote control interface using the
following new build configuration options:

CONFIG_CTRL_IFACE=udp6
CONFIG_CTRL_IFACE=udp6-remote

This is useful for testing, while we don't need to assign IPv4 address
(static or using DHCP) and can just use auto configured IPv6 addresses
(link local, which is based on the MAC address). Also add scope id
support for link local case.

For example,
./wpa_cli
./wpa_cli -i ::1,9877
./wpa_cli -i fe80::203:7fff:fe05:69%wlan0,9877

Signed-off-by: Janusz Dziedzic <janusz.dziedzic@tieto.com>
10 years agohostapd: Deauthenticate clients forbidden by maclist changes
Emanuel Taube [Tue, 18 Feb 2014 10:36:35 +0000 (11:36 +0100)] 
hostapd: Deauthenticate clients forbidden by maclist changes

After adding or removing a MAC address from a list, the
corresponding station was not deauthenticated as expected.

Signed-off-by: Emanuel Taube <emanuel.taube@gmail.com>
10 years agohostapd: Make it possible to remove addresses from maclists
Emanuel Taube [Tue, 25 Feb 2014 09:59:44 +0000 (10:59 +0100)] 
hostapd: Make it possible to remove addresses from maclists

It is already possible to add MAC addresses at runtime. This patch
allows also to remove some of them by using the prefix "-" in the
address file.

Signed-off-by: Emanuel Taube <emanuel.taube@gmail.com>
10 years agoAdd os_remove_in_array()
Emanuel Taube [Tue, 25 Feb 2014 09:59:44 +0000 (10:59 +0100)] 
Add os_remove_in_array()

This can be used to remove members from an array.

Signed-off-by: Emanuel Taube <emanuel.taube@gmail.com>
10 years agoForce OFDM/HT/VHT to be disabled on channel 14
Jouni Malinen [Tue, 25 Feb 2014 11:52:26 +0000 (13:52 +0200)] 
Force OFDM/HT/VHT to be disabled on channel 14

The regulatory rules in Japan do not allow OFDM to be used on channel
14. While this was to some extend assumed to be enforced by drivers
(many of which apparently don't), it is safer to make hostapd enforce
this by disabling any OFDM-related functionality. This tries to avoid
backwards compatibility issues by downgrading the mode rather than
rejecting the invalid configuration.

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
10 years agonl80211: Show regulatory rule flags in debug output
Jouni Malinen [Tue, 25 Feb 2014 11:34:20 +0000 (13:34 +0200)] 
nl80211: Show regulatory rule flags in debug output

These can be useful in understanding why some channels are disabled.

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
10 years agohostapd: Configure spectrum management capability
Chaitanya T K [Fri, 21 Feb 2014 13:42:18 +0000 (14:42 +0100)] 
hostapd: Configure spectrum management capability

Add configuration of Spectrum Management subfield in the Capability
Information of Beacon, Probe Response, and Association Response frames.
Spectrum Management bit is set when directly requested by new
configuration option spectrum_mgmt_required=1 or when AP is running on
DFS channels. In the future, also TPC shall require this bit to be set.

Signed-hostap: Srinivasan <srinivasanb@posedge.com>
Signed-hostap: Chaitanya T K <chaitanyatk@posedge.com>
Signed-hostap: Marek Puzyniak <marek.puzyniak@tieto.com>

10 years agohostapd: Add Power Constraint element
Srinivasan B [Fri, 21 Feb 2014 13:42:17 +0000 (14:42 +0100)] 
hostapd: Add Power Constraint element

Add Power Constraint information element to Beacon and Probe Response
frames when hostapd is configured on 5 GHz band and Country information
element is also added. According to IEEE Std 802.11-2012 a STA shall
determine a local maximum transmit power for the current channel based
on information derived from Country and Power Constraint elements.

In order to add Power Constraint element ieee80211d option need to be
enabled and new local_pwr_constraint config option need to be set to
unsigned value in units of decibels. For now this value is statically
configured but the future goal is to implement dynamic TPC algorithm
to control local power constraint.

Signed-hostap: Srinivasan <srinivasanb@posedge.com>
Signed-hostap: Chaitanya T K <chaitanyatk@posedge.com>
Signed-hostap: Marek Puzyniak <marek.puzyniak@tieto.com>

10 years agoFix spelling s/algorith/algorithm/
Stefan Lippers-Hollmann [Thu, 20 Feb 2014 21:19:12 +0000 (21:19 +0000)] 
Fix spelling s/algorith/algorithm/

Signed-off-by: Stefan Lippers-Hollmann <s.l-h@gmx.de>
10 years agotests: Enable CCMP fragmentation check
Jouni Malinen [Mon, 24 Feb 2014 15:15:16 +0000 (17:15 +0200)] 
tests: Enable CCMP fragmentation check

This was triggering failures due to a mac80211 bug that has now been
fixed.

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
10 years agoDo not start another connect work while one is pending
Jouni Malinen [Mon, 24 Feb 2014 13:22:35 +0000 (15:22 +0200)] 
Do not start another connect work while one is pending

It was possible for the connect or sme-connect radio work to get
re-scheduled while an earlier request was still pending, e.g.,
select_network is issued at the moment a scan radio work is in progress
and the old scan results are recent enough for starting the connection.
This could result in unexpected attempt to re-associate immediately
after completing the first connection.

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
10 years agotests: WPS UPnP operations
Jouni Malinen [Sat, 22 Feb 2014 12:06:58 +0000 (14:06 +0200)] 
tests: WPS UPnP operations

Signed-off-by: Jouni Malinen <j@w1.fi>
10 years agotests: WPS UPnP SSDP testing
Jouni Malinen [Sat, 22 Feb 2014 09:52:59 +0000 (11:52 +0200)] 
tests: WPS UPnP SSDP testing

Signed-off-by: Jouni Malinen <j@w1.fi>
10 years agotests: Stop WPS ER on station reset
Jouni Malinen [Mon, 24 Feb 2014 11:55:42 +0000 (13:55 +0200)] 
tests: Stop WPS ER on station reset

This seems to be needed in some cases to avoid issues in test cases that
assume there are no other ERs running.

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
10 years agoWPS: Fix UNSUBSCRIBE error returns if NT or CALLBACK header is used
Jouni Malinen [Sat, 22 Feb 2014 16:57:41 +0000 (18:57 +0200)] 
WPS: Fix UNSUBSCRIBE error returns if NT or CALLBACK header is used

Signed-off-by: Jouni Malinen <j@w1.fi>
10 years agoWPS: Fix UNSUBSCRIBE to return 412 if no SID match found
Jouni Malinen [Sat, 22 Feb 2014 16:51:37 +0000 (18:51 +0200)] 
WPS: Fix UNSUBSCRIBE to return 412 if no SID match found

UPnP-arch-DeviceArchitecture describe ErrorCode 412 to be used for the
case where no un-epxired subscription matches. This used to return 200
which is not strictly speaking correct even though it is unlikely to
cause any problems.

Signed-off-by: Jouni Malinen <j@w1.fi>
10 years agoWPS: Remove unnecessary filename NULL check
Jouni Malinen [Sat, 22 Feb 2014 11:43:08 +0000 (13:43 +0200)] 
WPS: Remove unnecessary filename NULL check

The caller of the GET parser is checking this already and the GET case
was the only one that ended up doing the duplicated validation step.

Signed-off-by: Jouni Malinen <j@w1.fi>
10 years agotests: Remove forgotten tcpdump references
Jouni Malinen [Sat, 22 Feb 2014 08:47:49 +0000 (10:47 +0200)] 
tests: Remove forgotten tcpdump references

tcpdump has not been used in the test scripts for a while, so no need
to stop it from stop.sh.

Signed-off-by: Jouni Malinen <j@w1.fi>
10 years agotests: Fix the file comment to describe what this script does
Jouni Malinen [Fri, 21 Feb 2014 18:25:25 +0000 (20:25 +0200)] 
tests: Fix the file comment to describe what this script does

Signed-off-by: Jouni Malinen <j@w1.fi>
10 years agotests: Change the python interpreter directive
Roger Zanoni [Fri, 21 Feb 2014 18:23:56 +0000 (20:23 +0200)] 
tests: Change the python interpreter directive

This makes the script check the environment for the current python
interpreter in use instead of assuming that the python executable points
to a python 2 interpreter.

Signed-off-by: Roger Zanoni <roger.zanoni@openbossa.org>
10 years agotests: Remove unnecessary interpreter line from most python files
Jouni Malinen [Fri, 21 Feb 2014 18:21:53 +0000 (20:21 +0200)] 
tests: Remove unnecessary interpreter line from most python files

Only run-tests.py is actually executed, so there is no need to specify
the interpreter in all the helper files and test script files.

Signed-off-by: Jouni Malinen <j@w1.fi>
10 years agoP2P: Fix missing eloop_cancel_timeout in invitation trigger
Rahul Jain [Thu, 20 Feb 2014 11:04:09 +0000 (16:34 +0530)] 
P2P: Fix missing eloop_cancel_timeout in invitation trigger

When a Probe Request frame from an invitation peer is received, a timer
is schedule to start invitation. However, this could have been scheduled
multiple times (once per Probe Request frame) which is undesirable since
only a single invitation should be initiated.

Signed-off-by: Rahul Jain <rahul.jain@samsung.com>
10 years agotests: Add module tests for WPS attribute parsing
Jouni Malinen [Thu, 20 Feb 2014 23:15:16 +0000 (01:15 +0200)] 
tests: Add module tests for WPS attribute parsing

Signed-off-by: Jouni Malinen <j@w1.fi>
10 years agotests: Add a module test integration to hwsim tests
Jouni Malinen [Thu, 20 Feb 2014 22:14:30 +0000 (00:14 +0200)] 
tests: Add a module test integration to hwsim tests

CONFIG_MODULE_TESTS=y build option can now be used to build in module
tests into hostapd and wpa_supplicant binaries. These test cases will be
used to get better testing coverage for various details that are
difficult to test otherwise through the control interface control. A
single control interface command is used to executed these tests within
the hwsim test framework. This commit adds just the new mechanism, but no
module tests are yet integrated into this mechanism.

Signed-off-by: Jouni Malinen <j@w1.fi>
10 years agoWPS: Fix parsing of 0-length WFA vendor extension subelement
Jouni Malinen [Fri, 21 Feb 2014 11:05:37 +0000 (13:05 +0200)] 
WPS: Fix parsing of 0-length WFA vendor extension subelement

The previous parser would have skipped a WFA vendor extension attribute
that includes only a single zero-length subelement. No such subelement
has been defined so far, so this does not really affect any
functionality, but better make the parser address this correctly should
such an element ever be added.

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
10 years agoP2P: Add even more debug prints for Probe Request in non-Listen state
Jouni Malinen [Thu, 20 Feb 2014 14:59:29 +0000 (16:59 +0200)] 
P2P: Add even more debug prints for Probe Request in non-Listen state

It looks like discovery_dev_id test case can still fail and based on the
previously added debug prints, this is happening since the P2P module
believes it is not in Listen state even when a P2P_LISTEN was issued.
p2p_listen_cb() did not get called on remain-on-channel event for some
reason, so lets add more debug to find out why this can happen.

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
10 years agoAvoid undefined references with CONFIG_WPA_TRACE_BFD=y
Roger Zanoni [Wed, 19 Feb 2014 19:46:11 +0000 (15:46 -0400)] 
Avoid undefined references with CONFIG_WPA_TRACE_BFD=y

libdl, libiberty, and libzlib are dependencies for libbfd.

Signed-off-by: Roger Zanoni <roger.zanoni@openbossa.org>
10 years agowpa_debug: Remove 2048 byte message length limit
Anders Kaseorg [Sun, 16 Feb 2014 00:08:32 +0000 (19:08 -0500)] 
wpa_debug: Remove 2048 byte message length limit

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
10 years agotests: Increase P2P SD test coverage
Jouni Malinen [Thu, 20 Feb 2014 14:17:48 +0000 (16:17 +0200)] 
tests: Increase P2P SD test coverage

Verify cases both with multiple peers (one of which not advertising any
services) and with multiple SD queries.

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
10 years agoP2P: Address few issues seen with P2P SD
Jithu Jance [Thu, 20 Feb 2014 11:43:25 +0000 (17:13 +0530)] 
P2P: Address few issues seen with P2P SD

Suppose we have multiple peers and we have peers advertising SD
capability, but no services registered for advertising. In this case,
even if there are multiple broadcast queries set, we might end up
sending only the lastly added broadcast query to the same device (since
SD_INFO won't get set for the first broadcast query). Add support for
multiple wildcard queries to be tracked to enable this type of use
case.

Some times it is seen that before advancing to next device in the list,
the scan results come and update SD_SCHEDULE flag. This will result in
sending the already sent query to the same device without giving chance
to other devices. This issue again is seen with peer devices advertising
SD capability without any services registered.

Signed-off-by: Jithu Jance <jithu@broadcom.com>
10 years agoTLS: Add tls_disable_tlsv1_1 and tls_disable_tlsv1_2 phase1 params
Dmitry Shmidt [Wed, 19 Feb 2014 21:21:58 +0000 (13:21 -0800)] 
TLS: Add tls_disable_tlsv1_1 and tls_disable_tlsv1_2 phase1 params

These can be used to disable TLSv1.1 and TLSv1.2 as a workaround for AAA
servers that have issues interoperating with newer TLS versions.

Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>