Fix : GATT connection event is not delivered to bt-frwk 13/162513/1
authorinjun.yang <injun.yang@samsung.com>
Mon, 13 Nov 2017 07:03:30 +0000 (16:03 +0900)
committerDoHyun Pyun <dh79.pyun@samsung.com>
Mon, 4 Dec 2017 05:18:46 +0000 (14:18 +0900)
[Model] All
[BinType] AP
[Customer] OPEN

[Issue#] N/A
[Request] Internal
[Occurrence Version] N/A

[Problem] After BLE connection established, GATT connection event
 is not delivered to bt-frwk side.
[Cause & Measure] Before emit signal, AP move to sleep status.
 Reduce timeout interval
[Checking Method] GATT connection

[Team] Basic Connection
[Developer] Injun Yang
[Solution company] Samsung
[Change Type] Specification change

Change-Id: Ic3478333845ec0994a9424d40b8cfb9fd5fe0c1d
Signed-off-by: Injun Yang <injun.yang@samsung.com>
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
src/gatt-client.c

index 35fdde9..dbceea6 100644 (file)
@@ -2026,10 +2026,10 @@ static gboolean check_all_chrcs_ready(gpointer user_data)
        /*
        * By adding below condition, forcing to call check_chrcs_ready()
        * function to check whether all char./extended properties are ready.
-       * Above function would be called max. for 50 times (Assuming more
+       * Above function would be called max. for 500 times (Assuming more
        * no of services). Emit signal only when all characteristics are ready.
        */
-       if (all_chrcs_ready == FALSE && count < 50) {
+       if (all_chrcs_ready == FALSE && count < 500) {
                count++;
                return TRUE;
        }
@@ -2084,7 +2084,7 @@ void btd_gatt_client_ready(struct btd_gatt_client *client)
        if (client->wait_charcs_id > 0)
                g_source_remove(client->wait_charcs_id);
 
-       client->wait_charcs_id = g_timeout_add(100,
+       client->wait_charcs_id = g_timeout_add(10,
                        check_all_chrcs_ready, client);
 #endif
 }