diff options
Diffstat (limited to 'hcid/dbus-rfcomm.c')
-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) |