diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2008-12-28 02:22:14 +0100 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2008-12-28 02:22:14 +0100 |
commit | f1ccee1d9e378a3a0fe8d75afc947d5d42ce0aa1 (patch) | |
tree | 8799656fd89d6114c1c853671bca20926f00a355 /src | |
parent | c5d973cf54a9fe54ec4e82a5780144b3b1f0afb0 (diff) | |
download | connman-f1ccee1d9e378a3a0fe8d75afc947d5d42ce0aa1.tar.gz connman-f1ccee1d9e378a3a0fe8d75afc947d5d42ce0aa1.tar.bz2 connman-f1ccee1d9e378a3a0fe8d75afc947d5d42ce0aa1.zip |
Set manual policy for Bluetooth and HSO devices as default
Diffstat (limited to 'src')
-rw-r--r-- | src/detect.c | 9 |
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); |