From 8246c9b6086d525ca83a05da5c8ed370662a69e1 Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Tue, 18 Nov 2003 14:31:29 +0000 Subject: Update iac command and add entry to the manpage --- tools/hciconfig.8 | 6 ++++++ tools/hciconfig.c | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) 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 } }; -- cgit