disable BLE send logic related multicast
authorjihwan.seo <jihwan.seo@samsung.com>
Wed, 30 Nov 2016 01:55:54 +0000 (10:55 +0900)
committerAshok Babu Channa <ashok.channa@samsung.com>
Wed, 7 Dec 2016 04:25:32 +0000 (04:25 +0000)
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 <jihwan.seo@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/14937
Reviewed-by: Larry Sachs <larry.j.sachs@intel.com>
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Dan Mihai <Daniel.Mihai@microsoft.com>
Reviewed-by: Abhishek Sharma <ce.abhishek@samsung.com>
Reviewed-by: Jaehong Jo <jaehong.jo@samsung.com>
Reviewed-by: Ashok Babu Channa <ashok.channa@samsung.com>
resource/csdk/connectivity/src/bt_le_adapter/caleadapter.c

index a7a66ec..27fe2ec 100644 (file)
@@ -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");