dbus: Change BSS property MaxRate to Rates
Instead of exposing maximum BSS bit rate, expose sorted array of all supported rates.
This commit is contained in:
parent
58e1452474
commit
75d328af50
7 changed files with 75 additions and 18 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue