Fixed OS type mismatching problem. 18/209918/1 accepted/tizen/unified/20190719.111801 submit/tizen/20190715.014305
authorsaerome kim <saerome.kim@samsung.com>
Fri, 12 Jul 2019 08:35:02 +0000 (17:35 +0900)
committersaerome kim <saerome.kim@samsung.com>
Fri, 12 Jul 2019 09:17:12 +0000 (18:17 +0900)
Plugin devloper may intiailze OS type either UAM_OS_TYPE_UNDIFIEND or
UAM_OS_TYPE_INVAILD. but ua-manager handles only UAM_OS_TYPE_INVAILD.
This patch make ua-manager handles both UNDEFINED and INVALID cases.

Change-Id: Ib3de0e12064046252763ae289671cb029e2732f0
Signed-off-by: saerome kim <saerome.kim@samsung.com>
ua-daemon/src/ua-manager-core.c

index 32e4e65..9af6997 100755 (executable)
@@ -614,7 +614,7 @@ static void __uam_core_add_dev_to_list(
                        UAM_INFO("device->os: %d, dev_info->operating_system: %d",
                                        device->os, dev_info->operating_system);
                        /* Update device OS type */
-                       if (UAM_OS_TYPE_INVALID == device->os)
+                       if (UAM_OS_TYPE_INVALID == device->os || UAM_OS_TYPE_UNDEFINED == device->os)
                                device->os = dev_info->operating_system;
                        else
                                UAM_WARN("Strange - OS types did not match, need to check");