From 51822c15c80cd13700266abd1635101c7b1c244e Mon Sep 17 00:00:00 2001 From: Arman Uguray Date: Wed, 25 Mar 2015 20:25:30 -0700 Subject: [PATCH] tools/btmgmt: Rename add-adv --discoverable option This patch renames the --discoverable option of the add-adv command to --general-discov, which is more consistent with the --limited-discov option. --- tools/btmgmt.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/btmgmt.c b/tools/btmgmt.c index f64327bc1..19eeda1d6 100644 --- a/tools/btmgmt.c +++ b/tools/btmgmt.c @@ -3698,7 +3698,7 @@ static struct option add_adv_options[] = { { "scan-rsp", 1, 0, 's' }, { "timeout", 1, 0, 't' }, { "connectable", 0, 0, 'c' }, - { "discoverable", 0, 0, 'e' }, + { "general-discov", 0, 0, 'g' }, { "limited-discov", 0, 0, 'l' }, { "managed-flags", 0, 0, 'm' }, { "tx-power", 0, 0, 'p' }, @@ -3765,7 +3765,7 @@ static void cmd_add_adv(struct mgmt *mgmt, uint16_t index, bool quit = true; uint32_t flags = 0; - while ((opt = getopt_long(argc, argv, "+u:d:s:t:celmph", + while ((opt = getopt_long(argc, argv, "+u:d:s:t:cglmph", add_adv_options, NULL)) != -1) { switch (opt) { case 'u': @@ -3829,7 +3829,7 @@ static void cmd_add_adv(struct mgmt *mgmt, uint16_t index, case 'c': flags |= MGMT_ADV_FLAG_CONNECTABLE; break; - case 'e': + case 'g': flags |= MGMT_ADV_FLAG_DISCOV; break; case 'l': -- 2.47.3