Metalink patches for Intel WPS code

Assaf Harel AssafH at mtlk.com
Mon Nov 26 12:47:30 EST 2007


Hi,

Metalink released another patch today:
http://w1.fi/contrib/metalink/Intel_WSC_Metalink_WSC.patch 
This patch updates Intel's original WPS daemon (known as Wsccmd) that
runs on top of hostapd / wpa_supplicant.

Now it is possible to pass wifi WPS certification using the following
simple steps:
- Get hostapd / wpa_supplicant 0.4.8
- Get wsccmd from
http://www.intel.com/cd/ids/developer/asmo-na/eng/247741.htm
- Apply Intel patches to hostapd / wpa_supplicant that are also
available at
http://www.intel.com/cd/ids/developer/asmo-na/eng/247741.htm
- Apply Metalink patches that upgrades hostapd / wpa_supplicant to
version 0.4.10 (see here below for details regarding this patch).
- Apply Metalink patches that modify hostapd / wpa_supplicant to WiFi
certifiable version (see here below for details regarding this patch).
- Apply Metalink patch to Wsccmd that modify it to be WiFi certifiable
(both AP and Station).

Below are listed the changes made by Metalink to the original Intel WPS
daemon (Wsccmd): 
===================================================================
- Added new module that implements AP Proxy functionality. The module
supports one internal registrar, one external UPnP registrar and one
external EAP registrar simultaneously. The module is responsible for
recognizing the request to re-configure the AP or to add enrollee. 
- As a result of adding the new AP Proxy module, the previous
uncompleted implementation of AP Proxy functionality was removed from
Registrar SM module.
- AP Proxy: added support of external wireless registrar; AP stays
connected to the registrar after being configured via new transport type
- EAP Registrar. 
- Added implementation of Push-button timeouts and other PBC logic that
was missing: walking timeout, monitor timeout, checking that only one
PBC peer is present, etc).
- Added "open security" support for WPS scenarios.
- On Enrollee's side, added hooks for recovering from unsuccessful
session.
- Made necessary adaptations for the embedded platform: removed fprintf,
changed data packing mechanism, handled endian issues, handled alignment
problems (for ARM5 based platforms)
- Hooks inserted to implement Web based user interface, including the
display of status messages.
- Fixed minor typos and bugs, added log messages, made necessary changes
to support the interoperability with other existing WPS devices.
 
The certified modes are:
- AP Proxy with UPnP and internal registrar (PIN and PBC)
- Wireless Enrollee (PIN and PBC)

Regards,
Inna & Assaf 

-----Original Message-----
From: hostap-bounces+assafh=mtlk.com at shmoo.com
[mailto:hostap-bounces+assafh=mtlk.com at shmoo.com] On Behalf Of Assaf
Harel
Sent: Thursday, November 22, 2007 11:06
To: hostap at shmoo.com
Cc: Inna Reznik
Subject: Metalink patches for Intel WPS code


Hi,

Under http://w1.fi/contrib/metalink/ you can find 4 patches released
today by Metalink.
These patches starting point is Intel WPS support, under hostapd 0.4.8,
and it adds some missing functionality.
Below you can see a more detailed description of what exactly you can
find there.

Regards,
Inna & Assaf

General info:
========
Intel has released so called WSC package, implementing WPS functionality
(see http://www.intel.com/cd/ids/developer/asmo-na/eng/247741.htm). 
Intel WSC depends on hostapd WPA Authenticator and Supplicant version
0.4.8 and requires changes in both, along with changes in the driver and
MAC.
In addition to the patches to these applications, the Intel package
contains stand-alone c++ application called wsccmd, responsible for the
implementation of WPS protocol. 
The software architecture of wsccmd is composed of 3 layers:
*	Transport
*	Control 
*	User Interface (UI); only rudimentary UI is provided with the
reference implementation.

The code contained in this package is used to run the Registrar, Access
Point (as Enrollee or with Registrar capabilities), and Client
(Enrollee) functionality of WPS. 
Intel Wi-Fi Simple Config (WSC) reference implementation is distributed
as a source code under a BSD license.

Metalink has adopted Intel's package, - fixed some bugs, added some
features and promoted it to a more recent versions of hostapd and
wpa_supplicant. 
After completing these tasks, Metalink's solution has been certified by
Wi-Fi.
In order to make it easier to use the offered changes, it was divided
into several patches.
These patches are now available at http://w1.fi/contrib/metalink/ Here
is a brief description of these patches.

hostapd/wpa_supplicant 4.8_4.10 patch description:
=====================================
The patch promotes the Intel's code to version 0.4.10 of hostapd and
wpa_supplicant. This allows the user to enjoy from advantages of the
latest version of hostapd and wpa_supplicant in 0.4 branch, together
with all changes needed for WSC package. Reminder: the original Intel's
patches to hostapd and supplicant can be downloaded from
http://www.intel.com/cd/ids/developer/asmo-na/eng/247741.htm.

hostapd/wpa_supplicant Intel_4.10_Metalink_4.10 patch description:
=================================================
The patch includes Metalink's additions and bug fixes:
- Implemented PBC related timeouts (Walk tike, Monitor time).
- Added AP Proxy functionality, including the ability to communicate
with EAP registrar after registration session (eap_wsc.c / .h).
Since this requires from hostapd the ability to simultaneously
communicate with registrar station and enrollee station, some minor
changes were made in eap.c and eapol_sm.c.
- Extended Wireless registrar functionality (added the ability to
communicate with AP after the configuration in order to add new
enrollees to the network).
- On wpa_supplicant side, the implementation of "passing through"
management packets from Wireless driver to WSC application was copied
from madwifi_driver.c to wext_driver.c
- Minor Fixes: solved several "packing" problems, removed irrelevant
definitions, functions and variables; in addition, it was assured that
all WSC related code is under #define EAP_WSC (for the EAP code) or
#define WSC_NEW_IE (for the WPS devices discovery code).

Note: this code will probably work with the original wsccmd application
offered at http://www.intel.com/cd/ids/developer/asmo-na/eng/247741.htm.

However, in order to enjoy from all features, it is necessary to upgrade
to Metalink's version of wsccmd application which will be released soon.



-- Disclaimer: --
This e-mail is intended solely for the person to whom it is addressed
and may contain confidential or legally privileged information. Access
to this e-mail by anyone else is unauthorized. If an addressing or
transmission error has misdirected this e-mail, please notify the author
by replying to this e-mail and destroy this e-mail and any attachments. 
E-mail may be susceptible to data corruption, interception, unauthorized
amendment, viruses and delays or the consequences thereof. If you are
not the intended recipient, be advised that you have received this email
in error and that any use, dissemination, forwarding, printing or
copying of this email is strictly prohibited.
_______________________________________________
HostAP mailing list
HostAP at shmoo.com
http://lists.shmoo.com/mailman/listinfo/hostap

-- Disclaimer: --
This e-mail is intended solely for the person to whom it is addressed and may contain confidential or legally privileged information. Access to this e-mail by anyone else is unauthorized. If an addressing or transmission error has misdirected this e-mail, please notify the author by replying to this e-mail and destroy this e-mail and any attachments. 
E-mail may be susceptible to data corruption, interception, unauthorized amendment, viruses and delays or the consequences thereof. If you are not the intended recipient, be advised that you have received this email in error and that any use, dissemination, forwarding, printing or copying of this email is strictly prohibited.



More information about the HostAP mailing list