libeap.git
13 years agoAdd P2P Interface Address into ctrl_iface status output
Jouni Malinen [Wed, 30 Jun 2010 14:39:29 +0000 (07:39 -0700)]
Add P2P Interface Address into ctrl_iface status output

13 years agoP2P: Add Device Info attribute to Invitation Request
Jouni Malinen [Tue, 29 Jun 2010 23:29:14 +0000 (16:29 -0700)]
P2P: Add Device Info attribute to Invitation Request

This was added as a mandatory attribute in one of the recent spec
updates.

13 years agoP2P: Add Group Info attr into Probe Response in GO without clients
Jouni Malinen [Tue, 29 Jun 2010 17:45:39 +0000 (10:45 -0700)]
P2P: Add Group Info attr into Probe Response in GO without clients

While there is no real value in this, the spec seems to mark this
attribute as mandatory from GO, so better included it regardless
of whether we have clients or not (the attribute is empty in case
no clients are connected).

13 years agoP2P: Add test command for filtering which peers are discovered
Jouni Malinen [Tue, 29 Jun 2010 05:11:39 +0000 (22:11 -0700)]
P2P: Add test command for filtering which peers are discovered

"wpa_cli p2p_set peer_filter <MAC address>" can now be used to
only allow a single P2P Device (based on P2P Device Address) to be
discovered for testing. Setting the address to 00:00:00:00:00:00
disables the filter.

13 years agoP2P: Add test mode for SD to force fragmented response
Jouni Malinen [Tue, 29 Jun 2010 03:44:01 +0000 (20:44 -0700)]
P2P: Add test mode for SD to force fragmented response

13 years agoP2P: Fix country string mismatch validation off-by-one offset
Jouni Malinen [Mon, 28 Jun 2010 21:32:17 +0000 (14:32 -0700)]
P2P: Fix country string mismatch validation off-by-one offset

0x04 was being checked from incorrect location when skipping country
code validation.

13 years agoP2P: Initial support for SD fragmentation (GAS Comeback Request/Response)
Jouni Malinen [Mon, 28 Jun 2010 16:24:17 +0000 (09:24 -0700)]
P2P: Initial support for SD fragmentation (GAS Comeback Request/Response)

13 years agoP2P: Fix memory leak in SD service entries
Jouni Malinen [Mon, 28 Jun 2010 06:26:47 +0000 (23:26 -0700)]
P2P: Fix memory leak in SD service entries

Need to flush stored service entries when wpa_supplicant is being
terminated.

13 years agoP2P: Rename SD info not available define to match with spec change
Jouni Malinen [Sun, 27 Jun 2010 18:46:44 +0000 (11:46 -0700)]
P2P: Rename SD info not available define to match with spec change

13 years agoP2P: Stop early when processing not-persistent invitation result
Jouni Malinen [Sun, 27 Jun 2010 07:27:08 +0000 (00:27 -0700)]
P2P: Stop early when processing not-persistent invitation result

13 years agoP2P: Fix Group ID in Invitation Request from active GO
Jouni Malinen [Sun, 27 Jun 2010 07:13:14 +0000 (00:13 -0700)]
P2P: Fix Group ID in Invitation Request from active GO

Need to get P2P Device Address, not the Interface Address.

13 years agoP2P: Add command for pre-authorizing an invitation to an active group
Jouni Malinen [Sun, 27 Jun 2010 07:11:42 +0000 (00:11 -0700)]
P2P: Add command for pre-authorizing an invitation to an active group

This is mainly designed for testing and allows p2p_connect join auth
to be used to accept a specific invitation to an active group that
may be received in the future.

13 years agoP2P: Set Device Password ID in WPS M1/M2 per new rules
Jouni Malinen [Sun, 27 Jun 2010 05:49:41 +0000 (22:49 -0700)]
P2P: Set Device Password ID in WPS M1/M2 per new rules

If the P2P client (WPS Enrollee) uses a PIN from the GO (Registrar),
Device Password ID in M1 & M2 is set to Registrar-specified.

13 years agoP2P: Run a scan before provision discovery in p2p_connect join
Jouni Malinen [Sat, 26 Jun 2010 23:20:57 +0000 (16:20 -0700)]
P2P: Run a scan before provision discovery in p2p_connect join

This is needed to make sure we have fresh BSS information for the GO.

13 years agoP2P: Implement power save configuration
Jouni Malinen [Thu, 24 Jun 2010 06:04:21 +0000 (23:04 -0700)]
P2P: Implement power save configuration

