diff options
-rw-r--r-- | include/net/bluetooth/mgmt.h | 4 | ||||
-rw-r--r-- | net/bluetooth/mgmt.c | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/include/net/bluetooth/mgmt.h b/include/net/bluetooth/mgmt.h index eb584cc287d6..14c1816cac67 100644 --- a/include/net/bluetooth/mgmt.h +++ b/include/net/bluetooth/mgmt.h | |||
@@ -296,11 +296,11 @@ struct mgmt_cp_start_discovery { | |||
296 | 296 | ||
297 | #define MGMT_OP_CONFIRM_NAME 0x0025 | 297 | #define MGMT_OP_CONFIRM_NAME 0x0025 |
298 | struct mgmt_cp_confirm_name { | 298 | struct mgmt_cp_confirm_name { |
299 | bdaddr_t bdaddr; | 299 | struct mgmt_addr_info addr; |
300 | __u8 name_known; | 300 | __u8 name_known; |
301 | } __packed; | 301 | } __packed; |
302 | struct mgmt_rp_confirm_name { | 302 | struct mgmt_rp_confirm_name { |
303 | bdaddr_t bdaddr; | 303 | struct mgmt_addr_info addr; |
304 | __u8 status; | 304 | __u8 status; |
305 | } __packed; | 305 | } __packed; |
306 | 306 | ||
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); |