Questions about WPS

Jouni Malinen j
Fri Jan 1 13:25:07 PST 2010


On Wed, Dec 30, 2009 at 05:52:41PM +0100, Witold Sowa wrote:
> Yes, it does. With ProcessCredentials set to False, a DBus client will
> receive credentials and that's all. Basing this credentials the client
> can set network parameters, etc. With ProcessCredentials set to True,
> wpa_supplicant will additionally process and apply received credentials
> to current network or add new network if no current is selected. This
> settings can be stored then in config file if any used. In DBus-only
> (just -u cmd option) configuration ProcessCredentials determines only
> automatic applying or not applying received credentials.

Please also note that you do need to set this somehow since the default
value for the underlying configuration option in wpa_supplicant is by
default disabling credential notifications to external programs. The
D-Bus API seems to convert this to "true" which is not exactly correct
(wps_cred_processing = 0 does not have clear mapping into boolean... 1 =
false, 2 = true are clearer).

In addition, the setter function for ProcessCredentials had a bug in it
(tried to interpret the value as 32-bit integer, not boolean) that
prevented the changes from going through. With this fixed to use
DBUS_TYPE_BOOLEAN, I was able to complete WPS provisioning successfully
with the Credentials signal showing up (see
wpa_supplicant/examples/wpas-dbus-new-wps.py for an example script).

-- 
Jouni Malinen                                            PGP id EFC895FA



More information about the Hostap mailing list