diff options
-rw-r--r-- | include/net/bluetooth/hci_core.h | 1 | ||||
-rw-r--r-- | net/bluetooth/smp.c | 4 |
2 files changed, 1 insertions, 4 deletions
diff --git a/include/net/bluetooth/hci_core.h b/include/net/bluetooth/hci_core.h index dda7f00c07c5..ca2a99807615 100644 --- a/include/net/bluetooth/hci_core.h +++ b/include/net/bluetooth/hci_core.h | |||
@@ -409,7 +409,6 @@ struct hci_conn { | |||
409 | struct hci_dev *hdev; | 409 | struct hci_dev *hdev; |
410 | void *l2cap_data; | 410 | void *l2cap_data; |
411 | void *sco_data; | 411 | void *sco_data; |
412 | void *smp_conn; | ||
413 | struct amp_mgr *amp_mgr; | 412 | struct amp_mgr *amp_mgr; |
414 | 413 | ||
415 | struct hci_conn *link; | 414 | struct hci_conn *link; |
diff --git a/net/bluetooth/smp.c b/net/bluetooth/smp.c index 641ce8b69d2a..414c5151aa46 100644 --- a/net/bluetooth/smp.c +++ b/net/bluetooth/smp.c | |||
@@ -584,7 +584,6 @@ static struct smp_chan *smp_chan_create(struct l2cap_conn *conn) | |||
584 | 584 | ||
585 | smp->conn = conn; | 585 | smp->conn = conn; |
586 | conn->smp_chan = smp; | 586 | conn->smp_chan = smp; |
587 | conn->hcon->smp_conn = conn; | ||
588 | 587 | ||
589 | hci_conn_hold(conn->hcon); | 588 | hci_conn_hold(conn->hcon); |
590 | 589 | ||
@@ -626,13 +625,12 @@ void smp_chan_destroy(struct l2cap_conn *conn) | |||
626 | 625 | ||
627 | kfree(smp); | 626 | kfree(smp); |
628 | conn->smp_chan = NULL; | 627 | conn->smp_chan = NULL; |
629 | conn->hcon->smp_conn = NULL; | ||
630 | hci_conn_drop(conn->hcon); | 628 | hci_conn_drop(conn->hcon); |
631 | } | 629 | } |
632 | 630 | ||
633 | int smp_user_confirm_reply(struct hci_conn *hcon, u16 mgmt_op, __le32 passkey) | 631 | int smp_user_confirm_reply(struct hci_conn *hcon, u16 mgmt_op, __le32 passkey) |
634 | { | 632 | { |
635 | struct l2cap_conn *conn = hcon->smp_conn; | 633 | struct l2cap_conn *conn = hcon->l2cap_data; |
636 | struct smp_chan *smp; | 634 | struct smp_chan *smp; |
637 | u32 value; | 635 | u32 value; |
638 | 636 | ||