Added handling to support TDLS feature #3
[platform/core/connectivity/net-config.git] / src / wifi-background-scan.c
index 8172fdf..ab18e14 100755 (executable)
@@ -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;
+}
+