wpa_cli p2p_set ps <0/1/2>
wpa_cli p2p_set oppps <0/1>
wpa_cli p2p_set ctwindow <0..> msec

13 years agoP2P: Handle p2p_scan tracking in SEARCH state
Jouni Malinen [Thu, 24 Jun 2010 05:37:27 +0000 (22:37 -0700)]
P2P: Handle p2p_scan tracking in SEARCH state

Previously, only the initial p2p_scan was used to delay starting new
P2P operations. However, this should have applied to the SEARCH state
scans, too.

13 years agoP2P: Do not schedule new remain-on-channel if waiting for drv event
Jouni Malinen [Thu, 24 Jun 2010 04:51:38 +0000 (21:51 -0700)]
P2P: Do not schedule new remain-on-channel if waiting for drv event

The driver event for remain-on-channel may be delayed in a way that
allows management-frame-received event to be received before
wpa_supplicant knows that the driver is actually already on the
previously requested channel. We should not request a new
remain-on-channel to send a response to just a frame if we are waiting
for the driver to get to the same channel. Instead, just continue
waiting for the driver event.

13 years agoP2P: Fix infinite loop on interface selection for Action frame TX
Jouni Malinen [Wed, 23 Jun 2010 03:08:14 +0000 (20:08 -0700)]
P2P: Fix infinite loop on interface selection for Action frame TX

When the first wpa_supplicant interface is not the correct one for
transmitting an Action frame (e.g., P2P Presence Request frame
uses a group interface), the code got stuck in an infinite busy
loop. Fix the iteration to go through the interfaces properly.

13 years agoP2P: Add preliminary P2P Manager AP support for hostapd
Jouni Malinen [Sun, 18 Jul 2010 21:30:26 +0000 (14:30 -0700)]
P2P: Add preliminary P2P Manager AP support for hostapd

13 years agoP2P: wpa_qui-qt4: Add P2P functionality into the GUI
Jouni Malinen [Sun, 18 Jul 2010 21:30:26 +0000 (14:30 -0700)]
P2P: wpa_qui-qt4: Add P2P functionality into the GUI

13 years agoP2P: Document new control interface commands and events
Jouni Malinen [Sun, 18 Jul 2010 21:30:26 +0000 (14:30 -0700)]
P2P: Document new control interface commands and events

13 years agoP2P: wpa_cli action calls for P2P group started/removed events
Jouni Malinen [Sun, 18 Jul 2010 21:30:26 +0000 (14:30 -0700)]
P2P: wpa_cli action calls for P2P group started/removed events

13 years agowpa_cli: Add P2P commands
Jouni Malinen [Sun, 18 Jul 2010 21:30:26 +0000 (14:30 -0700)]
wpa_cli: Add P2P commands

13 years agoP2P: Add disassociation/deauthentication IE notifications
Jouni Malinen [Sun, 18 Jul 2010 21:30:25 +0000 (14:30 -0700)]
P2P: Add disassociation/deauthentication IE notifications

13 years agoP2P: Add group notification from (re)association request
Jouni Malinen [Sun, 18 Jul 2010 21:30:25 +0000 (14:30 -0700)]
P2P: Add group notification from (re)association request

13 years agoP2P: Map driver events to P2P event notifications
Jouni Malinen [Sun, 18 Jul 2010 21:30:25 +0000 (14:30 -0700)]
P2P: Map driver events to P2P event notifications

13 years agoP2P: Show P2P info in ctrl_iface scan results
Jouni Malinen [Sun, 18 Jul 2010 21:30:25 +0000 (14:30 -0700)]
P2P: Show P2P info in ctrl_iface scan results

13 years agoP2P: Show P2P Device Address in wpa_cli status
Jouni Malinen [Sun, 18 Jul 2010 21:30:25 +0000 (14:30 -0700)]
P2P: Show P2P Device Address in wpa_cli status

13 years agoP2P: Add control interface commands for P2P
Jouni Malinen [Sun, 18 Jul 2010 21:30:25 +0000 (14:30 -0700)]
P2P: Add control interface commands for P2P

13 years agoP2P: Optimize scan timeouts for group formation
Jouni Malinen [Sun, 18 Jul 2010 21:30:25 +0000 (14:30 -0700)]
P2P: Optimize scan timeouts for group formation

