mech_eap.git
12 years agoAdd ChangeLog entries from v1.0 release
Jouni Malinen [Thu, 10 May 2012 19:12:07 +0000 (22:12 +0300)]
Add ChangeLog entries from v1.0 release

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

12 years agoValidate WEP key lengths based on driver capabilities
Jouni Malinen [Thu, 10 May 2012 11:34:46 +0000 (14:34 +0300)]
Validate WEP key lengths based on driver capabilities

The nl80211 driver interface does not allow 128-bit WEP to be used
without a vendor specific cipher suite and no such suite is defined for
this purpose. Do not accept WEP key length 16 for nl80211 driver
interface forn ow. wext-interface can still try to use these for
backwards compatibility.

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

12 years agowpa_supplicant: Fix overlapping memcpy on WPS interface addition
Ben Greear [Thu, 10 May 2012 07:56:51 +0000 (10:56 +0300)]
wpa_supplicant: Fix overlapping memcpy on WPS interface addition

I think this should fix the following valgrind complaint:

==1972== Source and destination overlap in memcpy(0x5181708, 0x5181708, 16)
==1972==    at 0x4A073BA: memcpy (mc_replace_strmem.c:602)
==1972==    by 0x45872B: wpas_wps_set_uuid (wps_supplicant.c:1116)
==1972==    by 0x4599EC: wpas_wps_update_config (wps_supplicant.c:1747)
==1972==    by 0x4C8DB0: wpa_supplicant_update_config (wpa_supplicant.c:3090)
==1972==    by 0x4C3E5E: wpa_supplicant_reload_configuration (wpa_supplicant.c:746)
==1972==    by 0x4B8B37: wpa_supplicant_ctrl_iface_process (ctrl_iface.c:4082)
==1972==    by 0x4BA39C: wpa_supplicant_ctrl_iface_receive (ctrl_iface_unix.c:168)
==1972==    by 0x4114D4: eloop_sock_table_dispatch_table (eloop.c:335)
==1972==    by 0x411541: eloop_sock_table_dispatch (eloop.c:352)
==1972==    by 0x41200D: eloop_run (eloop.c:766)
==1972==    by 0x4C8B43: wpa_supplicant_run (wpa_supplicant.c:3010)
==1972==    by 0x4D44AD: main (main.c:286)

Signed-hostap: Ben Greear <greearb@candelatech.com>
intended-for: hostap-1

12 years agoP2P: Deinitialize global P2P context on P2P mgmt interface removal
Jouni Malinen [Thu, 10 May 2012 07:49:22 +0000 (10:49 +0300)]
P2P: Deinitialize global P2P context on P2P mgmt interface removal

The P2P implementation assumes that the first wpa_s interface instance
is used to manage P2P operations and the P2P module maintains a pointer
to this interface in msg_ctx. This can result in issues (e.g., use of
freed memory) when the management interface is removed. Fix this by
deinitializing global P2P data if the interface that created it is
removed. This will disable P2P until the next interface is added.

Signed-hostap: Jouni Malinen <j@w1.fi>
intended-for: hostap-1

12 years agoHS 2.0: Add Hotspot 2.0 ANQP elements to Interworking queries
Jouni Malinen [Sun, 16 Oct 2011 19:25:42 +0000 (22:25 +0300)]
HS 2.0: Add Hotspot 2.0 ANQP elements to Interworking queries

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

12 years agoHS 2.0: Indicate Hotspot 2.0 in BSS table and status
Jouni Malinen [Mon, 3 Oct 2011 15:23:01 +0000 (18:23 +0300)]
HS 2.0: Indicate Hotspot 2.0 in BSS table and status

If the AP indicates support for Hotspot 2.0, show this in the
ctrl_iface commands for BSS table and status.

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

12 years agoHS 2.0: Parse Hotspot 2.0 IE from IE list
Jouni Malinen [Mon, 3 Oct 2011 15:23:01 +0000 (18:23 +0300)]
HS 2.0: Parse Hotspot 2.0 IE from IE list

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

12 years agoHS 2.0: Add HS 2.0 Indication element into (Re)Association Request
Jouni Malinen [Mon, 3 Oct 2011 15:10:23 +0000 (18:10 +0300)]
HS 2.0: Add HS 2.0 Indication element into (Re)Association Request

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

12 years agoHS 2.0: Add Hotspot 2.0 indication into Probe Request
Jay Katabathuni [Thu, 8 Sep 2011 17:52:23 +0000 (20:52 +0300)]
HS 2.0: Add Hotspot 2.0 indication into Probe Request

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

12 years agoHS 2.0: Add Hotspot 2.0 station ctrl_iface
Jay Katabathuni [Thu, 8 Sep 2011 17:52:23 +0000 (20:52 +0300)]
HS 2.0: Add Hotspot 2.0 station ctrl_iface

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

12 years agoHS 2.0: Add runtime configuration of Hotspot 2.0 station
Jay Katabathuni [Thu, 8 Sep 2011 17:52:23 +0000 (20:52 +0300)]
HS 2.0: Add runtime configuration of Hotspot 2.0 station

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

12 years agoHS 2.0: Add Hotspot 2.0 ANQP routines
Jay Katabathuni [Thu, 8 Sep 2011 17:52:23 +0000 (20:52 +0300)]
HS 2.0: Add Hotspot 2.0 ANQP routines

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

12 years agoHS 2.0: Define Hotspot 2.0 OUI types and subtype values
Jay Katabathuni [Sun, 16 Oct 2011 16:40:32 +0000 (19:40 +0300)]
HS 2.0: Define Hotspot 2.0 OUI types and subtype values

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

12 years agoRemove scripts and notes related to the Windows binary package
Jouni Malinen [Tue, 8 May 2012 17:49:33 +0000 (20:49 +0300)]
Remove scripts and notes related to the Windows binary package

