Added handling to support TDLS feature #3
[platform/core/connectivity/net-config.git] / src / wifi-background-scan.c
index 9894809..ab18e14 100755 (executable)
@@ -92,7 +92,7 @@ static void __netconfig_wifi_scan_request_reply(GObject *source_object, GAsyncRe
        GDBusConnection *conn = NULL;
        GError *error = NULL;
 
-       conn = G_DBUS_CONNECTION (source_object);
+       conn = G_DBUS_CONNECTION(source_object);
        reply = g_dbus_connection_call_finish(conn, res, &error);
 
        if (reply == NULL) {
@@ -340,3 +340,24 @@ gboolean handle_pause_bgscan(Wifi *wifi, GDBusMethodInvocation *context)
        return TRUE;
 }
 
+gboolean handle_get_autoscan(Wifi *wifi, GDBusMethodInvocation *context)
+{
+
+       gboolean autoscan = 0;
+
+       autoscan = netconfig_wifi_is_bgscan_paused();
+
+       wifi_complete_get_autoscan(wifi, context, autoscan);
+       return TRUE;
+}
+
+gboolean handle_get_autoscanmode(Wifi *wifi, GDBusMethodInvocation *context)
+{
+       guint autoscanmode = 0;
+
+       autoscanmode = __netconfig_wifi_bgscan_get_mode();
+
+       wifi_complete_get_autoscanmode(wifi, context, autoscanmode);
+       return TRUE;
+}
+