diff options
-rw-r--r-- | net/bluetooth/l2cap_core.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/net/bluetooth/l2cap_core.c b/net/bluetooth/l2cap_core.c index 2d9a2b58d2c8..ab405f0e53cb 100644 --- a/net/bluetooth/l2cap_core.c +++ b/net/bluetooth/l2cap_core.c | |||
@@ -5413,6 +5413,11 @@ static int l2cap_le_connect_req(struct l2cap_conn *conn, | |||
5413 | 5413 | ||
5414 | if (test_bit(FLAG_DEFER_SETUP, &chan->flags)) { | 5414 | if (test_bit(FLAG_DEFER_SETUP, &chan->flags)) { |
5415 | l2cap_state_change(chan, BT_CONNECT2); | 5415 | l2cap_state_change(chan, BT_CONNECT2); |
5416 | /* The following result value is actually not defined | ||
5417 | * for LE CoC but we use it to let the function know | ||
5418 | * that it should bail out after doing its cleanup | ||
5419 | * instead of sending a response. | ||
5420 | */ | ||
5416 | result = L2CAP_CR_PEND; | 5421 | result = L2CAP_CR_PEND; |
5417 | chan->ops->defer(chan); | 5422 | chan->ops->defer(chan); |
5418 | } else { | 5423 | } else { |