There are no plans to continue making the Windows binary package for
wpa_supplicant for 1.x or newer releases, so remove the scripts and
notes that are related to this.

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

12 years agoP2P: Reject PD Request for unknown group
Jouni Malinen [Tue, 8 May 2012 14:34:19 +0000 (17:34 +0300)]
P2P: Reject PD Request for unknown group

If PD Request includes P2P Group ID, verify that the specified
group matches with a group we are currently operating. If no match
is found, reject the PD Request for join-a-group case.

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

12 years agoP2P: Store SSID of the group in p2p_group data
Jouni Malinen [Tue, 8 May 2012 14:33:14 +0000 (17:33 +0300)]
P2P: Store SSID of the group in p2p_group data

This can be used with P2P management operations that need to verify
whether the local device is operating a specific group based on
P2P Group ID attribute from a peer.

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

12 years agoP2P: Allow older scan results to improve p2p_connect-auto robustness
Jouni Malinen [Tue, 8 May 2012 14:13:56 +0000 (17:13 +0300)]
P2P: Allow older scan results to improve p2p_connect-auto robustness

Previusly the peer was assumed to not be operating a GO if the BSS entry
for it was not updated in the single scan run started by
p2p_connect-auto. This is not very robust since a scan may miss the peer
if either a Probe Request or Probe Response frame is lost. Improve
robustness by assuming the peer is still operating the GO and starting
the join operation. If the GO is not found during PD-for-join or the
single-channel scans during the join, fall back to GO Negotiation.

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

12 years agoP2P: Do not use prov_disc_resp() callback for rejected PD
Jouni Malinen [Tue, 8 May 2012 14:02:28 +0000 (17:02 +0300)]
P2P: Do not use prov_disc_resp() callback for rejected PD

Commit 349b213cc8babdc0212938714104f7e28d34b335 added a separate
callback prov_disc_fail() for indicating PD failures, but it left the
Provision Discovery Response handler to call both callbacks in case the
peer rejected the PD. Commit f65a239ba4760cc6e8a169d21a4fcabed444a90b
added ctrl_iface event for PD failures. This combination can result in
two ctrl_iface events in the peer rejecting a PD case. Clean this up by
only indicating the failure event.

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

12 years agoP2P: Wait 100 ms if driver fails to start listen operation
Jouni Malinen [Tue, 8 May 2012 08:50:03 +0000 (11:50 +0300)]
P2P: Wait 100 ms if driver fails to start listen operation

Some drivers may accept the remain-on-channel command, but instead of
indicating start event for remain-on-channel, just indicate that the
operation has been canceled immediately. This could result in continuous
loop of search/listen states with very limited time to do anything else
in wpa_supplicant if the scan command is also completed quickly (e.g.,
if the driver is unable to scan other channels than the current
operating channel).

As a workaround, do not start the next step (search) in P2P device
discovery if this type of rejection of listen operation is detected.
This gives some more time for wpa_supplicant to handle whatever else
may be needed at to be done at the same time and reduces the amount
of CPU used in a loop that does not really work correctly from the
view point of being discoverable.

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

12 years agoIgnore network blocks that have invalid WEP key length
Jouni Malinen [Mon, 7 May 2012 10:39:33 +0000 (13:39 +0300)]
Ignore network blocks that have invalid WEP key length

Do not try to associate with a network that has an invalid or incomplete
configuration because the association or at least data connection would
fail anyway. This commits adds a common function for checking whether a
network block is disabled to make it easier to check network blocks
without having to reject them during configuration file parsing (which
would prevent wpa_supplicant from starting). The only additional check
added in this commit is to verify the WEP key length. Similar checks for
other parameters can be added in future commits.

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

12 years agoUpdate copyright and license notification in D-Bus interace P2P files
Jouni Malinen [Mon, 7 May 2012 10:07:22 +0000 (13:07 +0300)]
Update copyright and license notification in D-Bus interace P2P files

This adds the copyright notice for Intel and moves to the license
notification that uses only the BSD license. The changes were
acknowledged by email ("Berg, Johannes" <johannes.berg@intel.com>,
Mon, 7 May 2012 07:33:53 +0000).

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

12 years agoAdd preliminary RADIUS dynamic authorization server (RFC 5176)
Jouni Malinen [Sun, 6 May 2012 19:02:42 +0000 (22:02 +0300)]
Add preliminary RADIUS dynamic authorization server (RFC 5176)

This adds the basic DAS mechanism to enable hostapd to be configured
to request dynamic authorization requests (Disconnect-Request and
CoA-Request). This commit does not add actual processing of the
requests, i.e., this will only receive and authenticate the requests
and NAK them regardless of what operation is requested.

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

12 years agohostapd: Allow addition of arbitrary RADIUS attributes
Jouni Malinen [Sat, 5 May 2012 17:19:56 +0000 (20:19 +0300)]
hostapd: Allow addition of arbitrary RADIUS attributes

New configuration parameters radius_auth_req_attr and
radius_acct_req_attr can now be used to add (or override) RADIUS
attributes in Access-Request and Accounting-Request packets.

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

12 years agohostapd: Add optional Chargeable-User-Identity request (RFC 4372)
Jouni Malinen [Sat, 5 May 2012 15:19:54 +0000 (18:19 +0300)]
hostapd: Add optional Chargeable-User-Identity request (RFC 4372)

radius_request_cui=1 configuration parameter can now be used to
configure hostapd to request CUI from the RADIUS server by including
Chargeable-User-Identity attribute into Access-Request packets.

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

12 years agohostapd: Copy Chargeable-User-Identity into accounting (RFC 4372)
Jouni Malinen [Sat, 5 May 2012 15:05:09 +0000 (18:05 +0300)]
hostapd: Copy Chargeable-User-Identity into accounting (RFC 4372)

