aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/examples
diff options
context:
space:
mode:
authorWitold Sowa <witold.sowa@gmail.com>2010-01-04 14:52:30 (GMT)
committerJouni Malinen <j@w1.fi>2010-01-04 14:52:30 (GMT)
commit75d328af5070217672b7dc25dbcd74fad05fb6e5 (patch)
tree3abc14484edbcf2b4dc4d77da32c1cbf44843eff /wpa_supplicant/examples
parent58e1452474b4ad09515cb7853085a0900114bb3c (diff)
downloadhostap-75d328af5070217672b7dc25dbcd74fad05fb6e5.zip
hostap-75d328af5070217672b7dc25dbcd74fad05fb6e5.tar.gz
hostap-75d328af5070217672b7dc25dbcd74fad05fb6e5.tar.bz2
dbus: Change BSS property MaxRate to Rates
Instead of exposing maximum BSS bit rate, expose sorted array of all supported rates.
Diffstat (limited to 'wpa_supplicant/examples')
-rwxr-xr-xwpa_supplicant/examples/wpas-dbus-new.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/wpa_supplicant/examples/wpas-dbus-new.py b/wpa_supplicant/examples/wpas-dbus-new.py
index b9714bd..11d6e49 100755
--- a/wpa_supplicant/examples/wpas-dbus-new.py
+++ b/wpa_supplicant/examples/wpas-dbus-new.py
@@ -66,9 +66,12 @@ def showBss(bss):
dbus_interface=dbus.PROPERTIES_IFACE)
signal = net_obj.Get(WPAS_DBUS_BSS_INTERFACE, 'Signal',
dbus_interface=dbus.PROPERTIES_IFACE)
- val = net_obj.Get(WPAS_DBUS_BSS_INTERFACE, 'MaxRate',
+ val = net_obj.Get(WPAS_DBUS_BSS_INTERFACE, 'Rates',
dbus_interface=dbus.PROPERTIES_IFACE)
- maxrate = val / 1000000
+ if len(val) > 0:
+ maxrate = val[0] / 1000000
+ else:
+ maxrate = 0
print " %s :: ssid='%s' wpa=%s wpa2=%s signal=%d rate=%d freq=%d" % (bssid, ssid, wpa, wpa2, signal, maxrate, freq)