Set manual policy for Bluetooth and HSO devices as default
authorMarcel Holtmann <marcel@holtmann.org>
Sun, 28 Dec 2008 01:22:14 +0000 (02:22 +0100)
committerMarcel Holtmann <marcel@holtmann.org>
Sun, 28 Dec 2008 01:22:14 +0000 (02:22 +0100)
src/detect.c

index f2d811d..bac075b 100644 (file)
@@ -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);