If Access-Accept packet includes the Chargeable-User-Identity attribute,
copy this attribute as-is into accounting messages.

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

12 years agoAdd more documentation for IEEE 802.11w/PMF configuration
Jouni Malinen [Sat, 5 May 2012 13:48:23 +0000 (16:48 +0300)]
Add more documentation for IEEE 802.11w/PMF configuration

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

12 years agoFix SIM/USIM determination to support EAP-AKA'
Jouni Malinen [Sat, 5 May 2012 11:19:13 +0000 (14:19 +0300)]
Fix SIM/USIM determination to support EAP-AKA'

Both EAP-AKA and EAP-AKA' use USIM. Without this change, use of real
USIM card for EAP-AKA' was not allowed to proceed, i.e., only the
software simulated USIM operations were supported.

Signed-hostap: Jouni Malinen <j@w1.fi>
intended-for: hostap-1

12 years agohlr_auc_gw: Use 5 bit IND for SQN updates
Jouni Malinen [Sat, 5 May 2012 11:12:42 +0000 (14:12 +0300)]
hlr_auc_gw: Use 5 bit IND for SQN updates

Change the SQN generation mechanism to use not time-based Profile 2
as described in 3GPP TS 33.102 Annex C.3.2. The previous implementation
used void IND (i.e.., all of SQN was SEQ1). The new default uses 5 bits
of SQN as IND. The length of IND can be configured on the command line
with the new -i<IND len in bits> parameter. -i0 would make hlr_auc_gw
behave in the same way as the previous implementation.

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

12 years agohlr_auc_gw: Add support for updating Milenage file SQN
Jouni Malinen [Thu, 3 May 2012 19:39:49 +0000 (22:39 +0300)]
hlr_auc_gw: Add support for updating Milenage file SQN

If the new command line argument -u is used, hlr_auc_gw will update
the Milenage file SQN numbers when exiting based on what was the last
SQN used during the process runtime.

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

12 years agohlr_auc_gw: Fix CONFIG_WPA_TRACE=y build
Jouni Malinen [Thu, 3 May 2012 19:05:04 +0000 (22:05 +0300)]
hlr_auc_gw: Fix CONFIG_WPA_TRACE=y build

Need to initialize tracing code and use correct free() wrapper.

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

12 years agoP2P: Add P2P information for Doxygen docs
Jouni Malinen [Sun, 18 Jul 2010 21:30:26 +0000 (14:30 -0700)]
P2P: Add P2P information for Doxygen docs

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

12 years agoWNM: Define IEEE 802.11v WNM-Sleep elements
Xi Chen [Sun, 26 Feb 2012 15:20:00 +0000 (17:20 +0200)]
WNM: Define IEEE 802.11v WNM-Sleep elements

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

12 years agoAllow pbc_in_m1 workaround to be enabled in wpa_supplicant AP mode
Wei-Jen Lin [Thu, 3 May 2012 13:51:04 +0000 (16:51 +0300)]
Allow pbc_in_m1 workaround to be enabled in wpa_supplicant AP mode

This workaround for Windows 7 WPS probing mechanism was previously
allowed only with hostapd, but the same interoperability issue can
happen with wpa_supplicant AP/GO mode. Allow the workaround to be
enabled in wpa_supplicant configuration for these uses.

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

12 years agoP2P: Clone max_sta_num parameter for group interfaces
Wei-Jen Lin [Thu, 3 May 2012 13:41:15 +0000 (16:41 +0300)]
P2P: Clone max_sta_num parameter for group interfaces

This is needed to allow the max_sta_num parameter set in the main
configuration file to apply to dynamically created P2P group
interfaces.

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

12 years agoScan only 2.4 GHz band for OBSS scans
Jouni Malinen [Thu, 3 May 2012 12:51:18 +0000 (15:51 +0300)]
Scan only 2.4 GHz band for OBSS scans

Since we are reporting 20/40 BSS coex information only for 2.4 GHz band,
there is no need to run the full scan on dualband cards.

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

12 years agoAdd handling of OBSS scan requests and 20/40 BSS coex reports
Rajkumar Manoharan [Thu, 3 May 2012 09:13:43 +0000 (12:13 +0300)]
Add handling of OBSS scan requests and 20/40 BSS coex reports

Add support for HT STA to report 40 MHz intolerance to the associated AP.
A HT station generates a report (20/40 BSS coexistence) of channel list
if it finds a non-HT capable AP or a HT AP which prohibits 40 MHz
transmission (i.e., 40 MHz intolerant bit is set in HT capabilities IE)
from the scan results.

Parse the OBSS scan parameter from Beacon or Probe Response frames and
schedule periodic scan to generate 20/40 coexistence channel report if
requested to do so. This patch decodes Scan Interval alone from the OBSS
Scan Parameters element and triggers scan on timeout.

Signed-off-by: Rajkumar Manoharan <rmanohar@qca.qualcomm.com>
Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>

12 years agoDefine 20/40 BSS Coexistence elements
Rajkumar Manoharan [Tue, 24 Apr 2012 13:08:35 +0000 (18:38 +0530)]
Define 20/40 BSS Coexistence elements

This patch defines 20/40 BSS Intolerant Channel Report element
(IEEE 802.11-2012 8.4.2.60) and 20/40 BSS Coexistence element
(IEEE 802.11-2012 8.4.2.62).

Signed-off-by: Rajkumar Manoharan <rmanohar@qca.qualcomm.com>
Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>

12 years agoEAP-AKA': Update to RFC 5448
Jouni Malinen [Wed, 2 May 2012 17:45:01 +0000 (20:45 +0300)]
EAP-AKA': Update to RFC 5448

There was a technical change between the last IETF draft version
(draft-arkko-eap-aka-kdf-10) and RFC 5448 in the leading characters
used in the username (i.e., use unique characters for EAP-AKA' instead
of reusing the EAP-AKA ones). This commit updates EAP-AKA' server and
peer implementations to use the leading characters based on the final
RFC.

