summaryrefslogtreecommitdiffstats
path: root/hcid/dbus-rfcomm.c
diff options
context:
space:
mode:
authorUlisses Furquim <ulissesf@gmail.com>2006-09-11 22:06:48 +0000
committerUlisses Furquim <ulissesf@gmail.com>2006-09-11 22:06:48 +0000
commit2a41e064b828a3fefb4ace9102d1a1d7dca308aa (patch)
tree84e7f498d7fa82493c0955a579e8d5c2a4454462 /hcid/dbus-rfcomm.c
parent0a20362ae8b260ff6820bfcac88c6ca4e1608ddc (diff)
Make rfcomm_release() close the underlying connection
Diffstat (limited to 'hcid/dbus-rfcomm.c')
-rw-r--r--hcid/dbus-rfcomm.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/hcid/dbus-rfcomm.c b/hcid/dbus-rfcomm.c
index bf5c2fbf..2324489c 100644
--- a/hcid/dbus-rfcomm.c
+++ b/hcid/dbus-rfcomm.c
@@ -181,6 +181,7 @@ static int rfcomm_release(struct rfcomm_node *node, int *err)
memset(&req, 0, sizeof(req));
req.dev_id = node->id;
+ req.flags = (1 << RFCOMM_HANGUP_NOW);
if (ioctl(rfcomm_ctl, RFCOMMRELEASEDEV, &req) < 0) {
if (err)