Fix find resource bug
authorsung.goo.kim <sung.goo.kim@samsung.com>
Wed, 13 Jan 2016 23:45:09 +0000 (08:45 +0900)
committerYoungjae Shin <yj99.shin@samsung.com>
Thu, 14 Jan 2016 22:10:58 +0000 (07:10 +0900)
Change-Id: I7df4f8c4fc146de149ef3290c87543f487785428

daemon/icd-ioty-type.c

index 08fffdf..4ec0b05 100644 (file)
@@ -31,10 +31,10 @@ OCConnectivityType icd_ioty_conn_type_to_oic_conn_type(int conn_type)
 
        switch (conn_type) {
        case IOTCON_CONNECTIVITY_IPV4:
-               oic_conn_type = CT_IP_USE_V4;
+               oic_conn_type = CT_ADAPTER_IP | CT_IP_USE_V4;
                break;
        case IOTCON_CONNECTIVITY_IPV6:
-               oic_conn_type = CT_IP_USE_V6;
+               oic_conn_type = CT_ADAPTER_IP | CT_IP_USE_V6;
                break;
        case IOTCON_CONNECTIVITY_BT_EDR:
                oic_conn_type = CT_ADAPTER_RFCOMM_BTEDR;