From 297f51643489307096c39d41c40373d38ab0ae94 Mon Sep 17 00:00:00 2001 From: Harish Kumara M Date: Wed, 19 Dec 2018 21:10:00 +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/379 (cherry picked from commit fe33223fcec00b149a4a69ea8cdbae8656d83a8c) Change-Id: I90044e8fd11d2f55ce02ccbb7bb8598df5072e30 Signed-off-by: Harish Kumara M Signed-off-by: Amit KS --- resource/csdk/connectivity/src/bt_le_adapter/tizen/caleclient_vd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resource/csdk/connectivity/src/bt_le_adapter/tizen/caleclient_vd.c b/resource/csdk/connectivity/src/bt_le_adapter/tizen/caleclient_vd.c index 4d75206..8bf7ebf 100644 --- a/resource/csdk/connectivity/src/bt_le_adapter/tizen/caleclient_vd.c +++ b/resource/csdk/connectivity/src/bt_le_adapter/tizen/caleclient_vd.c @@ -1629,10 +1629,10 @@ 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, "Test: 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); return CA_DEFAULT_BLE_MTU_SIZE; - } -- 2.7.4