int connman_device_set_powered(struct connman_device *device,
connman_bool_t powered);
+#if defined TIZEN_EXT
+/*
+ * Description: It checks significant and effective Wi-Fi profiles which can make an auto-connection.
+ * It saves power consumption not to scan if there is no valid profile to make an auto-connection.
+ */
+void connman_device_significant_wifi_profile_ref(struct connman_device *device);
+connman_bool_t connman_device_significant_wifi_profile_unref_and_test(struct connman_device *device);
+
+connman_bool_t connman_device_load_significant_wifi_profile_refcount_from_storage(struct connman_device *device);
+connman_bool_t connman_device_save_significant_wifi_profile_refcount_to_storage(struct connman_device *device);
+#endif
+
int connman_device_set_scanning(struct connman_device *device,
connman_bool_t scanning);
+connman_bool_t connman_device_get_scanning(struct connman_device *device);
void connman_device_reset_scanning(struct connman_device *device);
int connman_device_set_disconnected(struct connman_device *device,
connman_bool_t disconnected);
connman_bool_t connman_device_get_disconnected(struct connman_device *device);
-int connman_device_set_connected(struct connman_device *device,
- connman_bool_t connected);
int connman_device_set_string(struct connman_device *device,
const char *key, const char *value);
struct connman_network *connman_device_get_network(struct connman_device *device,
const char *identifier);
int connman_device_remove_network(struct connman_device *device,
- const char *identifier);
+ struct connman_network *network);
void connman_device_remove_all_networks(struct connman_device *device);
void connman_device_schedule_scan(struct connman_device *device);
int (*enable) (struct connman_device *device);
int (*disable) (struct connman_device *device);
int (*scan) (struct connman_device *device);
+ int (*scan_fast) (struct connman_device *device);
};
int connman_device_driver_register(struct connman_device_driver *driver);