diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2005-04-18 21:14:39 +0000 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2005-04-18 21:14:39 +0000 |
commit | 959b1e8c1d5ad023e1b3c8157a844c61df44a0a1 (patch) | |
tree | 3eeee7a4c3ea67db38ad5680a3716ee314c70215 /hcid/main.c | |
parent | bb30c261fcdb833bf5cac02f671822bbe443ff27 (diff) |
Add support for setting the inquiry mode
Diffstat (limited to 'hcid/main.c')
-rw-r--r-- | hcid/main.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/hcid/main.c b/hcid/main.c index c2c6381c..45b8231d 100644 --- a/hcid/main.c +++ b/hcid/main.c @@ -242,6 +242,15 @@ static void configure_device(int hdev) CHANGE_LOCAL_NAME_CP_SIZE, (void *) &cp); } + /* Set inquiry mode */ + if (di.features[3] & LMP_RSSI_INQ) { + write_inquiry_mode_cp cp; + + cp.mode = device_opts->inqmode; + hci_send_cmd(s, OGF_HOST_CTL, OCF_WRITE_INQUIRY_MODE, + WRITE_INQUIRY_MODE_CP_SIZE, (void *) &cp); + } + exit(0); } |