summaryrefslogtreecommitdiffstats
path: root/tools/hciconfig.c
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2003-11-18 14:31:29 +0000
committerMarcel Holtmann <marcel@holtmann.org>2003-11-18 14:31:29 +0000
commit8246c9b6086d525ca83a05da5c8ed370662a69e1 (patch)
tree86435616c0dc336833692a53714c8ee40fc39ea2 /tools/hciconfig.c
parent7fbea8e4421d04d23747ad4dbcc31aa2d10e0c74 (diff)
Update iac command and add entry to the manpage
Diffstat (limited to 'tools/hciconfig.c')
-rw-r--r--tools/hciconfig.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/hciconfig.c b/tools/hciconfig.c
index ee7afb75..b51fcc7e 100644
--- a/tools/hciconfig.c
+++ b/tools/hciconfig.c
@@ -356,6 +356,7 @@ void cmd_features(int ctl, int hdev, char *opt)
void cmd_name(int ctl, int hdev, char *opt)
{
int s = hci_open_dev(hdev);
+
if (s < 0) {
printf("Can't open device hci%d. %s(%d)\n", hdev, strerror(errno), errno);
exit(1);
@@ -993,6 +994,7 @@ struct {
{ "name", cmd_name, "[name]", "Get/Set local name" },
{ "class", cmd_class, "[class]", "Get/Set class of device" },
{ "voice", cmd_voice, "[voice]", "Get/Set voice setting" },
+ { "iac", cmd_iac, "[iac]", "Get/Set inquiry access code" },
{ "inqparms", cmd_inq_parms, "[win:int]", "Get/Set inquiry scan window and interval" },
{ "pageparms", cmd_page_parms, "[win:int]", "Get/Set page scan window and interval" },
{ "pageto", cmd_page_to, "[to]", "Get/Set page timeout" },
@@ -1001,7 +1003,6 @@ struct {
{ "features", cmd_features, 0, "Display device features" },
{ "version", cmd_version, 0, "Display version information" },
{ "revision", cmd_revision, 0, "Display revision information" },
- { "iac", cmd_iac, "[iac]", "Get/Set inquiry access code" },
{ NULL, NULL, 0 }
};