aboutsummaryrefslogtreecommitdiffstats
path: root/net/bluetooth/smp.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/bluetooth/smp.c')
-rw-r--r--net/bluetooth/smp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/bluetooth/smp.c b/net/bluetooth/smp.c
index 07ca4ce0943b..496584921fdc 100644
--- a/net/bluetooth/smp.c
+++ b/net/bluetooth/smp.c
@@ -829,7 +829,7 @@ static void smp_timeout(struct work_struct *work)
829 829
830 BT_DBG("conn %p", conn); 830 BT_DBG("conn %p", conn);
831 831
832 l2cap_conn_shutdown(conn, ETIMEDOUT); 832 hci_disconnect(conn->hcon, HCI_ERROR_REMOTE_USER_TERM);
833} 833}
834 834
835static struct smp_chan *smp_chan_create(struct l2cap_conn *conn) 835static struct smp_chan *smp_chan_create(struct l2cap_conn *conn)
@@ -1569,7 +1569,7 @@ static int smp_recv_cb(struct l2cap_chan *chan, struct sk_buff *skb)
1569 if (smp) 1569 if (smp)
1570 cancel_delayed_work_sync(&smp->security_timer); 1570 cancel_delayed_work_sync(&smp->security_timer);
1571 1571
1572 l2cap_conn_shutdown(chan->conn, -err); 1572 hci_disconnect(chan->conn->hcon, HCI_ERROR_AUTH_FAILURE);
1573 } 1573 }
1574 1574
1575 return err; 1575 return err;