summaryrefslogtreecommitdiffstats
path: root/hcid/kword.c
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@nokia.com>2006-11-14 18:22:37 +0000
committerJohan Hedberg <johan.hedberg@nokia.com>2006-11-14 18:22:37 +0000
commit38a404ba5bfbf21d4607a5d048846288a2359c56 (patch)
treec2d2f7a9d8e5c5077e21ca2cd99d17129cd28201 /hcid/kword.c
parentfc03565db71241cbc0a47ae7528273d3982fb606 (diff)
Add offmode config option for defining SetMode("off") behaviour
Diffstat (limited to 'hcid/kword.c')
-rw-r--r--hcid/kword.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/hcid/kword.c b/hcid/kword.c
index e96cad20..018caa72 100644
--- a/hcid/kword.c
+++ b/hcid/kword.c
@@ -48,6 +48,7 @@ struct kword cfg_keyword[] = {
{ "autoinit", K_AUTOINIT },
{ "security", K_SECURITY },
{ "pairing", K_PAIRING },
+ { "offmode", K_OFFMODE },
{ "pkt_type", K_PTYPE },
{ "lm", K_LM },
{ "lp", K_LP },
@@ -81,6 +82,12 @@ struct kword pair_param[] = {
{ NULL , 0 }
};
+struct kword off_param[] = {
+ { "devdown", HCID_OFFMODE_DEVDOWN },
+ { "noscan", HCID_OFFMODE_NOSCAN },
+ { NULL , 0 }
+};
+
int lineno;
int find_keyword(struct kword *kw, char *str)