From: kush agrawal Date: Wed, 6 Mar 2019 13:09:08 +0000 (+0530) Subject: Returning less than MTU from CALEClientGetMtuSize X-Git-Tag: submit/tizen/20190319.025827~4 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;ds=sidebyside;h=3e389055008e0354e18d26b978d1428f2dcca793;p=platform%2Fupstream%2Fiotivity.git 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 --- 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);