summaryrefslogtreecommitdiffstats
path: root/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index 93bc6bbb..db257428 100644
--- a/src/main.c
+++ b/src/main.c
@@ -433,7 +433,8 @@ static void init_device(int dev_id)
/* Set link policy */
dr.dev_opt = main_opts.link_policy;
- if (ioctl(dd, HCISETLINKPOL, (unsigned long) &dr) < 0) {
+ if (ioctl(dd, HCISETLINKPOL, (unsigned long) &dr) < 0 &&
+ errno != ENETDOWN) {
error("Can't set link policy on hci%d: %s (%d)",
dev_id, strerror(errno), errno);
}