diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2005-01-28 17:05:35 +0000 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2005-01-28 17:05:35 +0000 |
commit | c15fb910d23b698af183312eb05f1d1038e88259 (patch) | |
tree | d424784ef27a2bdc8873652d9abb4920107ef459 /tools/hciconfig.c | |
parent | 96bbfb2039b98046fe72c88dc6f737a66ed65fde (diff) |
Don't set inquiry scan or page scan on raw devices
Diffstat (limited to 'tools/hciconfig.c')
-rw-r--r-- | tools/hciconfig.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/hciconfig.c b/tools/hciconfig.c index 1a8f35d8..d24faf73 100644 --- a/tools/hciconfig.c +++ b/tools/hciconfig.c @@ -248,6 +248,10 @@ static void cmd_up(int ctl, int hdev, char *opt) hdev, strerror(errno), errno); exit(1); } + if (ioctl(ctl, HCIGETDEVINFO, (void *) &di) < 0) + return; + if (hci_test_bit(HCI_RAW, &di.flags)) + return; cmd_scan(ctl, hdev, "piscan"); } |