13 years agoP2P: Add P2P IE into (Re)Association Request frames
Jouni Malinen [Sun, 18 Jul 2010 21:30:25 +0000 (14:30 -0700)]
P2P: Add P2P IE into (Re)Association Request frames

13 years agoP2P: Add P2P IE into Probe Request frames
Jouni Malinen [Sun, 18 Jul 2010 21:30:25 +0000 (14:30 -0700)]
P2P: Add P2P IE into Probe Request frames

13 years agoP2P: Use PSK format in WPS Credential
Jouni Malinen [Sun, 18 Jul 2010 21:30:25 +0000 (14:30 -0700)]
P2P: Use PSK format in WPS Credential

13 years agoP2P: Let the driver wrapper know if association is for P2P group
Jouni Malinen [Sun, 18 Jul 2010 21:30:25 +0000 (14:30 -0700)]
P2P: Let the driver wrapper know if association is for P2P group

13 years agoP2P: Add group notifications
Jouni Malinen [Sun, 18 Jul 2010 21:30:25 +0000 (14:30 -0700)]
P2P: Add group notifications

13 years agoP2P: Add P2P configuration and callbacks in hostapd code
Jouni Malinen [Sun, 18 Jul 2010 21:30:25 +0000 (14:30 -0700)]
P2P: Add P2P configuration and callbacks in hostapd code

13 years agoP2P: Add initial version of P2P Module
Jouni Malinen [Sun, 18 Jul 2010 21:30:25 +0000 (14:30 -0700)]
P2P: Add initial version of P2P Module

13 years agoP2P: Preparations for adding P2P IE into Beacon/Probe Response frames
Jouni Malinen [Sun, 18 Jul 2010 21:30:25 +0000 (14:30 -0700)]
P2P: Preparations for adding P2P IE into Beacon/Probe Response frames

13 years agoP2P: Save a copy of P2P IE(s) data from (Re)Association Request
Jouni Malinen [Sun, 18 Jul 2010 21:30:25 +0000 (14:30 -0700)]
P2P: Save a copy of P2P IE(s) data from (Re)Association Request

13 years agoP2P: Do not register l2_packet on dedicated P2P device interface
Jouni Malinen [Sun, 18 Jul 2010 21:30:25 +0000 (14:30 -0700)]
P2P: Do not register l2_packet on dedicated P2P device interface

13 years agoP2P: Add TODO note for Group Formation bit use in AP selection
Jouni Malinen [Sun, 18 Jul 2010 21:30:25 +0000 (14:30 -0700)]
P2P: Add TODO note for Group Formation bit use in AP selection

13 years agoP2P: Remove 802.11b rates from wpa_supplicant AP mode operations
Jouni Malinen [Sun, 18 Jul 2010 21:30:25 +0000 (14:30 -0700)]
P2P: Remove 802.11b rates from wpa_supplicant AP mode operations

TODO: do this only for P2P group interface

13 years agoP2P: Use config block with disabled==2 to store persistent groups
Jouni Malinen [Sun, 18 Jul 2010 21:30:25 +0000 (14:30 -0700)]
P2P: Use config block with disabled==2 to store persistent groups

13 years agonl80211: Add P2P operations
Jouni Malinen [Sun, 18 Jul 2010 21:30:25 +0000 (14:30 -0700)]
nl80211: Add P2P operations

13 years agodriver_test: Add functionality for allowing P2P testing
Jouni Malinen [Sun, 18 Jul 2010 21:30:24 +0000 (14:30 -0700)]
driver_test: Add functionality for allowing P2P testing

13 years agoP2P: Add driver operations for P2P use
Jouni Malinen [Sun, 18 Jul 2010 21:30:24 +0000 (14:30 -0700)]
P2P: Add driver operations for P2P use

13 years agoP2P: Do not save temporary networks
Jouni Malinen [Sun, 18 Jul 2010 21:30:24 +0000 (14:30 -0700)]
P2P: Do not save temporary networks

13 years agoP2P: Do not filter BSSes based on SSID during P2P Provisioning
Jouni Malinen [Sun, 18 Jul 2010 21:30:24 +0000 (14:30 -0700)]
P2P: Do not filter BSSes based on SSID during P2P Provisioning

TODO: Use group id from GO Neg instead(?)

13 years agoP2P: Let WPS code know if it is used in a P2P group
Jouni Malinen [Sun, 18 Jul 2010 21:30:24 +0000 (14:30 -0700)]
P2P: Let WPS code know if it is used in a P2P group

