diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2008-12-14 02:12:40 +0100 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2008-12-14 02:12:40 +0100 |
commit | c634b10c2613e71f2824171b9a42c1728f801c71 (patch) | |
tree | fbde8adc6f45f59ea81fb5829925b69d11981b5d /test | |
parent | 99515f9c0d4818aa99eb227657954a2d9f1d3ae3 (diff) | |
download | connman-c634b10c2613e71f2824171b9a42c1728f801c71.tar.gz connman-c634b10c2613e71f2824171b9a42c1728f801c71.tar.bz2 connman-c634b10c2613e71f2824171b9a42c1728f801c71.zip |
Add generic signal strength property
Diffstat (limited to 'test')
-rwxr-xr-x | test/list-networks | 2 | ||||
-rwxr-xr-x | test/monitor-connman | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/test/list-networks b/test/list-networks index 8f7e01bb..b4462103 100755 --- a/test/list-networks +++ b/test/list-networks @@ -42,7 +42,7 @@ for path in properties["Devices"]: if (key == "WiFi.SSID"): ssid = convert_ssid(properties[key]) print " %s = [ %s ]" % (key, ssid) - elif (key == "WiFi.Strength"): + elif (key == "Strength"): print " %s = %d" % (key, properties[key]) else: print " %s = %s" % (key, properties[key]) diff --git a/test/monitor-connman b/test/monitor-connman index 0c4a2efc..97d3a6b5 100755 --- a/test/monitor-connman +++ b/test/monitor-connman @@ -7,7 +7,7 @@ import dbus.mainloop.glib def property_changed(name, value, path, interface): iface = interface[interface.rfind(".") + 1:] - if (name == "WiFi.Strength"): + if (name == "Strength"): val = int(value) else: val = str(value) |