Diff between fb27a707427b04e1bd3c73aa3a3dce57385e89d6 and e66de31c5a6dd4611aa857063cb5e7fcc7e3a918
Changed Files
| File | Additions | Deletions | Status |
| tools/btmgmt.c | +3 | -1 | modified |
Full Patch
diff --git a/tools/btmgmt.c b/tools/btmgmt.c
index 5133227..1d71d74 100644
--- a/tools/btmgmt.c
+++ b/tools/btmgmt.c
@@ -900,7 +900,7 @@ static void cmd_discov(struct mgmt *mgmt, uint16_t index, int argc,
struct mgmt_cp_set_discoverable cp;
if (argc < 2) {
- printf("Usage: btmgmt %s <yes/no> [timeout]\n", argv[0]);
+ printf("Usage: btmgmt %s <yes/no/limited> [timeout]\n", argv[0]);
exit(EXIT_FAILURE);
}
@@ -910,6 +910,8 @@ static void cmd_discov(struct mgmt *mgmt, uint16_t index, int argc,
cp.val = 1;
else if (strcasecmp(argv[1], "off") == 0)
cp.val = 0;
+ else if (strcasecmp(argv[1], "limited") == 0)
+ cp.val = 2;
else
cp.val = atoi(argv[1]);