summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNiraj Kumar Goit <niraj.g@samsung.com>2017-08-17 15:26:46 +0530
committerNiraj Kumar Goit <niraj.g@samsung.com>2017-08-18 10:21:28 +0000
commit9ac9e2bcccd2c3dcea3e9111701bb09f15db85ba (patch)
treec23347a3cb9456d807f3dfb1474d9c925339a670 /src
parentba402241bb13ef082d057024e905e797b2f6d43b (diff)
downloadconnman-9ac9e2bcccd2c3dcea3e9111701bb09f15db85ba.tar.gz
connman-9ac9e2bcccd2c3dcea3e9111701bb09f15db85ba.tar.bz2
connman-9ac9e2bcccd2c3dcea3e9111701bb09f15db85ba.zip
[connman] Enabled specific scan for Multiple APs.submit/tizen/20170822.002714submit/tizen/20170821.070104
Change-Id: I2156778ed0bcc703e8823c7eccaf344ab21503c1 Signed-off-by: Niraj Kumar Goit <niraj.g@samsung.com>
Diffstat (limited to 'src')
-rwxr-xr-xsrc/technology.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/technology.c b/src/technology.c
index fb39d34f..c1eb3ed2 100755
--- a/src/technology.c
+++ b/src/technology.c
@@ -1240,7 +1240,10 @@ static DBusMessage *specific_scan(DBusConnection *conn, DBusMessage *msg, void *
if (err < 0)
reply_scan_pending(technology, err);
- g_slist_free_full(specific_scan_list, g_free);
+ if (scan_type == 1) {
+ g_slist_free_full(specific_scan_list, g_free);
+ scan_type = 0;
+ }
return NULL;
}
@@ -1287,9 +1290,9 @@ static const GDBusMethodTable technology_methods[] = {
GDBUS_ARGS({ "name", "s" }, { "value", "v" }),
NULL, set_property) },
{ GDBUS_ASYNC_METHOD("Scan", NULL, NULL, scan) },
+#if defined TIZEN_EXT
{ GDBUS_ASYNC_METHOD("SpecificScan", GDBUS_ARGS({ "specificscan", "a{sv}" }),
NULL, specific_scan) },
-#if defined TIZEN_EXT
{ GDBUS_METHOD("GetScanState", NULL, GDBUS_ARGS({ "scan_state", "a{sv}" }),
get_scan_state) },
#endif