Note: This will make EAP-AKA' not interoperate between the earlier
draft version and the new version.

Signed-hostap: Jouni Malinen <j@w1.fi>
intended-for: hostap-1

12 years agoEAP-AKA' server: Fix identity for MK derivation
Jouni Malinen [Wed, 2 May 2012 17:40:11 +0000 (20:40 +0300)]
EAP-AKA' server: Fix identity for MK derivation

Incorrect identity string could end up being used with EAP-AKA' when
the EAP client is using pseudonym. This code was supposed to use
sm->identity just like the EAP-AKA case.

Signed-hostap: Jouni Malinen <j@w1.fi>
intended-for: hostap-1

12 years agoP2P: Fix Device ID matching for Probe Request frames
Wei-Jen Lin [Wed, 2 May 2012 12:19:02 +0000 (15:19 +0300)]
P2P: Fix Device ID matching for Probe Request frames

The misplaced parenthesis caused Device ID matching to check only the
first octet of the P2P Device Address, i.e., we could have replied to
Probe Request frames that was searching for another device if any of
the last five octets of the address were different.

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

12 years agoRemove unused variable if CONFIG_P2P=y is not used
Jouni Malinen [Sat, 28 Apr 2012 15:31:01 +0000 (18:31 +0300)]
Remove unused variable if CONFIG_P2P=y is not used

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

12 years agoRemove unused variable
Jouni Malinen [Sat, 28 Apr 2012 15:30:41 +0000 (18:30 +0300)]
Remove unused variable

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

12 years agoFix compiler warning on printf format with size_t
Jouni Malinen [Sat, 28 Apr 2012 15:30:12 +0000 (18:30 +0300)]
Fix compiler warning on printf format with size_t

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

12 years agoFix D-Bus build without ctrl_iface
Jouni Malinen [Fri, 27 Apr 2012 18:21:31 +0000 (21:21 +0300)]
Fix D-Bus build without ctrl_iface

Commit 7de5688d682d4a96a4ce1f7959428a0112d4b75f started using
wpa_supplicant_ctrl_iface_ctrl_rsp_handle() from the D-Bus code, but
left this function in ctrl_iface.c that is included conditionally. Fix
this by moving the common function into wpa_supplicant.c so that it can
be included for builds that include only either ctrl_iface or D-Bus.

Signed-hostap: Jouni Malinen <j@w1.fi>
intended-for: hostap-1

12 years agoP2P: Add option to force SSID/passphrase for GO Negotiation
Jouni Malinen [Fri, 27 Apr 2012 15:17:10 +0000 (18:17 +0300)]
P2P: Add option to force SSID/passphrase for GO Negotiation

An existing persistent group information can now be used to force GO
Negotiation to use the previously used SSID/passphrase from a persistent
group if we become a GO. This can be used as an alternative to inviting
a new P2P peer to join the group (i.e., use GO Negotiation with GO
intent 15 instead of starting an autonomous GO and using invitation),
e.g., in case a GO Negotiation Request is received from a peer while we
are not running as a GO. The persistent group to use for parameters is
indicated with persistent=<network id> parameter to p2p_connect.

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

12 years agoP2P: Add p2p_prov_disc auto mechanism
Jouni Malinen [Thu, 26 Apr 2012 14:13:03 +0000 (17:13 +0300)]
P2P: Add p2p_prov_disc auto mechanism

wpa_supplicant can now be requested to automatically figure out whether
the indicated peer is operating as a GO and if so, use join-a-group
style PD instead of pre-GO Negotiation PD.

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

12 years agoP2P: Fix PD Failure event to show peer device address
Jouni Malinen [Thu, 26 Apr 2012 14:09:02 +0000 (17:09 +0300)]
P2P: Fix PD Failure event to show peer device address

The p2p_dev_addr parameter in the P2P-PROV-DISC-FAILURE event (added in
commit f65a239ba4760cc6e8a169d21a4fcabed444a90b) was supposed to the P2P
Device Address of the peer, not the local device.

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

12 years agoP2P: Do not update peer Listen channel based on PD/Invitation
Jouni Malinen [Thu, 26 Apr 2012 13:11:17 +0000 (16:11 +0300)]
P2P: Do not update peer Listen channel based on PD/Invitation

Commits 17bef1e97a5061a8b5443dc24166e28439911f0b and
ffe98dfb88a19b66418184955ef272789e3abb68 started using p2p_add_device()
with other frames than just Probe Response frames from scan results.
However, these changes did not take into account that the PD Request
and Invitation Request frames are normally received on the our own
Listen channel, not on the Listen channel of the peer. As such, these
frames must not be used to update Listen channel information for the
peer.

Fix this by letting p2p_add_device() know whether the results are from
scan results and if not, skip the peer table updates that are specific
to Probe Response frames.

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

12 years agoUpdate Doxygen documentation for new version
Jouni Malinen [Tue, 24 Apr 2012 17:37:24 +0000 (20:37 +0300)]
Update Doxygen documentation for new version

Add src/p2p directory and work around some issues with newer Doxygen
versions disliking the wpa_supplicant prefix in labels.

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

12 years agoFix validation of PSK-from-RADIUS-server required response
Jouni Malinen [Sat, 21 Apr 2012 16:46:58 +0000 (19:46 +0300)]
Fix validation of PSK-from-RADIUS-server required response

cache->psk is an array and never NULL. The check here needs to check the
cache->has_psk flag instead.

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

12 years agoSync wpa_supplicant man page with README changes
Jouni Malinen [Sat, 21 Apr 2012 16:17:14 +0000 (19:17 +0300)]
Sync wpa_supplicant man page with README changes

The man page source was not up-to-date with removed driver wrappers,
so bring in the wpa_supplicant/README changes to make this somewhat
closer to the current state.

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

