Skip to content

Commit b0239c8

Browse files
author
Gustavo F. Padovan
committed
Revert "Bluetooth: Don't accept ConfigReq if we aren't in the BT_CONFIG state"
This reverts commit 8cb8e6f. That commit introduced a regression with the Bluetooth Profile Tuning Suite(PTS), Reverting this make sure that L2CAP is in a qualificable state. Signed-off-by: Gustavo F. Padovan <[email protected]>
1 parent fad003b commit b0239c8

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

net/bluetooth/l2cap.c

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3089,14 +3089,8 @@ static inline int l2cap_config_req(struct l2cap_conn *conn, struct l2cap_cmd_hdr
30893089
if (!sk)
30903090
return -ENOENT;
30913091

3092-
if (sk->sk_state != BT_CONFIG) {
3093-
struct l2cap_cmd_rej rej;
3094-
3095-
rej.reason = cpu_to_le16(0x0002);
3096-
l2cap_send_cmd(conn, cmd->ident, L2CAP_COMMAND_REJ,
3097-
sizeof(rej), &rej);
3092+
if (sk->sk_state == BT_DISCONN)
30983093
goto unlock;
3099-
}
31003094

31013095
/* Reject if config buffer is too small. */
31023096
len = cmd_len - sizeof(*req);

0 commit comments

Comments
 (0)