mirror of
https://github.com/hardkernel/linux.git
synced 2026-04-19 03:50:43 +09:00
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>
This commit is contained in:
committed by
Arve Hjønnevåg
parent
f5353976c6
commit
8a4424765e
@@ -459,7 +459,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);
|
||||
|
||||
Reference in New Issue
Block a user