Linux bluetooth development
 help / color / mirror / Atom feed
* [PATCH 1/2] android/gatt: Fix caching included services descriptors
@ 2014-04-14 10:39 Jakub Tyszkowski
  2014-04-14 10:39 ` [PATCH 2/2] android/gatt: Minor whitespace fixes Jakub Tyszkowski
  2014-04-16  8:26 ` [PATCH 1/2] android/gatt: Fix caching included services descriptors Szymon Janc
  0 siblings, 2 replies; 3+ messages in thread
From: Jakub Tyszkowski @ 2014-04-14 10:39 UTC (permalink / raw)
  To: linux-bluetooth; +Cc: Jakub Tyszkowski

---
 android/gatt.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/android/gatt.c b/android/gatt.c
index 004063c..f303aea 100644
--- a/android/gatt.c
+++ b/android/gatt.c
@@ -1839,7 +1839,7 @@ static bool build_descr_cache(int32_t conn_id, struct gatt_device *dev,
 
 	/* Clip range to given characteristic */
 	start = ch->ch.value_handle + 1;
-	end = srvc->prim.range.end;
+	end = srvc->primary ? srvc->prim.range.end : srvc->incl.range.end;
 
 	/* Use next characteristic start as end. If there is none -
 	 * service end is valid end.
-- 
1.9.1


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-04-16  8:26 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-04-14 10:39 [PATCH 1/2] android/gatt: Fix caching included services descriptors Jakub Tyszkowski
2014-04-14 10:39 ` [PATCH 2/2] android/gatt: Minor whitespace fixes Jakub Tyszkowski
2014-04-16  8:26 ` [PATCH 1/2] android/gatt: Fix caching included services descriptors Szymon Janc

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox