Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a198e7b1 authored by Johan Hedberg's avatar Johan Hedberg
Browse files

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: default avatarJohan Hedberg <johan.hedberg@intel.com>
Acked-by: default avatarMarcel Holtmann <marcel@holtmann.org>
parent d8457698
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -296,11 +296,11 @@ struct mgmt_cp_start_discovery {

#define MGMT_OP_CONFIRM_NAME		0x0025
struct mgmt_cp_confirm_name {
	bdaddr_t bdaddr;
	struct mgmt_addr_info addr;
	__u8 name_known;
} __packed;
struct mgmt_rp_confirm_name {
	bdaddr_t bdaddr;
	struct mgmt_addr_info addr;
	__u8 status;
} __packed;

+1 −1
Original line number Diff line number Diff line
@@ -2299,7 +2299,7 @@ static int confirm_name(struct sock *sk, u16 index, void *data, u16 len)
		goto failed;
	}

	e = hci_inquiry_cache_lookup_unknown(hdev, &cp->bdaddr);
	e = hci_inquiry_cache_lookup_unknown(hdev, &cp->addr.bdaddr);
	if (!e) {
		err = cmd_status (sk, index, MGMT_OP_CONFIRM_NAME,
				MGMT_STATUS_INVALID_PARAMS);