diff options
Diffstat (limited to 'net/bluetooth/mgmt.c')
-rw-r--r-- | net/bluetooth/mgmt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/bluetooth/mgmt.c b/net/bluetooth/mgmt.c index 5d18efcb8467..0b15b7618beb 100644 --- a/net/bluetooth/mgmt.c +++ b/net/bluetooth/mgmt.c | |||
@@ -3213,7 +3213,7 @@ static int pair_device(struct sock *sk, struct hci_dev *hdev, void *data, | |||
3213 | conn->io_capability = cp->io_cap; | 3213 | conn->io_capability = cp->io_cap; |
3214 | cmd->user_data = conn; | 3214 | cmd->user_data = conn; |
3215 | 3215 | ||
3216 | if (conn->state == BT_CONNECTED && | 3216 | if ((conn->state == BT_CONNECTED || conn->state == BT_CONFIG) && |
3217 | hci_conn_security(conn, sec_level, auth_type, true)) | 3217 | hci_conn_security(conn, sec_level, auth_type, true)) |
3218 | pairing_complete(cmd, 0); | 3218 | pairing_complete(cmd, 0); |
3219 | 3219 | ||