diff --git a/tools/btmgmt.c b/tools/btmgmt.c
index 4d68647..72768c3 100644
--- a/tools/btmgmt.c
+++ b/tools/btmgmt.c
static void add_adv_usage(void)
{
print("Usage: add-adv [-u uuid] [-d adv_data] [-s scan_rsp] "
- "[-t timeout] [-c] <instance_id>");
+ "[-t timeout] [-c] [-d] [-e] <instance_id>");
}
static struct option add_adv_options[] = {
{ "scan-rsp", 1, 0, 's' },
{ "timeout", 1, 0, 't' },
{ "connectable", 0, 0, 'c' },
+ { "discoverable", 0, 0, 'e' },
{ 0, 0, 0, 0}
};
bool quit = true;
uint32_t flags = 0;
- while ((opt = getopt_long(argc, argv, "+u:d:s:t:ch",
+ while ((opt = getopt_long(argc, argv, "+u:d:s:t:ceh",
add_adv_options, NULL)) != -1) {
switch (opt) {
case 'u':
case 'c':
flags |= MGMT_ADV_FLAG_CONNECTABLE;
break;
+ case 'e':
+ flags |= MGMT_ADV_FLAG_DISCOV;
+ break;
case 'h':
success = true;
default: