Commit: 5f01e9c5c1636294e6b2722ecd4569f31369c58b
Parent: c9c7d4c5e632faac37e87e0008c91c4f6e81222e
Author: Nagaraj D R <nagaraj.dr@samsung.com>
Committer: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Date: 2015-06-15 14:14:09
Tree: f3947c91e38f6e244f8a1be1e14611f99cec1811

shared/gatt-client: Fix the "Find Information req" error In a particular case where remote device has the characteristic declaration b/w 0XFFFE and 0XFFFF. i.e characteristic handle at 0XFFFE and value_handle at 0XFFFF, which implies there is no characteristic descriptors associated. Since present design search the descriptors b/w the characteristic_value declaration and characteristic end handle, In the above stated case, descriptor search handle will be initialized to 0X0000 (i.e by incrementing characteristic value handle (0xffff) ). 0X0000 handle is reserved handle, and also intention of searching descriptors will not be achieved. Consequence: Below request will be sent, ATT: Find Information req (0x04) start 0x0000, end 0xffff and below will be the proper response from the remote device ATT: Error (0x01) Error: Invalid handle (1) Find Information req (0x04) on handle 0x0000

Diffstat

M src/shared/gatt-client.c | 10 +++++++- - -

1 files changed, 7 insertions(+), 3 deletions(-)

View Full Diff | Patch