diff options
author | Jouni Malinen <j@w1.fi> | 2010-01-01 23:04:27 +0200 |
---|---|---|
committer | Jouni Malinen <j@w1.fi> | 2010-01-01 23:04:27 +0200 |
commit | 2fd13f1baeac375bf14015ac9d685892ea0fbad4 (patch) | |
tree | 91b5fad01e662991a3302d2eaf70e2ea522977ce /wpa_supplicant/examples | |
parent | 1701996209e87edb51495390eb123193e42740db (diff) | |
download | external_wpa_supplicant_8_ti-2fd13f1baeac375bf14015ac9d685892ea0fbad4.zip external_wpa_supplicant_8_ti-2fd13f1baeac375bf14015ac9d685892ea0fbad4.tar.gz external_wpa_supplicant_8_ti-2fd13f1baeac375bf14015ac9d685892ea0fbad4.tar.bz2 |
dbus: Set ProcessCredentials to get WPS Credential signal
Diffstat (limited to 'wpa_supplicant/examples')
-rwxr-xr-x | wpa_supplicant/examples/wpas-dbus-new-wps.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/wpa_supplicant/examples/wpas-dbus-new-wps.py b/wpa_supplicant/examples/wpas-dbus-new-wps.py index 870b1c5..607a22b 100755 --- a/wpa_supplicant/examples/wpas-dbus-new-wps.py +++ b/wpa_supplicant/examples/wpas-dbus-new-wps.py @@ -65,9 +65,10 @@ def main(): ifname = sys.argv[1] path = wpas.GetInterface(ifname) - global if_obj if_obj = bus.get_object(WPAS_DBUS_SERVICE, path) - global iface + if_obj.Set(WPAS_DBUS_WPS_INTERFACE, 'ProcessCredentials', + dbus.Boolean(1), + dbus_interface=dbus.PROPERTIES_IFACE) wps = dbus.Interface(if_obj, WPAS_DBUS_WPS_INTERFACE) wps.Start({'Role': 'enrollee', 'Type': 'pbc'}) |