13 years agoP2P: Add global configuration parameters for P2P
Jouni Malinen [Sun, 18 Jul 2010 21:30:24 +0000 (14:30 -0700)]
P2P: Add global configuration parameters for P2P

13 years agoP2P: Add dynamic network config block parameters for P2P
Jouni Malinen [Sun, 18 Jul 2010 21:30:24 +0000 (14:30 -0700)]
P2P: Add dynamic network config block parameters for P2P

13 years agoP2P: Do no process Probe Request with P2P wildcard SSID in WPS
Jouni Malinen [Sun, 18 Jul 2010 21:30:24 +0000 (14:30 -0700)]
P2P: Do no process Probe Request with P2P wildcard SSID in WPS

The Probe Request frames used in P2P Device Discovery should not be
processed by the WPS implementation.

13 years agoP2P: Enable use of WPS Requested Device Type without WPS 2.0
Jouni Malinen [Sun, 18 Jul 2010 21:30:24 +0000 (14:30 -0700)]
P2P: Enable use of WPS Requested Device Type without WPS 2.0

13 years agoP2P: Add Device Name into WPS IE in Probe Request frames
Jouni Malinen [Sun, 18 Jul 2010 21:30:24 +0000 (14:30 -0700)]
P2P: Add Device Name into WPS IE in Probe Request frames

13 years agoMake IEEE 802.11 IE parser aware of P2P IE
Jouni Malinen [Sun, 18 Jul 2010 21:30:24 +0000 (14:30 -0700)]
Make IEEE 802.11 IE parser aware of P2P IE

This does not handle fragmented IEs and is only used to check quickly
whether the IE blob includes any P2P IE(s).

13 years agoP2P: Wi-Fi Direct frame format definitions
Jouni Malinen [Sun, 18 Jul 2010 21:30:24 +0000 (14:30 -0700)]
P2P: Wi-Fi Direct frame format definitions

13 years agoAllow ctrl_iface SET command to change global config parameters
Jouni Malinen [Sun, 18 Jul 2010 21:30:24 +0000 (14:30 -0700)]
Allow ctrl_iface SET command to change global config parameters

13 years agoAdd flag indicating which global configuration parameters have changed
Jouni Malinen [Sun, 18 Jul 2010 21:30:24 +0000 (14:30 -0700)]
Add flag indicating which global configuration parameters have changed

13 years agoMove global configuration parser into config.c
Jouni Malinen [Sun, 18 Jul 2010 21:30:24 +0000 (14:30 -0700)]
Move global configuration parser into config.c

This makes it easier to provide support for dynamic updates of the
global configuration parameters while wpa_supplicant is running.

13 years agoWPS 2.0: Convert new attributes into WFA vendor extension
Jouni Malinen [Thu, 29 Jul 2010 17:23:20 +0000 (10:23 -0700)]
WPS 2.0: Convert new attributes into WFA vendor extension

The WSC 2.0 specification moved to use another design for the new
attributes to avoid backwards compatibility issues with some
deployed implementations.

13 years agoWPS 2.0: Fix strict mode validation of UPnP MAC Address format
Jouni Malinen [Thu, 22 Jul 2010 20:29:52 +0000 (13:29 -0700)]
WPS 2.0: Fix strict mode validation of UPnP MAC Address format

This was supposed to only reject the message from WPS 2.0 ER, not from
WPS 1.0 ER.

13 years agoWPS: Make fragment size configurable for EAP-WSC peer
Jouni Malinen [Thu, 22 Jul 2010 17:24:23 +0000 (10:24 -0700)]
WPS: Make fragment size configurable for EAP-WSC peer

"wpa_cli set wps_fragment_size <val>" can now be used to configure the
fragment size limit for EAP-WSC.

13 years agoWPS: Add more debug prints for authorized MACs operations
Jouni Malinen [Thu, 22 Jul 2010 16:37:22 +0000 (09:37 -0700)]
WPS: Add more debug prints for authorized MACs operations

13 years agoWPS ER: Use PBC overlap detection
Jouni Malinen [Thu, 22 Jul 2010 02:19:53 +0000 (19:19 -0700)]
WPS ER: Use PBC overlap detection

ER should follow same rules as internal Registrar in an AP for
session overlap detection.

13 years agoWPS 2.0: Only reject Probe Request frames from WPS 2.0 devices
Jouni Malinen [Thu, 22 Jul 2010 02:13:31 +0000 (19:13 -0700)]
WPS 2.0: Only reject Probe Request frames from WPS 2.0 devices

13 years agoWPS 2.0: By default, use strict validation reject only with WPS 2.0
Jouni Malinen [Wed, 21 Jul 2010 05:18:17 +0000 (22:18 -0700)]
WPS 2.0: By default, use strict validation reject only with WPS 2.0

13 years agoWPS: Fix CONFIG_WPS_STRICT build option
Jouni Malinen [Wed, 21 Jul 2010 05:15:06 +0000 (22:15 -0700)]
WPS: Fix CONFIG_WPS_STRICT build option

This was not supposed to be depending on CONFIG_WPS_NFC.

13 years agoWPS: Fix strict validation to mandate Network Index attribute
Jouni Malinen [Wed, 21 Jul 2010 05:14:00 +0000 (22:14 -0700)]
WPS: Fix strict validation to mandate Network Index attribute

While this attribute is is now deprecated, it is still required
for backwards compatibility. Better check this if strict validation
is enabled.

13 years agoWPS 2.0: Use strict validation of NewWLANEventMAC only with WPS 2.0
Jouni Malinen [Wed, 21 Jul 2010 05:07:52 +0000 (22:07 -0700)]
WPS 2.0: Use strict validation of NewWLANEventMAC only with WPS 2.0

This avoids some testing issues with WPS 1.0 implementations while
maintaining strict validation for WPS 2.0 implementations.

13 years agoWPS ER: Do not use SetSelectedRegistrar when learning/configuring AP
Jouni Malinen [Wed, 21 Jul 2010 05:06:28 +0000 (22:06 -0700)]
WPS ER: Do not use SetSelectedRegistrar when learning/configuring AP

13 years agoWPS 2.0: Make sure PHY/VIRT flag gets set for PBC
Jouni Malinen [Mon, 19 Jul 2010 05:53:15 +0000 (22:53 -0700)]
WPS 2.0: Make sure PHY/VIRT flag gets set for PBC

13 years agoWPS 2.0: Add strict validation of SetSelectedRegistrar attributes
Jouni Malinen [Mon, 19 Jul 2010 01:54:58 +0000 (18:54 -0700)]
WPS 2.0: Add strict validation of SetSelectedRegistrar attributes

13 years agoWPS 2.0: Add wildcard AuthorizedMACs if Enrollee address is not known
Jouni Malinen [Sun, 18 Jul 2010 01:12:00 +0000 (18:12 -0700)]
WPS 2.0: Add wildcard AuthorizedMACs if Enrollee address is not known

13 years agoWPS 2.0: Make WSC 2.0 support to be build option (CONFIG_WPS2)
Jouni Malinen [Fri, 18 Jun 2010 01:35:18 +0000 (18:35 -0700)]
WPS 2.0: Make WSC 2.0 support to be build option (CONFIG_WPS2)

For now, the default build will only include WSC 1.0 support.
CONFIG_WPS2=y can be used to add support for WSC 2.0.

13 years agoWPS 2.0: Add tool for testing protocol extensibility
Jouni Malinen [Fri, 11 Jun 2010 05:25:51 +0000 (22:25 -0700)]
WPS 2.0: Add tool for testing protocol extensibility

This is disabled by default and can be enabled by defining
CONFIG_WPS_EXTENSIBILITY_TESTING.

13 years agoWPS: Add a test mechanism for adding an extra credential into M8
Jouni Malinen [Fri, 4 Jun 2010 06:34:34 +0000 (23:34 -0700)]
WPS: Add a test mechanism for adding an extra credential into M8

This can be used to build a test version of ER that adds an extra
Credential attribute into M8.

13 years agoWPS 2.0: Validate WPS attributes in management frames and WSC messages
Jouni Malinen [Wed, 26 May 2010 14:16:14 +0000 (17:16 +0300)]
WPS 2.0: Validate WPS attributes in management frames and WSC messages

If CONFIG_WPS_STRICT is set, validate WPS IE(s) in management frames and
reject the frames if any of the mandatory attributes is missing or if an
included attribute uses an invalid value. In addition, verify that all
mandatory attributes are included and have valid values in the WSC
messages.

13 years agoatheros: Use larger buffer for WSC IE changes
Jouni Malinen [Fri, 4 Jun 2010 06:35:34 +0000 (23:35 -0700)]
atheros: Use larger buffer for WSC IE changes

