tools/hcitool: Change connection handle condition for lecup 71/205071/1
authorGrzegorz Kolodziejczyk <grzegorz.kolodziejczyk@codecoup.pl>
Thu, 26 Apr 2018 12:31:57 +0000 (14:31 +0200)
committerAmit Purwar <amit.purwar@samsung.com>
Mon, 29 Apr 2019 04:20:21 +0000 (09:50 +0530)
According to BLUETOOTH SPECIFICATION Version 5.0 | Vol 2, Part E
7.8.18 LE Connection Update Command, connection handle range is
0x0000-0x0EFF.

Change-Id: Icbb99c777c15057a478416b0f360e9da54d57507
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
tools/hcitool.c

index 0b6f499..9e63f4c 100755 (executable)
@@ -3411,7 +3411,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;
        }