summaryrefslogtreecommitdiffstats
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
parent7fbea8e4421d04d23747ad4dbcc31aa2d10e0c74 (diff)
Update iac command and add entry to the manpage
-rw-r--r--tools/hciconfig.86
-rw-r--r--tools/hciconfig.c3
2 files changed, 8 insertions, 1 deletions
diff --git a/tools/hciconfig.8 b/tools/hciconfig.8
index 96b503ae..aac5e98a 100644
--- a/tools/hciconfig.8
+++ b/tools/hciconfig.8
@@ -115,6 +115,12 @@ prints voice setting. Otherwise, sets voice setting to
voice
is a 16-bit hex number describing the voice setting.
.TP
+.BI iac " [iac]"
+With no
+.IR iac ,
+prints the current IAC setting. Otherwise, sets the IAC to
+.IR iac .
+.TP
.BI inqparms " [win:int]"
With no
.IR win:int ,
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 }
};