[Test patch] Returning less than MTU from CALEClientGetMtuSize 80/196180/1
authorAmit KS <amit.s12@samsung.com>
Mon, 24 Dec 2018 11:56:42 +0000 (17:26 +0530)
committerAmit KS <amit.s12@samsung.com>
Mon, 24 Dec 2018 11:56:42 +0000 (17:26 +0530)
 Needs to be reverted once BT fix is available
 Length fixed at 507 instead of 512

Change-Id: I042be50855a2fbe79a99cb84171614cb04347aee
Signed-off-by: Amit KS <amit.s12@samsung.com>
resource/csdk/connectivity/src/bt_le_adapter/tizen/caleclient_vd.c

index 4d75206..5fd6ad6 100644 (file)
@@ -1627,9 +1627,11 @@ uint16_t CALEClientGetMtuSize(const char* remote_address)
     if (CA_STATUS_OK == CAGetLEServerInfo(g_LEServerList, remote_address, &serverInfo))
     {
         if (serverInfo->status == LE_STATUS_SERVICES_DISCOVERED){
-            OIC_LOG_V(DEBUG, TAG, "Mtu Size [%d]", serverInfo->mtu_size);
+            //OIC_LOG_V(DEBUG, TAG, "Mtu Size [%d]", serverInfo->mtu_size);
+            OIC_LOG_V(INFO, TAG, "Test: returning Mtu Size [%d]", serverInfo->mtu_size - CA_BLE_MTU_HEADER_SIZE);
             oc_mutex_unlock(g_LEServerListMutex);
-            return serverInfo->mtu_size;
+            //return serverInfo->mtu_size;
+            return serverInfo->mtu_size - CA_BLE_MTU_HEADER_SIZE;
         }
     }
     oc_mutex_unlock(g_LEServerListMutex);