aboutsummaryrefslogtreecommitdiffstats
path: root/net/bluetooth/mgmt.c
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@intel.com>2012-02-17 07:27:06 -0500
committerJohan Hedberg <johan.hedberg@intel.com>2012-02-17 07:39:16 -0500
commita198e7b100b26dd6ac0240487ca37bad0f53e3e6 (patch)
tree9389498822eda64c2f1a6bc71093572fadb658cb /net/bluetooth/mgmt.c
parentd8457698e7f23a05055396a15ec72ba663282867 (diff)
Bluetooth: mgmt: Add address type to confirm name command
The latest mgmt API includes an address type for all messages containing an address. This patch updates the confirm name command to match this. 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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/bluetooth/mgmt.c b/net/bluetooth/mgmt.c
index 68623401933f..01c8d6239a4b 100644
--- a/net/bluetooth/mgmt.c
+++ b/net/bluetooth/mgmt.c
@@ -2299,7 +2299,7 @@ static int confirm_name(struct sock *sk, u16 index, void *data, u16 len)
2299 goto failed; 2299 goto failed;
2300 } 2300 }
2301 2301
2302 e = hci_inquiry_cache_lookup_unknown(hdev, &cp->bdaddr); 2302 e = hci_inquiry_cache_lookup_unknown(hdev, &cp->addr.bdaddr);
2303 if (!e) { 2303 if (!e) {
2304 err = cmd_status (sk, index, MGMT_OP_CONFIRM_NAME, 2304 err = cmd_status (sk, index, MGMT_OP_CONFIRM_NAME,
2305 MGMT_STATUS_INVALID_PARAMS); 2305 MGMT_STATUS_INVALID_PARAMS);