12 years agoRemove unnecessary EVENT_RX_MGMT data validation
Jouni Malinen [Sat, 21 Apr 2012 15:54:35 +0000 (18:54 +0300)]
Remove unnecessary EVENT_RX_MGMT data validation

Make wpa_supplicant_event() more consistent by not checking
data in either location handling EVENT_RX_MGMT events. This event
is required to specify the data so this pointer cannot be NULL.

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

12 years agoP2P: Don't rely on dictionary ordering in wpas_dbus_handler_p2p_add_service
Adrien Bustany [Sat, 21 Apr 2012 15:28:10 +0000 (18:28 +0300)]
P2P: Don't rely on dictionary ordering in wpas_dbus_handler_p2p_add_service

In most languages, DBus dictionaries are mapped to either sorted maps
or hash tables, so you can't control the actual ordering of the
generated a{sv}. Relying on ordering in this method is unnecessary and
makes it use from DBus much harder.

Signed-hostap: Adrien Bustany <adrien.bustany@nokia.com>

12 years agoP2P: Remove unused variable
Masashi Honma [Sat, 21 Apr 2012 15:21:30 +0000 (18:21 +0300)]
P2P: Remove unused variable

The "type" variable is not used in wpas_p2p_deinit_global().
So this patch removes it.

Signed-hostap: Masashi Honma <masashi.honma@gmail.com>

12 years agoSync with include/linux/nl80211.h from wireless-testing.git
Jouni Malinen [Thu, 19 Apr 2012 17:41:42 +0000 (20:41 +0300)]
Sync with include/linux/nl80211.h from wireless-testing.git

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

12 years agoP2P: Add provision discovery failure event
Deepthi Gowri [Tue, 17 Apr 2012 16:44:13 +0000 (19:44 +0300)]
P2P: Add provision discovery failure event

Add provisional discovery failure ctrl_iface event
(P2P-PROV-DISC-FAILURE) to indicate to the application layer in case of
PD failure.

Signed-off-by: Deepthi Gowri <deepthi@codeaurora.org>
12 years agoFix sched_scan for max-num-of-scan_ssid=1 networks
Jouni Malinen [Tue, 17 Apr 2012 13:51:09 +0000 (16:51 +0300)]
Fix sched_scan for max-num-of-scan_ssid=1 networks

When the network configuration includes exactly the number of
scan_ssid=1 networks as the driver supports for scan_sched and no
networks need wildcard SSID scan, there is no need to use sched_scan
timeout. Check this condition and optimize this case to avoid the extra
sched_scan start/stop operations.

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

12 years agoFix sched_scan debug print regarding timeout
Jouni Malinen [Tue, 17 Apr 2012 13:32:40 +0000 (16:32 +0300)]
Fix sched_scan debug print regarding timeout

The debug messages were showing the opposite of what the actual
implementation was doing for sched_scan timeout.

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

12 years agoAdd disable_scan_offload parameter to disable automatic scan offloading
Jouni Malinen [Tue, 17 Apr 2012 13:30:15 +0000 (16:30 +0300)]
Add disable_scan_offload parameter to disable automatic scan offloading

This new configuration parameter can be used to disable automatic
offloading of scan requests to the driver which was previously used
by default if the driver supported sched_scan.

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

12 years agoP2P: Fix disallowing of pending listen command to override connect
Jouni Malinen [Mon, 16 Apr 2012 15:51:33 +0000 (18:51 +0300)]
P2P: Fix disallowing of pending listen command to override connect

Commit d9bdba9f867577ed9da6df9c5c933033c71bcdf2 was supposed to allow
p2p_listen to schedule new after scan operation only if a p2p_connect
operation was not pending. However, it used incorrect P2P_AFTER_SCAN_
value for this and did not actually prevent overriding of p2p_connect
and could have caused some p2p_listen operations to be skipped
unnecessarily.

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

12 years agoP2P: Allow wildcard service discovery from DBus API
Adrien Bustany [Sat, 14 Apr 2012 18:06:16 +0000 (21:06 +0300)]
P2P: Allow wildcard service discovery from DBus API

Using the socket command interface, it is possible to pass a NULL dst to
wpas_p2p_sd_request, however you could not do so using the D-Bus API,
since it required a valid Peer object path. This patch changes the
behavior, so that if the "peer_object" is missing from the parameters,
a NULL dst is passed to wpas_p2p_sd_request.

Signed-hostap: Adrien Bustany <adrien.bustany@nokia.com>
intended-for: hostap-1

12 years agoP2P: Cleanup P2PDevice D-Bus interface for hostap-1 release
Nirav Shah [Sat, 14 Apr 2012 17:52:59 +0000 (20:52 +0300)]
P2P: Cleanup P2PDevice D-Bus interface for hostap-1 release

This patch cleans up the P2PDevice D-Bus interface for the hostap-1
release. A spelling error is corrected and P2PDeviceProperties is
renamed to clarify that this data is configuration data and not the
total collection of Properties for the P2PDevice interface.

Signed-hostap: Nirav Shah <nirav.j2.shah@intel.com>
Signed-hostap: Angie Chinchilla <angie.v.chinchilla@intel.com>
intended-for: hostap-1

12 years agoP2P: Fix D-Bus property getters to default to "/" for Group, PeerGO
Nirav Shah [Sat, 14 Apr 2012 17:48:26 +0000 (20:48 +0300)]
P2P: Fix D-Bus property getters to default to "/" for Group, PeerGO

The D-Bus property getters should not return an error when the
properties are not valid/relevant. Returning an error breaks the
GetAll method in the dbus interface. Change Group and PeerGO
property getters to make GetAll work on P2PDevice.

Signed-hostap: Nirav Shah <nirav.j2.shah@intel.com>
Signed-hostap: Angie Chinchilla <angie.v.chinchilla@intel.com>
intended-for: hostap-1

