dbus: Fix WPS property of fi.w1.wpa_supplicant1.BSS interface
authorFloris Bos <bos@je-eigen-domein.nl>
Sat, 11 Apr 2015 00:11:46 +0000 (02:11 +0200)
committerJouni Malinen <j@w1.fi>
Mon, 13 Apr 2015 12:08:46 +0000 (15:08 +0300)
commit8e2c5f1a2049bf2cd76f04977b52ca7f7f7ea4ec
tree889ed274e8d267893ce696b0dd5d499470097a7e
parentd447cd596f0a9f73850229e7fa2bdd35755dc750
dbus: Fix WPS property of fi.w1.wpa_supplicant1.BSS interface

The dbus interface documentation says the following about the
WPS property of the fi.w1.wpa_supplicant1.BSS interface:

==
WPS information of the BSS. Empty dictionary indicates no WPS support.
Dictionary entries are:

Type s "pbc", "pin", ""
==

However the implementation returns "type" => "" for BSSes
that do not support WPS.

Fix the implementation to match the documentation.
Return empty dictionary if there is no WPS support.
And "type" => "" if WPS is supported, but is not in progress
right now.

Signed-off-by: Floris Bos <bos@je-eigen-domein.nl>
wpa_supplicant/dbus/dbus_new_handlers.c