This resolves issues in updating Beacon/Probe Response frame IEs
in a case where the value may be long enough to get fragmented
into multiple IEs.

13 years agoWPS 2.0: Ignore WEP Credentials as station Enrollee
Jouni Malinen [Sat, 29 May 2010 19:19:33 +0000 (22:19 +0300)]
WPS 2.0: Ignore WEP Credentials as station Enrollee

Ignore Credential if it is for a WEP network. Reject the message if
no valid Credential is found.

13 years agoWPS 2.0: Enforce new security policy of received AP Settings
Jouni Malinen [Sat, 29 May 2010 09:41:15 +0000 (12:41 +0300)]
WPS 2.0: Enforce new security policy of received AP Settings

When receiving new AP Settings from ER, reject WEP configuration
and upgrade WPA-Personal/TKIP only to mixed mode (i.e., add
WPA2-Personal/CCMP).

13 years agoWPS 2.0: Fix Probe Request WPS IE building to be able to fragment data
Jouni Malinen [Wed, 26 May 2010 16:11:55 +0000 (19:11 +0300)]
WPS 2.0: Fix Probe Request WPS IE building to be able to fragment data

If all the device information attributes use their maximum lengths,
a single WPS IE is not enough to fit in all the data and as such,
we must be able to fragment the data. In addition, the wpabuf needs
to be allocated larger to fit in maximum data.

13 years agoWPS 2.0: Disable WPS workarounds if CONFIG_WPS_STRICT is defined
Jouni Malinen [Wed, 26 May 2010 08:16:54 +0000 (11:16 +0300)]
WPS 2.0: Disable WPS workarounds if CONFIG_WPS_STRICT is defined

13 years agoWPS 2.0: Modify empty-string workaround to meet 2.0 rules
Jouni Malinen [Wed, 26 May 2010 06:46:48 +0000 (09:46 +0300)]
WPS 2.0: Modify empty-string workaround to meet 2.0 rules

Instead of using 0x00 as the extra character, use space (' ') to
avoid failing tests that verify that the variable length string
attributes are not null terminated. In addition, this workaround
can now be disabled by defining CONFIG_WPS_STRICT for the build.
This can be done by adding following line to .config:
CFLAGS += -DCONFIG_WPS_STRICT

However, it should be noted that such a build may not interoperate
with some deployed WPS 1.0 -based implementations and as such, is
mainly designed for testing.

13 years agoWPS 2.0: Add virtual/physical display and pushbutton config methods
Jouni Malinen [Tue, 22 Dec 2009 23:21:12 +0000 (01:21 +0200)]
WPS 2.0: Add virtual/physical display and pushbutton config methods

13 years agoWPS 2.0: Add device attributes into Probe Request
Jouni Malinen [Tue, 22 Dec 2009 23:10:25 +0000 (01:10 +0200)]
WPS 2.0: Add device attributes into Probe Request

Add Manufacturer, Model Name, Model Number, and Device Name attributes
into the WSC IE in the Probe Request frames.

13 years agoWPS 2.0: Add Request to Enroll attribute into Probe Request
Jouni Malinen [Tue, 22 Dec 2009 23:03:15 +0000 (01:03 +0200)]
WPS 2.0: Add Request to Enroll attribute into Probe Request

Whenever wpa_supplication is using Request Type Enrollee, it is trying
to enroll into a network. Indicate this with the explicit inclusion of
Request to Enroll attribute with value TRUE.

13 years agoWPS 2.0: Add support for AuthorizedMACs attribute
Jouni Malinen [Sat, 12 Dec 2009 14:40:10 +0000 (16:40 +0200)]
WPS 2.0: Add support for AuthorizedMACs attribute

Advertize list of authorized enrollee MAC addresses in Beacon and
Probe Response frames and use these when selecting the AP. In order
to provide the list, the enrollee MAC address should be specified
whenever adding a new PIN. In addition, add UUID-R into
SetSelectedRegistrar action to make it potentially easier for an AP
to figure out which ER sent the action should there be multiple ERs
using the same IP address.

13 years agoWPS 2.0: Add new attributes and update version negotiation
Jouni Malinen [Fri, 11 Dec 2009 16:00:10 +0000 (18:00 +0200)]
WPS 2.0: Add new attributes and update version negotiation

This adds definitions and parsing of the new attributes that were added
in WPS 2.0. In addition, the version negotiation is updated to use the
new mechanism, i.e., accept everything received and use the new Version2
attribute in transmitted messages.

