summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/detect.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/detect.c b/src/detect.c
index f2d811d4..bac075b3 100644
--- a/src/detect.c
+++ b/src/detect.c
@@ -197,6 +197,15 @@ static void detect_newlink(unsigned short type, int index,
return;
}
+ switch (devtype) {
+ case CONNMAN_DEVICE_TYPE_BLUETOOTH:
+ case CONNMAN_DEVICE_TYPE_HSO:
+ connman_device_set_policy(device, CONNMAN_DEVICE_POLICY_MANUAL);
+ break;
+ default:
+ break;
+ }
+
connman_device_set_index(device, index);
connman_device_set_interface(device, devname);