12 years agowpa_supplicant: Use bss_id list for 'bss FIRST' command
Dmitry Shmidt [Sat, 14 Apr 2012 17:39:10 +0000 (20:39 +0300)]
wpa_supplicant: Use bss_id list for 'bss FIRST' command

Command 'bss FISRT' should use bss_id list, because 'bss NEXT-N' is using
bss_id list as well.

Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
12 years agoP2P: Allow immediate group idle timeout configuration
Jouni Malinen [Fri, 13 Apr 2012 14:03:27 +0000 (17:03 +0300)]
P2P: Allow immediate group idle timeout configuration

A special value p2p_group_idle=-1 can now be used to configure the P2P
group idle mechanism to terminate a P2P client group immediately on any
disconnection after the completion of the initial 4-way handshake.

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

12 years agoP2P: Extend use of group formation timeout until end of 4-way handshake
Jouni Malinen [Fri, 13 Apr 2012 14:01:15 +0000 (17:01 +0300)]
P2P: Extend use of group formation timeout until end of 4-way handshake

Instead of relying on the P2P group idle timeout before the group
connection has been fully established, re-start the group formation
timeout in the end of the WPS provisioning step and clear it at the
successful completion of the initial 4-way handshake. This allows the
P2P group idle timeout to be set to a small value without triggering it
during the initial scan and connection attempt.

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

12 years agoP2P: Fix p2p_connect join scan handler in error cases
Jouni Malinen [Fri, 13 Apr 2012 13:13:14 +0000 (16:13 +0300)]
P2P: Fix p2p_connect join scan handler in error cases

wpa_drv_scan() may fail for the initial p2p_connect join scan request,
e.g., if the driver happened to be scanning at the time the new
operation was initialized. Previously, a special scan result handler was
registered regardless of whether the new scan was started. This could
result in partial scan results (e.g., from p2p_find social scan) from
being used as full results for join (or now more importantly for
p2p_connect auto) purposes. Fix this by registering the new scan result
handler only if wpa_drv_scan() returns success.

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

12 years agoP2P: Add automatic GO Negotiation vs. join-a-group selection
Jouni Malinen [Fri, 13 Apr 2012 13:04:36 +0000 (16:04 +0300)]
P2P: Add automatic GO Negotiation vs. join-a-group selection

p2p_connect command can now be used with an optional "auto" parameter
to request wpa_supplicant to determine automatically whether to use
join-a-group operation (if the peer is operating as a GO) or group
formation. This makes it easier for external programs to handle
connection type selection by offloading this to wpa_supplicant. The
previously used p2p_connect join commands can be replaced with
p2p_connect auto to use this new mechanism.

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

12 years agoP2P: Clear P2P_DEV_SD_INFO when new wildcard SD query is added
Jouni Malinen [Wed, 11 Apr 2012 14:51:19 +0000 (17:51 +0300)]
P2P: Clear P2P_DEV_SD_INFO when new wildcard SD query is added

Unlike the unicast SD queries, the queries directed to all peers depend
on P2P_DEV_SD_INFO flag being cleared to allow the query to be sent to
a peer that has previously replied to any SD query.

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

12 years agoAllow disable_ht to override 11n configuration in AP mode
Vasanthakumar Thiagarajan [Wed, 11 Apr 2012 13:24:03 +0000 (16:24 +0300)]
Allow disable_ht to override 11n configuration in AP mode

This is being done only for station mode, extend it to AP mode as well.

Signed-hostap: Vasanthakumar Thiagarajan <vthiagar@qca.qualcomm.com>

12 years agoAP: Reschedule ap_handle_timer event on (re)association
Jouni Malinen [Wed, 11 Apr 2012 11:21:35 +0000 (14:21 +0300)]
AP: Reschedule ap_handle_timer event on (re)association

Previously, the timeout scheduled during the previous association was
used after reassociation if the STA entry had not yet been removed. The
next timeout does not need to happen that quickly, so reschedule it
during reassociation.

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

12 years agoAP: Add debug information for ap_handle_timer operations
Jouni Malinen [Wed, 11 Apr 2012 11:09:40 +0000 (14:09 +0300)]
AP: Add debug information for ap_handle_timer operations

This makes it easier to figure out what exactly was done with the
ap_handle_timer registration/cancellation based on a debug log.

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

12 years agoAP: Reset STA timeout_next on driver-based-SME association
Jouni Malinen [Wed, 11 Apr 2012 11:06:50 +0000 (14:06 +0300)]
AP: Reset STA timeout_next on driver-based-SME association

The next ap_handle_timer action was already cleared when association
is handled with user space -based SME. However, this step was missing
from the driver callback for indicating new association. This could
result in the first ap_handle_timer timeout on the new association
removing the station unexpectedly. Fix this by resetting the timeout_next
in hostapd_notif_assoc().

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

12 years agoFix EAP/WPS to PSK transition on reassociation in authenticator
Jouni Malinen [Tue, 10 Apr 2012 18:30:46 +0000 (21:30 +0300)]
Fix EAP/WPS to PSK transition on reassociation in authenticator

A station may move from EAP/WPS key_mgmt to PSK using re-association. In
practice, this can happen most likely with WPS when the station runs
through the provisioning step (EAP/WPS) followed by PSK authentication.
If a deauthentication event is missed from the station for whatever
reason, the EAPOL authenticator state machine could have been left
running.

This can result in various issues, including unexpected disconnection of
the station while both the 4-way handshake and EAPOL authenticator state
machines (EAP) are running at the same time when the supplicant is
trying to use PSK. Fix this by explicitly clearing EAPOL authenticator
state machine on (re)association if the new association does not use it.

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

12 years agonl80211: Extend shared_freq to handle AP/GO mode interfaces
Jithu Jance [Sun, 8 Apr 2012 17:44:05 +0000 (20:44 +0300)]
nl80211: Extend shared_freq to handle AP/GO mode interfaces

