X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2Ftechnology.c;h=6a539dc03255c4c99ed697320e947586f6540afd;hb=688ac80683ad821a126c2f612815475bc6896fb5;hp=4255051260b34bc587debd10091f72709bb8fe53;hpb=f2074eea6e8ead5bde4d712f0707cf6a3e025fb8;p=platform%2Fupstream%2Fconnman.git diff --git a/src/technology.c b/src/technology.c index 4255051..6a539dc 100644 --- a/src/technology.c +++ b/src/technology.c @@ -2215,6 +2215,10 @@ void technology_save_device(struct connman_device *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; @@ -3220,7 +3224,7 @@ int __connman_technology_add_device(struct connman_device *device) #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"); @@ -3257,6 +3261,8 @@ done: 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); @@ -3287,6 +3293,8 @@ int __connman_technology_remove_device(struct connman_device *device) 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