diff options
-rw-r--r-- | net/bluetooth/l2cap_core.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/net/bluetooth/l2cap_core.c b/net/bluetooth/l2cap_core.c index ebff14c69078..4fbf67eda239 100644 --- a/net/bluetooth/l2cap_core.c +++ b/net/bluetooth/l2cap_core.c | |||
@@ -2323,8 +2323,7 @@ static inline int l2cap_config_req(struct l2cap_conn *conn, struct l2cap_cmd_hdr | |||
2323 | 2323 | ||
2324 | sk = chan->sk; | 2324 | sk = chan->sk; |
2325 | 2325 | ||
2326 | if ((bt_sk(sk)->defer_setup && sk->sk_state != BT_CONNECT2) || | 2326 | if (sk->sk_state != BT_CONFIG && sk->sk_state != BT_CONNECT2) { |
2327 | (!bt_sk(sk)->defer_setup && sk->sk_state != BT_CONFIG)) { | ||
2328 | struct l2cap_cmd_rej rej; | 2327 | struct l2cap_cmd_rej rej; |
2329 | 2328 | ||
2330 | rej.reason = cpu_to_le16(0x0002); | 2329 | rej.reason = cpu_to_le16(0x0002); |