diff options
author | Nick Pelly <npelly@google.com> | 2009-07-09 12:23:44 -0700 |
---|---|---|
committer | Nick Pelly <npelly@google.com> | 2009-08-11 15:17:18 -0700 |
commit | 9fb1a03c17e971cec9996e70d76d430a46238684 (patch) | |
tree | 94858b825fac6f51bf7b47e91b25855f7a36acc5 /net | |
parent | d57cc7864aed1ccd13b57340d215bfc1d527713f (diff) |
Bluetooth: Do not attempt to send dlci disconnect when in BT_CONFIG.
This fixes a bug where shutdown() and close() on a rfcomm socket during ACL
connection would not cause HCI Create Connection Cancel.
Signed-off-by: Nick Pelly <npelly@google.com>
Diffstat (limited to 'net')
-rw-r--r-- | net/bluetooth/rfcomm/core.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/net/bluetooth/rfcomm/core.c b/net/bluetooth/rfcomm/core.c index 1d0fb0f23c63..c109a3a225c6 100644 --- a/net/bluetooth/rfcomm/core.c +++ b/net/bluetooth/rfcomm/core.c @@ -428,7 +428,6 @@ static int __rfcomm_dlc_close(struct rfcomm_dlc *d, int err) switch (d->state) { case BT_CONNECT: - case BT_CONFIG: if (test_and_clear_bit(RFCOMM_DEFER_SETUP, &d->flags)) { set_bit(RFCOMM_AUTH_REJECT, &d->flags); rfcomm_schedule(RFCOMM_SCHED_AUTH); |