From e3962d934839235f718e59f81ad8ce2ebf8dd7d1 Mon Sep 17 00:00:00 2001 From: Arman Uguray Date: Mon, 27 Oct 2014 07:35:36 -0700 Subject: [PATCH] shared/gatt-client: Fix bug in service changed queue. This patch fixes a bug where the handle range for queued service changed events weren't getting stored. This caused service discovery to be initiated for the 0x0000-0x0000 range, which caused an error response. --- src/shared/gatt-client.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/shared/gatt-client.c b/src/shared/gatt-client.c index 57d3e1f51..faae71c53 100644 --- a/src/shared/gatt-client.c +++ b/src/shared/gatt-client.c @@ -1095,6 +1095,9 @@ static void service_changed_cb(uint16_t value_handle, const uint8_t *value, if (!op) return; + op->start_handle = start; + op->end_handle = end; + queue_push_tail(client->svc_chngd_queue, op); } -- 2.47.3