1. Modified to save enabled device information
in settings after device_list is updated.
2. Modified to save enabled device information
in settings only for wifi technology.
Change-Id: I1b05319adcd3fa7796e764912c9369a5ac28ab7e
Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
#if defined TIZEN_EXT
device_send_changed(device->interface, type, "Powered", powered);
#if defined TIZEN_EXT
device_send_changed(device->interface, type, "Powered", powered);
- technology_save_device(device);
#endif
if (!device->powered) {
#endif
if (!device->powered) {
enum connman_service_type type;
type = __connman_device_get_service_type(device);
enum connman_service_type type;
type = __connman_device_get_service_type(device);
+
+ if (type != CONNMAN_SERVICE_TYPE_WIFI)
+ return;
+
technology = technology_get(type);
if (!technology)
return;
technology = technology_get(type);
if (!technology)
return;
#if defined TIZEN_EXT
bool found = true;
int err = 0;
#if defined TIZEN_EXT
bool found = true;
int err = 0;
- if (technology->enabled_devices) {
+ if (technology->enabled_devices && type == CONNMAN_SERVICE_TYPE_WIFI) {
int i = 0;
found = false;
const char *ifname = connman_device_get_string(device, "Interface");
int i = 0;
found = false;
const char *ifname = connman_device_get_string(device, "Interface");
device);
#if defined TIZEN_EXT
device);
#if defined TIZEN_EXT
+ technology_save_device(device);
+
const char *ifname = connman_device_get_string(device, "Interface");
__connman_technology_notify_device_detected(technology, ifname, true);
const char *ifname = connman_device_get_string(device, "Interface");
__connman_technology_notify_device_detected(technology, ifname, true);
device);
#if defined TIZEN_EXT
device);
#if defined TIZEN_EXT
+ technology_save_device(device);
+
const char *ifname = connman_device_get_string(device, "Interface");
__connman_technology_notify_device_detected(technology, ifname, false);
#endif
const char *ifname = connman_device_get_string(device, "Interface");
__connman_technology_notify_device_detected(technology, ifname, false);
#endif