Bluetooth: L2CAP: Cleanup l2cap_br_conn_req()
Removes the code responsible for reset channel object internals. These internals will be reset automatically on chan 'destroy' ops as a result of disconnection that taking place in this case. Change-Id: I7bb3aaf225797a7c4b17ed2b578f6825114307c9 Signed-off-by: Arkadiusz Lichwa <arkadiusz.lichwa@tieto.com>
This commit is contained in:
parent
941104a66f
commit
b7b65ef4d0
@ -892,8 +892,6 @@ done:
|
||||
|
||||
/* Disconnect link when security rules were violated */
|
||||
if (result == BT_L2CAP_BR_ERR_SEC_BLOCK) {
|
||||
l2cap_br_state_set(chan, BT_L2CAP_DISCONNECTED);
|
||||
atomic_clear(BR_CHAN(chan)->flags);
|
||||
bt_conn_disconnect(conn, BT_HCI_ERR_AUTHENTICATION_FAIL);
|
||||
return;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user