From 3e389055008e0354e18d26b978d1428f2dcca793 Mon Sep 17 00:00:00 2001 From: kush agrawal Date: Wed, 6 Mar 2019 18:39:08 +0530 Subject: [PATCH] Returning less than MTU from CALEClientGetMtuSize We are not able to send data of MTU size over BLE in TV due to there is a bug in TV's BT framework. There is need of this change untill the bug gets fixed in BT framework. NOTE: Revert this patch once the fix is fixed in BT framework. https://github.sec.samsung.net/RS7-IOTIVITY/IoTivity/pull/442 (cherry picked from 0e9a64055414364fb3c92a513692b78b67844d4e) Change-Id: I4390c7083493e2f9b76d30d8b7d3d1b66b5a4c5e Signed-off-by: kush agrawal Signed-off-by: Abhishek Sansanwal --- resource/csdk/connectivity/src/bt_le_adapter/tizen/caleclient.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/resource/csdk/connectivity/src/bt_le_adapter/tizen/caleclient.c b/resource/csdk/connectivity/src/bt_le_adapter/tizen/caleclient.c index 91bfa18..b89616e 100644 --- a/resource/csdk/connectivity/src/bt_le_adapter/tizen/caleclient.c +++ b/resource/csdk/connectivity/src/bt_le_adapter/tizen/caleclient.c @@ -1588,7 +1588,8 @@ uint16_t CALEClientGetMtuSize(const char* remote_address) if (serverInfo->status == LE_STATUS_SERVICES_DISCOVERED){ OIC_LOG_V(DEBUG, TAG, "Mtu Size [%d]", serverInfo->mtu_size); oc_mutex_unlock(g_LEServerListMutex); - return serverInfo->mtu_size; + OIC_LOG_V(INFO, TAG, "Returning Mtu Size [%d]", serverInfo->mtu_size - CA_BLE_MTU_HEADER_SIZE); + return serverInfo->mtu_size - CA_BLE_MTU_HEADER_SIZE; } } oc_mutex_unlock(g_LEServerListMutex); -- 2.7.4