diff options
Diffstat (limited to 'net/bluetooth/hci_event.c')
-rw-r--r-- | net/bluetooth/hci_event.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/net/bluetooth/hci_event.c b/net/bluetooth/hci_event.c index e6a496ae0318..3a8381ab992f 100644 --- a/net/bluetooth/hci_event.c +++ b/net/bluetooth/hci_event.c | |||
@@ -2320,8 +2320,7 @@ static void hci_auth_complete_evt(struct hci_dev *hdev, struct sk_buff *skb) | |||
2320 | conn->sec_level = conn->pending_sec_level; | 2320 | conn->sec_level = conn->pending_sec_level; |
2321 | } | 2321 | } |
2322 | } else { | 2322 | } else { |
2323 | mgmt_auth_failed(hdev, &conn->dst, conn->type, conn->dst_type, | 2323 | mgmt_auth_failed(conn, ev->status); |
2324 | ev->status); | ||
2325 | } | 2324 | } |
2326 | 2325 | ||
2327 | clear_bit(HCI_CONN_AUTH_PEND, &conn->flags); | 2326 | clear_bit(HCI_CONN_AUTH_PEND, &conn->flags); |
@@ -3900,8 +3899,7 @@ static void hci_simple_pair_complete_evt(struct hci_dev *hdev, | |||
3900 | * event gets always produced as initiator and is also mapped to | 3899 | * event gets always produced as initiator and is also mapped to |
3901 | * the mgmt_auth_failed event */ | 3900 | * the mgmt_auth_failed event */ |
3902 | if (!test_bit(HCI_CONN_AUTH_PEND, &conn->flags) && ev->status) | 3901 | if (!test_bit(HCI_CONN_AUTH_PEND, &conn->flags) && ev->status) |
3903 | mgmt_auth_failed(hdev, &conn->dst, conn->type, conn->dst_type, | 3902 | mgmt_auth_failed(conn, ev->status); |
3904 | ev->status); | ||
3905 | 3903 | ||
3906 | hci_conn_drop(conn); | 3904 | hci_conn_drop(conn); |
3907 | 3905 | ||