This allow to call lecup in simple form: "hcitool lecup <handle> <min> <max> <latency> <timeout>". --- tools/hcitool.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/tools/hcitool.c b/tools/hcitool.c index cbd32f3..612e5bc 100644 --- a/tools/hcitool.c +++ b/tools/hcitool.c @@ -3308,6 +3308,7 @@ static void cmd_lecup(int dev_id, int argc, char **argv) { uint16_t handle = 0, min, max, latency, timeout; int opt, dd, base; + int options = 0; /* Aleatory valid values */ min = 0x0C8; @@ -3341,6 +3342,18 @@ static void cmd_lecup(int dev_id, int argc, char **argv) printf("%s", lecup_help); return; } + + options = 1; + } + + if (options == 0) { + helper_arg(5, 5, &argc, &argv, lecup_help); + + handle = strtoul(argv[0], NULL, 0); + min = strtoul(argv[1], NULL, 0); + max = strtoul(argv[2], NULL, 0); + latency = strtoul(argv[3], NULL, 0); + timeout = strtoul(argv[4], NULL, 0); } if (handle == 0) { -- 1.9.1 -- 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