]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit - include/net/bluetooth/hci_core.h
Bluetooth: Add tracking of advertising address type
authorJohan Hedberg <johan.hedberg@intel.com>
Thu, 27 Feb 2014 12:05:40 +0000 (14:05 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Thu, 27 Feb 2014 16:50:21 +0000 (08:50 -0800)
commit56ed2cb88c7370d5aa88c92a2a0b1cb92c0979b9
tree237e3aaeb0da3bd724ed977c86d2068a8caf9f93
parentd3a2541d83dbdb4dd35eb34ac45b036acde278c6
Bluetooth: Add tracking of advertising address type

To know the real source address for incoming connections (needed e.g.
for SMP) we should store the own_address_type parameter that was used
for the last HCI_LE_Write_Advertising_Parameters command. This patch
adds a proper command complete handler for the command and stores the
address type in a new adv_addr_type variable in the hci_dev struct.

Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
include/net/bluetooth/hci_core.h
net/bluetooth/hci_event.c