diff options
author | Witold Sowa <witold.sowa@gmail.com> | 2010-01-16 16:37:37 +0200 |
---|---|---|
committer | Jouni Malinen <j@w1.fi> | 2010-01-16 16:37:37 +0200 |
commit | 7899e2f42d91336393ec464fc85b57bd9e1cf1d5 (patch) | |
tree | 8052fb48e55efc24d56f0d87b60cf27e3eaaee40 /wpa_supplicant/examples | |
parent | 8c0906542c06d862ffae10e2984330b28ed505a6 (diff) | |
download | external_wpa_supplicant_8_ti-7899e2f42d91336393ec464fc85b57bd9e1cf1d5.zip external_wpa_supplicant_8_ti-7899e2f42d91336393ec464fc85b57bd9e1cf1d5.tar.gz external_wpa_supplicant_8_ti-7899e2f42d91336393ec464fc85b57bd9e1cf1d5.tar.bz2 |
dbus: Change WPA/RSNIE byte array props to dicts
Expose RSN and WPA properties for BSS objects containing information
about key management and cipher suites. Get rid of WPA/RSN/WPSIE
byte array properties and add IEs byte array property with all IE data
instead.
Diffstat (limited to 'wpa_supplicant/examples')
-rwxr-xr-x | wpa_supplicant/examples/wpas-dbus-new.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/wpa_supplicant/examples/wpas-dbus-new.py b/wpa_supplicant/examples/wpas-dbus-new.py index bff6b39..25072ce 100755 --- a/wpa_supplicant/examples/wpas-dbus-new.py +++ b/wpa_supplicant/examples/wpas-dbus-new.py @@ -52,15 +52,15 @@ def showBss(bss): dbus_interface=dbus.PROPERTIES_IFACE) ssid = byte_array_to_string(val) - val = net_obj.Get(WPAS_DBUS_BSS_INTERFACE, 'WPAIE', + val = net_obj.Get(WPAS_DBUS_BSS_INTERFACE, 'WPA', dbus_interface=dbus.PROPERTIES_IFACE) wpa = "no" - if val != None: + if len(val["KeyMgmt"]) > 0: wpa = "yes" - val = net_obj.Get(WPAS_DBUS_BSS_INTERFACE, 'RSNIE', + val = net_obj.Get(WPAS_DBUS_BSS_INTERFACE, 'RSN', dbus_interface=dbus.PROPERTIES_IFACE) wpa2 = "no" - if val != None: + if len(val["KeyMgmt"]) > 0: wpa2 = "yes" freq = net_obj.Get(WPAS_DBUS_BSS_INTERFACE, 'Frequency', dbus_interface=dbus.PROPERTIES_IFACE) |