Return-Path: From: Grzegorz Kolodziejczyk To: linux-bluetooth@vger.kernel.org Subject: [PATCH BlueZ v3 1/4] tools/hcitool: Change connection handle condition for lecup Date: Thu, 26 Apr 2018 14:31:57 +0200 Message-Id: <20180426123200.3916-1-grzegorz.kolodziejczyk@codecoup.pl> Sender: linux-bluetooth-owner@vger.kernel.org List-ID: According to BLUETOOTH SPECIFICATION Version 5.0 | Vol 2, Part E 7.8.18 LE Connection Update Command, connection handle range is 0x0000-0x0EFF. --- tools/hcitool.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/hcitool.c b/tools/hcitool.c index 02c4ebe1b..945f675b0 100644 --- a/tools/hcitool.c +++ b/tools/hcitool.c @@ -3351,7 +3351,7 @@ static void cmd_lecup(int dev_id, int argc, char **argv) timeout = strtoul(argv[4], NULL, 0); } - if (handle == 0) { + if (handle > 0x0EFF) { printf("%s", lecup_help); return; } -- 2.13.6