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>
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");