Signed-hostap: Jithu Jance <jithu@broadcom.com>

12 years agoP2P: Fix shared freq check and support AP mode validation
Jouni Malinen [Sun, 8 Apr 2012 17:42:45 +0000 (20:42 +0300)]
P2P: Fix shared freq check and support AP mode validation

The previous commit did not use the correct pointer in all operations
and was specific to station mode interfaces. Fix and extend it to work
with AP/GO interfaces, too.

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

12 years agoP2P: Abort join-group operation if concurrent group cannot be supported
Jouni Malinen [Sun, 8 Apr 2012 17:12:05 +0000 (20:12 +0300)]
P2P: Abort join-group operation if concurrent group cannot be supported

If the driver does not indicate support for multi-channel concurrency,
abort join-group operation if the end result would result in use of
multiple operating frequencies with the same radio.

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

12 years agoScan only affected frequencies for 20/40 MHz co-ex check for
Jouni Malinen [Sun, 8 Apr 2012 09:12:32 +0000 (12:12 +0300)]
Scan only affected frequencies for 20/40 MHz co-ex check for

When starting an AP with HT40 on 2.4 GHz, limit the set of channels
to scan for based on the affected frequency range to speed up the
AP setup.

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

12 years agoMake random_add_randomness() debug print less verbose
Jouni Malinen [Sun, 8 Apr 2012 08:34:54 +0000 (11:34 +0300)]
Make random_add_randomness() debug print less verbose

Mark the debug print excessive and print it only in case the entropy
collection is used since this function can get called pretty frequently.

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

12 years agoTLS: Use separate TLS library context for tunneled TLS
Jouni Malinen [Sat, 7 Apr 2012 17:57:02 +0000 (20:57 +0300)]
TLS: Use separate TLS library context for tunneled TLS

OpenSSL wrapper was using the same certificate store for both Phase 1
and Phase 2 TLS exchange in case of EAP-PEAP/TLS, EAP-TTLS/TLS, and
EAP-FAST/TLS. This would be fine if the same CA certificates were used
in both phases, but does not work properly if different CA certificates
are used. Enforce full separation of TLS state between the phases by
using a separate TLS library context in EAP peer implementation.

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

12 years agoRemove forgotten GPL language from man pages and README files
Jouni Malinen [Sat, 7 Apr 2012 10:17:20 +0000 (13:17 +0300)]
Remove forgotten GPL language from man pages and README files

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

12 years agoAndroid: Sync build configuration with defconfig changes
Jouni Malinen [Sat, 7 Apr 2012 10:09:20 +0000 (13:09 +0300)]
Android: Sync build configuration with defconfig changes

This brings up the changes from defconfig into the Android configuration
file, but does not change any of the actual build parameters.

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

12 years agoRemove experimental Symbian build
Jouni Malinen [Sat, 7 Apr 2012 10:00:30 +0000 (13:00 +0300)]
Remove experimental Symbian build

This was never really completed and is of not much use at this point,
so clean up the repository by removing the Symbian-specific changes.

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

12 years agoAdd RANGE=ALL|N1-N2 selection for ctrl_iface BSS command
Dmitry Shmidt [Sat, 7 Apr 2012 09:49:31 +0000 (12:49 +0300)]
Add RANGE=ALL|N1-N2 selection for ctrl_iface BSS command

Add ability to get information about several BSS's in one call.

Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
12 years agoAdd MASK=0xH option for the ctrl_iface BSS command
Dmitry Shmidt [Sat, 7 Apr 2012 09:23:21 +0000 (12:23 +0300)]
Add MASK=0xH option for the ctrl_iface BSS command

This optional parameter to the BSS command can be used to select which
fields are included in the output to avoid having to parse through
unneeded information and to reduce the buffer size.

Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
12 years agoMove ctrl_iface BSS command response generation into a separate function
Dmitry Shmidt [Sat, 7 Apr 2012 09:06:35 +0000 (12:06 +0300)]
Move ctrl_iface BSS command response generation into a separate function

This is in preparation for allowing multiple BSS entries to be fetched
with a single command.

Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
12 years agonl80211: Skip set_mode event subscription during deinit
Jouni Malinen [Fri, 6 Apr 2012 15:58:44 +0000 (18:58 +0300)]
nl80211: Skip set_mode event subscription during deinit

There is no need to subscribe to event messages during deinit process,
so skip this to avoid unnecessary operations and to keep the debug logs
a bit cleaner.

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

12 years agoP2P: Disconnect P2P group on supplicant deinit
Nirav Shah [Fri, 6 Apr 2012 15:41:06 +0000 (18:41 +0300)]
P2P: Disconnect P2P group on supplicant deinit

When a supplicant is deinited and shutting, disconnect from P2P groups.
This fixes a memory leak on variable dbus_groupobj_path on exiting
supplicant.

Signed-hostap: Nirav Shah <nirav.j2.shah@intel.com>
Signed-hostap: Angie Chinchilla <angie.v.chinchilla@intel.com>

12 years agoP2P: Fix crash for failure case when WSC PIN is entered incorrectly
Angie Chinchilla [Fri, 6 Apr 2012 15:22:03 +0000 (18:22 +0300)]
P2P: Fix crash for failure case when WSC PIN is entered incorrectly

When forming a P2P group using WSC PIN method, if the PIN is entered
incorrectly the P2P client supplicant instance will crash as a result
of cleanup happening on data that is still in use in a case where a
separate P2P group interface is used.

