summaryrefslogtreecommitdiffstats
path: root/serial/manager.c
diff options
context:
space:
mode:
authorClaudio Takahasi <claudio.takahasi@openbossa.org>2007-05-17 19:47:07 +0000
committerClaudio Takahasi <claudio.takahasi@openbossa.org>2007-05-17 19:47:07 +0000
commitb779724baafa371f98d0429b973d432d83a2510d (patch)
tree7da7d7d5810a429a447be4959263bfb425d2fef6 /serial/manager.c
parent2fbfb83dae49fb9de541869986bc719e06b6cf12 (diff)
serial: enabled RFCOMM_HANGUP_NOW bit when releasing the node
Diffstat (limited to 'serial/manager.c')
-rw-r--r--serial/manager.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/serial/manager.c b/serial/manager.c
index c6c35131..73485382 100644
--- a/serial/manager.c
+++ b/serial/manager.c
@@ -145,14 +145,12 @@ int rfcomm_release(int16_t id)
memset(&req, 0, sizeof(req));
req.dev_id = id;
-#if 0
/*
* We are hitting a kernel bug inside RFCOMM code when
* RFCOMM_HANGUP_NOW bit is set on request's flags passed to
* ioctl(RFCOMMRELEASEDEV)!
*/
req.flags = (1 << RFCOMM_HANGUP_NOW);
-#endif
if (ioctl(rfcomm_ctl, RFCOMMRELEASEDEV, &req) < 0) {
int err = errno;