From: Luiz Augusto von Dentz <luiz.von.dentz@xxxxxxxxx> The sing counter should be set with the counter received not incremented by one since the check is for > the counter received may be bigger than the increment making the counters go out of sync. --- tools/btgatt-server.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/btgatt-server.c b/tools/btgatt-server.c index 09a123c..9eeea3b 100644 --- a/tools/btgatt-server.c +++ b/tools/btgatt-server.c @@ -1004,7 +1004,7 @@ static bool remote_counter(uint32_t *sign_cnt, void *user_data) if (*sign_cnt < cnt) return false; - cnt++; + cnt = *sign_cnt; return true; } -- 2.1.0 -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html