diff --git a/tools/btmgmt.c b/tools/btmgmt.c
index 22a2c8c..54dd0f2 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] [-d] [-e] [-l] [-m] <instance_id>");
+ "[-t timeout] [-c] [-d] [-e] [-l] [-m] [-p] <instance_id>");
}
static struct option add_adv_options[] = {
{ "discoverable", 0, 0, 'e' },
{ "limited-discov", 0, 0, 'l' },
{ "managed-flags", 0, 0, 'm' },
+ { "tx-power", 0, 0, 'p' },
{ 0, 0, 0, 0}
};
bool quit = true;
uint32_t flags = 0;
- while ((opt = getopt_long(argc, argv, "+u:d:s:t:celmh",
+ while ((opt = getopt_long(argc, argv, "+u:d:s:t:celmph",
add_adv_options, NULL)) != -1) {
switch (opt) {
case 'u':
case 'm':
flags |= MGMT_ADV_FLAG_MANAGED_FLAGS;
break;
+ case 'p':
+ flags |= MGMT_ADV_FLAG_TX_POWER;
+ break;
case 'h':
success = true;
default: