libeap.git
13 years agoCopy WPS strings into AP configuration when using wpa_supplicant AP
Jouni Malinen [Fri, 30 Jul 2010 00:25:54 +0000 (17:25 -0700)]
Copy WPS strings into AP configuration when using wpa_supplicant AP

13 years agoTrigger WPS configuration update on string changes
Jouni Malinen [Fri, 30 Jul 2010 00:13:11 +0000 (17:13 -0700)]
Trigger WPS configuration update on string changes

Previously, only Device Name string was handled, but similar trigger
is needed on Manufacturer, Model Name, Model Number, and Serial Number
changes.

13 years agoP2P: Avoid segfault on AP deinit after failed AP start
Jouni Malinen [Thu, 29 Jul 2010 23:41:14 +0000 (16:41 -0700)]
P2P: Avoid segfault on AP deinit after failed AP start

13 years agoP2P: Fix code order to avoid potential NULL pointer dereference
Jouni Malinen [Thu, 29 Jul 2010 23:20:02 +0000 (16:20 -0700)]
P2P: Fix code order to avoid potential NULL pointer dereference

13 years agoP2P: Fix P2P IE generation for AssocReq when BSS info is not available
Jouni Malinen [Thu, 29 Jul 2010 23:09:38 +0000 (16:09 -0700)]
P2P: Fix P2P IE generation for AssocReq when BSS info is not available

This code could segfault on NULL pointer dereference at least when
ap_scan=2 is used.

13 years agoP2P: Allow driver wrapper to indicate how many stations are supported
Jouni Malinen [Thu, 29 Jul 2010 22:32:33 +0000 (15:32 -0700)]
P2P: Allow driver wrapper to indicate how many stations are supported

This can be used to limit the number of clients allowed to connect
to the group on the GO.

13 years agoFix AP mode wps_pin command to return the entered PIN
Jouni Malinen [Thu, 29 Jul 2010 00:56:37 +0000 (17:56 -0700)]
Fix AP mode wps_pin command to return the entered PIN

This command is supposed to return the PIN value that was generated
or passed in as an argument. In the AP case, the entered PIN was not
being returned.

13 years agoP2P: Add mechanism for configuring UAPSD parameters for group
Jouni Malinen [Wed, 28 Jul 2010 17:18:52 +0000 (10:18 -0700)]
P2P: Add mechanism for configuring UAPSD parameters for group

This is needed to be able to change parameters for dynamically
created interfaces between the creation of the interface and
association/start AP commands.

Following ctrl_interface commands can now be used:

P2P_SET client_apsd disable
- disable configuration (i.e., use driver default) in client mode

P2P_SET client_apsd <BE>,<BK>,<VI>,<VO>;<max SP Length>
- enable UASPD with specific trigger configuration (0/1) per AC
  (max SP Length is currently ignored)

P2P_SET go_apsd disable
- disable configuration (i.e., use driver default) in AP mode

P2P_SET go_apsd <0/1>
- disable/enable APSD in AP mode

13 years agoP2P: Fix build after WSC 2.0 change to use WFA vendor extension
Jouni Malinen [Thu, 29 Jul 2010 17:51:49 +0000 (10:51 -0700)]
P2P: Fix build after WSC 2.0 change to use WFA vendor extension

13 years agoWPS: Fix ER PBC overlap detection build with P2P changes
Jouni Malinen [Thu, 29 Jul 2010 17:44:11 +0000 (10:44 -0700)]
WPS: Fix ER PBC overlap detection build with P2P changes

13 years agoP2P: Fix GAS fragmentation to match with IEEE 802.11u
Jouni Malinen [Tue, 27 Jul 2010 01:54:29 +0000 (18:54 -0700)]
P2P: Fix GAS fragmentation to match with IEEE 802.11u

P2P specification v1.15 fixed the description of the GAS fragmentation
to not duplicate NQP Query Response Field header in all fragments. This
change makes the fragmentation match with the description in IEEE
802.11u. The change is not backwards compatible with previous P2P
specification versions as far as fragmented SD responses are concerned.

13 years agoP2P: Add Device Password ID to GO Neg Request RX event
Jouni Malinen [Mon, 26 Jul 2010 22:31:19 +0000 (15:31 -0700)]
P2P: Add Device Password ID to GO Neg Request RX event

This event indicates the Device Password ID that the peer tried
to use in GO Negotiation. For example:
P2P-GO-NEG-REQUEST 02:40:61:c2:f3:b7 dev_passwd_id=4

13 years agoP2P: Fix p2p_connect join with interface address
Jouni Malinen [Sat, 10 Jul 2010 20:07:08 +0000 (13:07 -0700)]
P2P: Fix p2p_connect join with interface address

Need to fetch P2P Device Address from the peers table in case the
p2p_connect join command uses interface address.

13 years agoP2P: Add support for cross connection
Jouni Malinen [Sat, 10 Jul 2010 17:19:34 +0000 (10:19 -0700)]
P2P: Add support for cross connection

If enabled, cross connection allows GO to forward IPv4 packets
using masquerading NAT from the P2P clients in the group to an
uplink WLAN connection. This is disabled by default and can be
enabled with "wpa_cli p2p_set cross_connect 1" on the P2P device
interface.

13 years agoP2P: Add defined values for P2P Manageability Bitmap
Jouni Malinen [Sat, 10 Jul 2010 15:59:19 +0000 (08:59 -0700)]
P2P: Add defined values for P2P Manageability Bitmap

13 years agoP2P: Fix device discoverability to not wait before sending GO Neg Req
Jouni Malinen [Sat, 10 Jul 2010 00:23:11 +0000 (17:23 -0700)]
P2P: Fix device discoverability to not wait before sending GO Neg Req

When we receive Device Discoverability Response, we need to initiate
new GO Negotiation as quickly as possible to avoid the target client
from going back to sleep. Make sure we do not end up in
P2P_CONNECT_LISTEN state (short Listen mode) in this case.

13 years agoP2P: Disable periodic NoA when non-P2P STA is connected
Jouni Malinen [Fri, 9 Jul 2010 00:14:24 +0000 (17:14 -0700)]
P2P: Disable periodic NoA when non-P2P STA is connected

For now, this applies to the test command that can be used to set
periodic NoA (p2p_set noa). The value are stored and periodic NoA
is enabled whenever there are no non-P2P STAs connected to the GO.

13 years agoP2P: Include P2P IE in (Re)AssocReq to infra AP if it uses P2P IE
Jouni Malinen [Wed, 7 Jul 2010 04:37:20 +0000 (21:37 -0700)]
P2P: Include P2P IE in (Re)AssocReq to infra AP if it uses P2P IE

While this is not strictly speaking required by the P2P specification
for a not-P2P Managed Device, this can provide useful information for
the P2P manager AP and may be needed to pass certification tests.

13 years agoP2P: Include Extended Listen Timing attribute in (Re)AssocReq
Jouni Malinen [Wed, 7 Jul 2010 04:36:08 +0000 (21:36 -0700)]
P2P: Include Extended Listen Timing attribute in (Re)AssocReq

If extended listen timing is enabled, it should be advertised in
(Re)Association Request frames sent to GOs.

13 years agoP2P: Add forgotten allow_cross_connection example
Jouni Malinen [Wed, 7 Jul 2010 03:44:47 +0000 (20:44 -0700)]
P2P: Add forgotten allow_cross_connection example

13 years agoTrigger scan on reload-config only if there are enabled networks
Jouni Malinen [Wed, 7 Jul 2010 03:37:52 +0000 (20:37 -0700)]
Trigger scan on reload-config only if there are enabled networks

13 years agoP2P: Wait on operating channel between invitation requests
Jouni Malinen [Wed, 7 Jul 2010 03:22:31 +0000 (20:22 -0700)]
P2P: Wait on operating channel between invitation requests

If running in active GO mode to invite a device to join the group,
wait on operating channel instead of listen channel.

13 years agoP2P: Fix invitation to active group to use correct operating channel
Jouni Malinen [Wed, 7 Jul 2010 03:07:46 +0000 (20:07 -0700)]
P2P: Fix invitation to active group to use correct operating channel

Invitation Request must use the current operating frequency of the
group, not the default operating channel.

13 years agoWPS: Fix configuration strings on config reload
Jouni Malinen [Tue, 6 Jul 2010 23:32:55 +0000 (16:32 -0700)]
WPS: Fix configuration strings on config reload

Previously, freed memory could be used as device name (and other similar
parameters) when building WPS IE after SIGHUP.

13 years agoP2P: Use 'Enrollee info' WPS request type in P2P scans
Jouni Malinen [Tue, 6 Jul 2010 23:32:14 +0000 (16:32 -0700)]
P2P: Use 'Enrollee info' WPS request type in P2P scans

This avoids setting explicit Request-to-Enrollee request when
WPS 2.0 is used.

13 years agoP2P: Fix WSC IE not to include two Device Name attrs with WPS 2.0 is used
Jouni Malinen [Tue, 6 Jul 2010 23:31:46 +0000 (16:31 -0700)]
P2P: Fix WSC IE not to include two Device Name attrs with WPS 2.0 is used

13 years agoP2P: Fix channel forcing for p2p_connect auth
Jouni Malinen [Fri, 2 Jul 2010 15:27:00 +0000 (08:27 -0700)]
P2P: Fix channel forcing for p2p_connect auth

13 years agoP2P: Use 0-timeout when inviting to running group as client
Jouni Malinen [Fri, 2 Jul 2010 06:39:34 +0000 (23:39 -0700)]
P2P: Use 0-timeout when inviting to running group as client

13 years agoP2P: Allow pre-authorization of invitation to apply to src addr
Jouni Malinen [Fri, 2 Jul 2010 05:57:03 +0000 (22:57 -0700)]
P2P: Allow pre-authorization of invitation to apply to src addr

For client-invites-device case, the pre-authorization of an invitation
to running group will need to allow Invitation Request from specified
address, too. This is for testing uses only.

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