Fix for 64bit emulator 24/103924/1 accepted/tizen_3.0.m2_mobile accepted/tizen_3.0.m2_wearable tizen_3.0.m2 accepted/tizen/3.0.m2/mobile/20170104.100234 accepted/tizen/3.0.m2/wearable/20170104.101003 accepted/tizen/3.0/common/20161212.060636 accepted/tizen/3.0/mobile/20161212.024124 accepted/tizen/3.0/wearable/20161212.024154 submit/tizen_3.0.m2/20170104.093748 submit/tizen_3.0/20161211.074715
authorJihoon Jung <jh8801.jung@samsung.com>
Sun, 11 Dec 2016 06:01:06 +0000 (15:01 +0900)
committerJihoon Jung <jh8801.jung@samsung.com>
Sun, 11 Dec 2016 06:11:50 +0000 (15:11 +0900)
Signed-off-by: Jihoon Jung <jh8801.jung@samsung.com>
Change-Id: I2a589599d83e3d1a78a602e60f824829a687be05

src/oem/oem_emul.c [changed mode: 0644->0755]

old mode 100644 (file)
new mode 100755 (executable)
index 69bd0e9..e7a223e
@@ -216,7 +216,7 @@ static net_nfc_target_handle_s * current_working_handle = NULL;
 static bool                    g_stack_init_successful = 0;
 static bool                    g_tag_attached = 0;
 static bool                    g_p2p_attached = 0;
-
+static int                     current_connection_id = 1;
 /* for llcp functionality */
 
 socket_info_s socket_info_array[LLCP_NB_SOCKET_MAX] = {{0,}};
@@ -1349,6 +1349,8 @@ static void _net_nfc_target_discovered_cb(emulMsg_s *emul_msg)
                return;
        }
 
+       target_detected->handle->connection_id = current_connection_id++;
+
        if(target_detected->devType == NET_NFC_NFCIP1_TARGET ){
                DEBUG_MSG("set llcp connection  type. remote device is target");
                handle->connection_type = NET_NFC_P2P_CONNECTION_TARGET;