diff options
author | Johan Hedberg <johan.hedberg@intel.com> | 2012-02-09 09:07:29 -0500 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@intel.com> | 2012-02-13 10:01:37 -0500 |
commit | bab73cb68435232ba78a4bd1ac1a85862e3be0bb (patch) | |
tree | befa66506373f8e5d3a3cec6f48eea5d5bee892e /net/bluetooth/mgmt.c | |
parent | 88c1fe4ba55c7245ad2f3c81689f854287875121 (diff) |
Bluetooth: Add address type to mgmt_ev_auth_failed
This patch updates the Authentication Failed mgmt event to match the
latest API specification by adding an address type to it.
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Acked-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'net/bluetooth/mgmt.c')
-rw-r--r-- | net/bluetooth/mgmt.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/net/bluetooth/mgmt.c b/net/bluetooth/mgmt.c index 413a0b97c533..545919828562 100644 --- a/net/bluetooth/mgmt.c +++ b/net/bluetooth/mgmt.c | |||
@@ -2841,11 +2841,13 @@ int mgmt_user_passkey_neg_reply_complete(struct hci_dev *hdev, bdaddr_t *bdaddr, | |||
2841 | status, MGMT_OP_USER_PASSKEY_NEG_REPLY); | 2841 | status, MGMT_OP_USER_PASSKEY_NEG_REPLY); |
2842 | } | 2842 | } |
2843 | 2843 | ||
2844 | int mgmt_auth_failed(struct hci_dev *hdev, bdaddr_t *bdaddr, u8 status) | 2844 | int mgmt_auth_failed(struct hci_dev *hdev, bdaddr_t *bdaddr, u8 link_type, |
2845 | u8 addr_type, u8 status) | ||
2845 | { | 2846 | { |
2846 | struct mgmt_ev_auth_failed ev; | 2847 | struct mgmt_ev_auth_failed ev; |
2847 | 2848 | ||
2848 | bacpy(&ev.bdaddr, bdaddr); | 2849 | bacpy(&ev.addr.bdaddr, bdaddr); |
2850 | ev.addr.type = link_to_mgmt(link_type, addr_type); | ||
2849 | ev.status = mgmt_status(status); | 2851 | ev.status = mgmt_status(status); |
2850 | 2852 | ||
2851 | return mgmt_event(MGMT_EV_AUTH_FAILED, hdev, &ev, sizeof(ev), NULL); | 2853 | return mgmt_event(MGMT_EV_AUTH_FAILED, hdev, &ev, sizeof(ev), NULL); |