diff options
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); } |