diff options
author | Ulisses Furquim <ulissesf@gmail.com> | 2006-09-29 20:43:17 +0000 |
---|---|---|
committer | Ulisses Furquim <ulissesf@gmail.com> | 2006-09-29 20:43:17 +0000 |
commit | 798b85093cf77ed29272504ab0ce481a1eaa36fa (patch) | |
tree | 0d790e6335be2110670ffa5a4c69105145688056 | |
parent | 25a54727617df3aa30aa52c4a1de662c3f012f74 (diff) |
Do not use RFCOMM_HANGUP_NOW because it kills our system (kernel bug)
-rw-r--r-- | hcid/dbus-rfcomm.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/hcid/dbus-rfcomm.c b/hcid/dbus-rfcomm.c index c49fd1f0..225175f0 100644 --- a/hcid/dbus-rfcomm.c +++ b/hcid/dbus-rfcomm.c @@ -201,7 +201,15 @@ static int rfcomm_release(struct rfcomm_node *node, int *err) memset(&req, 0, sizeof(req)); req.dev_id = node->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) { if (err) |