For example, here is the path for the first crash:
eap_wsc_process():
- creates struct wpabuf tmpbuf; on the stack
- sets data->in_buf = &tmpbuf;
- calls wps_process_msg()
- which calls wps_process_wsc_msg()
- which, in case WPS_M4: calls wps_fail_event()
- which calls wps->event_cb()
- wps->event_cb = wpa_supplicant_wps_event()
- wpa_supplicant_wps_event()
- wpa_supplicant_wps_event_fail()
- which calls wpas_clear_wps()
- which calls wpas_notify_network_removed()
- which calls wpas_p2p_network_removed()
- which calls wpas_p2p_group_formation_timeout()
- which calls wpas_group_formation_completed()
- which calls wpas_p2p_group_delete()
- which calls wpa_supplicant_remove_iface()
- which calls wpa_supplicant_deinit_iface()
- which calls wpa_supplicant_cleanup()
- which calls eapol_sm_deinit()
- ... which eventually uses the ptr data->in_buf to free tmpbuf, our
stack variable and then the supplicant crashes

If you fix this crash, you'll hit another. Fix it and then a segfault.
The way we're cleaning up and deleting data from under ourselves here
just isn't safe, so make the teardown portion of this async.

Signed-hostap: Angie Chinchilla <angie.v.chinchilla@intel.com>
Signed-hostap: Nirav Shah <nirav.j2.shah@intel.com>
intended-for: hostap-1

12 years agoDo not write bg_scan_period value if default (-1) has not been changed
Jouni Malinen [Fri, 6 Apr 2012 15:11:47 +0000 (18:11 +0300)]
Do not write bg_scan_period value if default (-1) has not been changed

There is no need to force this configuration parameter to be written
into the configuration file for each network block that has not modified
the default value.

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

12 years agoClarify comment in wpa_supplicant/defconfig
Angie Chinchilla [Fri, 6 Apr 2012 15:06:56 +0000 (18:06 +0300)]
Clarify comment in wpa_supplicant/defconfig

I think this comment, as originally stated, says the opposite of
what is meant. Reword to help the next guy.

Signed-hostap: Angie Chinchilla <angie.v.chinchilla@intel.com>

12 years agoSave bgscan parameter into configuration file
Ed Wildgoose [Fri, 6 Apr 2012 14:59:34 +0000 (17:59 +0300)]
Save bgscan parameter into configuration file

Signed-off-by: Ed Wildgoose <lists@wildgooses.com>
intended-for: hostap-1

12 years agoP2P: Update BSS entries in P2P group interface only if P2P IE is present
Neeraj Kumar Garg [Fri, 6 Apr 2012 11:58:22 +0000 (14:58 +0300)]
P2P: Update BSS entries in P2P group interface only if P2P IE is present

For concurrency scenarios we should not update the scan results without
P2P IE to P2P group interfaces. This patch is to take care if a scan has
been requested on STA interface and scan results are getting updated
from sibling to P2P group interface. A P2P GO Probe Response for a
legacy STA scan would be without P2P IE. So it will wrongly update the
BSS list of P2P group interface too when results are updated from
sibling.

Since P2P group interfaces are used only for connecting to a P2P group,
it is fine to filter out all non-P2P entries from their BSS table.

Signed-off-by: Neeraj Garg <neerajkg@broadcom.com>
12 years agoBetter wpa_cli error messages when connect fails
Ben Greear [Fri, 6 Apr 2012 09:15:30 +0000 (12:15 +0300)]
Better wpa_cli error messages when connect fails

Signed-hostap: Ben Greear <greearb@candelatech.com>

12 years agoMake bind failure messages unique
Ben Greear [Fri, 6 Apr 2012 09:10:36 +0000 (12:10 +0300)]
Make bind failure messages unique

This helps someone know which part of the code is complaining.

Signed-hostap: Ben Greear <greearb@candelatech.com>

12 years agowpa_supplicant: Print initialization information on startup
Ben Greear [Fri, 6 Apr 2012 08:52:17 +0000 (11:52 +0300)]
wpa_supplicant: Print initialization information on startup

This lets someone know if they have a log file that properly
starts at the beginning.

Signed-hostap: Ben Greear <greearb@candelatech.com>

12 years agoAP: Add fuzz to idle-timer calculations
Ben Greear [Fri, 6 Apr 2012 08:47:29 +0000 (11:47 +0300)]
AP: Add fuzz to idle-timer calculations

This should keep us from getting into a state where we bounce large
numbers of stations all at once. Spreading out the bounce should cause
less stress on the network as the idle stations won't all be trying to
reconnect at once.

Signed-hostap: Ben Greear <greearb@candelatech.com>

12 years agoAdd script to convert wpa_supplicant debug output to pcap
Johannes Berg [Thu, 5 Apr 2012 16:47:45 +0000 (19:47 +0300)]
Add script to convert wpa_supplicant debug output to pcap

For debugging I needed to look at the frames in a wpa_supplicant debug
log. Looking at the hexdump is a bit tedious, so I wrote a quick script
to convert the nl80211 debugging output to a PCAP file that can be
opened in wireshark.

I've polished the initial raw script a bit to add error messages and to
also record the timestamps to the pcap file.

Hopefully it's useful to somebody else as well.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
12 years agoWPS: Allow vendor specific attribute to be added into M1
Anirban Sirkhell [Tue, 3 Apr 2012 21:08:57 +0000 (00:08 +0300)]
WPS: Allow vendor specific attribute to be added into M1

wps_vendor_ext_m1 configuration parameter can now be used to add a
vendor specific attribute into the WPS M1 message, e.g., for
Windows Vertical Pairing.

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

12 years agonl80211: Indicate disconnect event as deauthentication
Jouni Malinen [Tue, 3 Apr 2012 14:11:22 +0000 (17:11 +0300)]
nl80211: Indicate disconnect event as deauthentication

This was previously indicated as disassociation, but the P2P group
session ending case expect a deauthentication notification. Since the
cfg80211 disconnection event does not really indicate which frame was
used, the easiest approach for now seems to be to just indicate these
as deauthentication events.

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