aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/examples
diff options
context:
space:
mode:
authorWitold Sowa <witold.sowa@gmail.com>2010-01-16 14:37:37 (GMT)
committerJouni Malinen <j@w1.fi>2010-01-16 14:37:37 (GMT)
commit7899e2f42d91336393ec464fc85b57bd9e1cf1d5 (patch)
tree8052fb48e55efc24d56f0d87b60cf27e3eaaee40 /wpa_supplicant/examples
parent8c0906542c06d862ffae10e2984330b28ed505a6 (diff)
downloadhostap-7899e2f42d91336393ec464fc85b57bd9e1cf1d5.zip
hostap-7899e2f42d91336393ec464fc85b57bd9e1cf1d5.tar.gz
hostap-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-xwpa_supplicant/examples/wpas-dbus-new.py8
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)