Commit: 3c8896be642cf83aad79e9b09de3d11a309164ce
Parent: 4ca0a7861b474e4d0f7f5ba7e1bbfc496dab7132
Author: Lukasz Rymanowski <lukasz.rymanowski@tieto.com>
Committer: Szymon Janc <szymon.janc@tieto.com>
Date: 2014-10-03 11:12:10
Tree: f35d9ab25fca6228882573cb150151d2da484ef6

android/gatt: Fix handling sign counter According to BT spec 4.1, Part H, 2.4.5 Signing Algorithm, sign counter shall increment on each message however there is not specific requirement that it should increment by 1. In fact in case of lost package we would unsync with remote and would be no able to recover in other way then re-pair. This patch reject write sign commands if remote sign counter is less or equal to previous one.

Diffstat

M android/gatt.c | 10 +++++- - - - -

1 files changed, 5 insertions(+), 5 deletions(-)

View Full Diff | Patch