summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNiraj Kumar Goit <niraj.g@samsung.com>2016-06-15 11:48:52 (GMT)
committerNiraj Kumar Goit <niraj.g@samsung.com>2016-06-17 10:32:28 (GMT)
commit24242e33ccec65383dbcf4f7de91af41e484ac73 (patch)
tree958248990e9ea614edc14c27c1fef7efad569334
parent9e422dc9ba4eeee4162e72f05fd18cddff6dda27 (diff)
downloadconnman-24242e33ccec65383dbcf4f7de91af41e484ac73.zip
connman-24242e33ccec65383dbcf4f7de91af41e484ac73.tar.gz
connman-24242e33ccec65383dbcf4f7de91af41e484ac73.tar.bz2
[SPIN] Update operating frequency properly.refs/changes/53/74653/4
Change-Id: If4ce1cbf1518e1fc93ced32affe98aa05209b307 Signed-off-by: Niraj Kumar Goit <niraj.g@samsung.com>
-rwxr-xr-xgsupplicant/supplicant.c4
-rwxr-xr-xsrc/service.c9
2 files changed, 12 insertions, 1 deletions
diff --git a/gsupplicant/supplicant.c b/gsupplicant/supplicant.c
index 8449fb9..d6fbf3a 100755
--- a/gsupplicant/supplicant.c
+++ b/gsupplicant/supplicant.c
@@ -2663,7 +2663,9 @@ static void signal_bss_changed(const char *path, DBusMessageIter *iter)
return;
supplicant_dbus_property_foreach(iter, bss_property, bss);
-
+#if defined TIZEN_EXT
+ network->frequency = bss->frequency;
+#endif
old_security = network->security;
bss_compute_security(bss);
diff --git a/src/service.c b/src/service.c
index 1fbcc74..2325f64 100755
--- a/src/service.c
+++ b/src/service.c
@@ -2773,6 +2773,15 @@ static void append_properties(DBusMessageIter *dict, dbus_bool_t limited,
connman_dbus_dict_append_array(dict, "Security",
DBUS_TYPE_STRING, append_security, service);
+#if defined TIZEN_EXT
+ unsigned int frequency = 0U;
+ if (service && service->network) {
+ frequency = connman_network_get_frequency(service->network);
+ connman_dbus_dict_append_basic(dict, "Frequency",
+ DBUS_TYPE_UINT16, &frequency);
+ }
+#endif
+
str = state2string(service->state);
if (str)
connman_dbus_dict_append_basic(dict, "State",