13 years agobgscan learn: Fix build
Jouni Malinen [Thu, 9 Sep 2010 12:59:06 +0000 (05:59 -0700)]
bgscan learn: Fix build

Commit 9ff80a10e8009c0dc65a4b7e08dcf1655cd2a483 forgot to include the
new scan variable in the coded copied from bgscan_simple.c. Add that
here to fix the build.

13 years agoIndicate Barker Preamble Mode in ERP IE also based on local configuration
Jouni Malinen [Sun, 5 Sep 2010 10:11:42 +0000 (13:11 +0300)]
Indicate Barker Preamble Mode in ERP IE also based on local configuration

While this is not strictly speaking required based on dynamic
configuration (i.e., dot11ShortPreambleOptionImplemented is static
value based on implementation, not runtime configuration), it is better
to follow local configuration parameter for short preamble in addition
to the associated station capabilities.

13 years agoatheros: Fix driver deinit function to be run
Jouni Malinen [Sun, 5 Sep 2010 10:04:03 +0000 (13:04 +0300)]
atheros: Fix driver deinit function to be run

hostapd uses hapd_deinit(), not deinit() wpa_driver_ops.

13 years agoatheros: Deinit l2_packet sock_xmit on error path
Jouni Malinen [Sun, 5 Sep 2010 10:03:26 +0000 (13:03 +0300)]
atheros: Deinit l2_packet sock_xmit on error path

13 years agoFix segfault in hostapd_eid_ht_capabilities() with some drivers
Jouni Malinen [Sun, 5 Sep 2010 09:47:16 +0000 (12:47 +0300)]
Fix segfault in hostapd_eid_ht_capabilities() with some drivers

This function is not really needed in case of drivers that build the
HT IEs internally. However, since this can get called if ieee80211n=1
is set in hostapd.conf, we better not segfault even if the driver
does not provide hw info (hapd->iface->current_mode == NULL).

13 years agoFix hostapd build with CONFIG_IEEE80211N but without NEED_AP_MLME
Jouni Malinen [Sun, 5 Sep 2010 09:41:15 +0000 (12:41 +0300)]
Fix hostapd build with CONFIG_IEEE80211N but without NEED_AP_MLME

13 years agoWPS: Fix hostapd build without CONFIG_WPS_UPNP
Jouni Malinen [Sun, 5 Sep 2010 09:34:04 +0000 (12:34 +0300)]
WPS: Fix hostapd build without CONFIG_WPS_UPNP

Commit 5a1cc30f1a04eb19d315680928927651024e172e added code that was
assuming CONFIG_WPS_UPNP is enabled whenever CONFIG_WPS is. Fix this
by making the UPnP calls conditional on CONFIG_WPS_UPNP define.

13 years agodbus: Verify WPA/RSN IE parser result before returning data
Jouni Malinen [Sat, 4 Sep 2010 19:01:29 +0000 (22:01 +0300)]
dbus: Verify WPA/RSN IE parser result before returning data

13 years agowpa_supplicant AP: Make sure deauth/disassoc event is valid
Jouni Malinen [Sat, 4 Sep 2010 18:50:12 +0000 (21:50 +0300)]
wpa_supplicant AP: Make sure deauth/disassoc event is valid

Verify that the driver wrapper is using a valid deauth/disassoc
event before dereferencing the addr pointer. The address is required
to be set in AP mode, but it is safer to verify this here than to
trust on all driver wrappers doing the correct thing.

13 years agoWPS: Use more defensive design to avoid theoretical NULL deref
Jouni Malinen [Sat, 4 Sep 2010 18:37:36 +0000 (21:37 +0300)]
WPS: Use more defensive design to avoid theoretical NULL deref

Prior to commit 6195adda9b4306cda2b06b930c59c95832d026a9 the sm->user
dereference did not exist here. While this is in practice non-NULL,
better use more defensive construction here to avoid NULL pointer
dereference should this ever change.

13 years agowpa_gui-qt4: Update copyright years to include 2010
Jouni Malinen [Sat, 4 Sep 2010 14:39:33 +0000 (17:39 +0300)]
wpa_gui-qt4: Update copyright years to include 2010

13 years agoUpdate WinPcap to the latest stable version 4.1.2
Jouni Malinen [Sat, 4 Sep 2010 14:37:57 +0000 (17:37 +0300)]
Update WinPcap to the latest stable version 4.1.2