diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2008-12-03 01:22:10 +0100 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2008-12-03 01:22:10 +0100 |
commit | cfce6f1cea9657772f1846ab230f620ccce84aca (patch) | |
tree | e925145cf3d6f6cdca46e45fcab2a772e6ecd7f0 /plugins/wifi.c | |
parent | 53820bec61c24198f7381a27524519ca24bb699a (diff) | |
download | connman-cfce6f1cea9657772f1846ab230f620ccce84aca.tar.gz connman-cfce6f1cea9657772f1846ab230f620ccce84aca.tar.bz2 connman-cfce6f1cea9657772f1846ab230f620ccce84aca.zip |
Add signal strength and noise properties
Diffstat (limited to 'plugins/wifi.c')
-rw-r--r-- | plugins/wifi.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/plugins/wifi.c b/plugins/wifi.c index 494f53bc..0e1526e1 100644 --- a/plugins/wifi.c +++ b/plugins/wifi.c @@ -192,6 +192,7 @@ static void scan_result(struct connman_element *parent, element = find_element(data, network->identifier); if (element == NULL) { const char *security; + guint8 strength; element = connman_element_create(temp); @@ -218,6 +219,17 @@ static void scan_result(struct connman_element *parent, connman_element_add_static_property(element, "WiFi.Security", DBUS_TYPE_STRING, &security); + strength = network->quality; + + connman_element_add_static_property(element, "WiFi.Strength", + DBUS_TYPE_BYTE, &strength); + + connman_element_add_static_property(element, "WiFi.Noise", + DBUS_TYPE_INT32, &network->noise); + + DBG("%s (%s) strength %d", network->identifier, + security, strength); + connman_element_register(element, parent); } |