From: jihwan.seo Date: Wed, 30 Nov 2016 01:55:54 +0000 (+0900) Subject: disable BLE send logic related multicast X-Git-Tag: 1.3.0~1049^2~30 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=94bbbdeb2c235f00a9f855653a745fa8236c3621;p=platform%2Fupstream%2Fiotivity.git disable BLE send logic related multicast since BLE has limited policy which can't be connected with 8 times device, there are many issue related pending thread in multicast scenario. and there is no spec related multicast in BLE spec. Thru, multicast will be not supported until get specific comment from BLE spec. ps. tizen ble will be disabled when tizen 3.0 ble is updated Change-Id: Id278f17299fa9b128bb73718257cf2b0e5e90ea9 Signed-off-by: jihwan.seo Reviewed-on: https://gerrit.iotivity.org/gerrit/14937 Reviewed-by: Larry Sachs Tested-by: jenkins-iotivity Reviewed-by: Dan Mihai Reviewed-by: Abhishek Sharma Reviewed-by: Jaehong Jo Reviewed-by: Ashok Babu Channa --- diff --git a/resource/csdk/connectivity/src/bt_le_adapter/caleadapter.c b/resource/csdk/connectivity/src/bt_le_adapter/caleadapter.c index a7a66ec..27fe2ec 100644 --- a/resource/csdk/connectivity/src/bt_le_adapter/caleadapter.c +++ b/resource/csdk/connectivity/src/bt_le_adapter/caleadapter.c @@ -1392,6 +1392,9 @@ static void CALEServerSendDataThread(void *threadData) else { OIC_LOG(DEBUG, CALEADAPTER_TAG, "Server Sending Multicast data"); +#if defined(__TIZEN__) + // @todo + // tizen ble should also disabled when Tizen 3.0 is updated. result = CAUpdateCharacteristicsToAllGattClients(dataSegment, length); if (CA_STATUS_OK != result) { @@ -1485,6 +1488,9 @@ static void CALEServerSendDataThread(void *threadData) OIC_LOG_V(DEBUG, CALEADAPTER_TAG, "Server Sent data length [%zu]", remainingLen + CA_BLE_HEADER_SIZE); } +#else + OIC_LOG(DEBUG, CALEADAPTER_TAG, "BLE Multicast is not supported"); +#endif } OIC_LOG(DEBUG, CALEADAPTER_TAG, "OUT - CALEServerSendDataThread"); @@ -1715,6 +1721,9 @@ static void CALEClientSendDataThread(void *threadData) } else { +#if defined(__TIZEN__) + // @todo + // tizen ble should also disabled when Tizen 3.0 is updated. //Sending Mulitcast Data // Send the first segment with the header. OIC_LOG(DEBUG, CALEADAPTER_TAG, "Sending Multicast Data"); @@ -1811,6 +1820,9 @@ static void CALEClientSendDataThread(void *threadData) OIC_LOG_V(DEBUG, CALEADAPTER_TAG, "Client Sent Data length is [%zu]", remainingLen + CA_BLE_HEADER_SIZE); } +#else + OIC_LOG(DEBUG, CALEADAPTER_TAG, "BLE Multicast is not supported"); +#endif } OIC_LOG(DEBUG, CALEADAPTER_TAG, "OUT - CABLEClientSendDataThread");