projects
/
platform
/
upstream
/
connman.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c5d973c
)
Set manual policy for Bluetooth and HSO devices as default
author
Marcel Holtmann
<marcel@holtmann.org>
Sun, 28 Dec 2008 01:22:14 +0000
(
02:22
+0100)
committer
Marcel Holtmann
<marcel@holtmann.org>
Sun, 28 Dec 2008 01:22:14 +0000
(
02:22
+0100)
src/detect.c
patch
|
blob
|
history
diff --git
a/src/detect.c
b/src/detect.c
index
f2d811d
..
bac075b
100644
(file)
--- 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);