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