From: Grzegorz Kolodziejczyk Date: Thu, 26 Apr 2018 12:31:57 +0000 (+0200) Subject: tools/hcitool: Change connection handle condition for lecup X-Git-Tag: accepted/tizen/unified/20190522.085452~1^2~11 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F71%2F205071%2F1;p=platform%2Fupstream%2Fbluez.git tools/hcitool: Change connection handle condition for lecup 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 --- diff --git a/tools/hcitool.c b/tools/hcitool.c index 0b6f499..9e63f4c 100755 --- a/tools/hcitool.c +++ b/tools/hcitool.c @@ -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; }