diff options
Diffstat (limited to 'net/bluetooth')
-rw-r--r-- | net/bluetooth/smp.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/net/bluetooth/smp.c b/net/bluetooth/smp.c index b8ecc7bd3e3b..9accb4739488 100644 --- a/net/bluetooth/smp.c +++ b/net/bluetooth/smp.c | |||
@@ -1533,10 +1533,12 @@ static void smp_resume_cb(struct l2cap_chan *chan) | |||
1533 | if (!smp) | 1533 | if (!smp) |
1534 | return; | 1534 | return; |
1535 | 1535 | ||
1536 | if (!test_bit(HCI_CONN_ENCRYPT, &hcon->flags)) | ||
1537 | return; | ||
1538 | |||
1536 | cancel_delayed_work(&smp->security_timer); | 1539 | cancel_delayed_work(&smp->security_timer); |
1537 | 1540 | ||
1538 | if (test_bit(HCI_CONN_ENCRYPT, &hcon->flags)) | 1541 | queue_work(hdev->workqueue, &smp->distribute_work); |
1539 | queue_work(hdev->workqueue, &smp->distribute_work); | ||
1540 | } | 1542 | } |
1541 | 1543 | ||
1542 | static void smp_ready_cb(struct l2cap_chan *chan) | 1544 | static void smp_ready_cb(struct l2cap_chan *chan) |