]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: Fix address in unmergeable device found events
authorJohan Hedberg <johan.hedberg@intel.com>
Sat, 29 Mar 2014 06:39:53 +0000 (08:39 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Sat, 29 Mar 2014 07:50:24 +0000 (00:50 -0700)
commit921d52cc68bdfbe21a0c345adf5925b48ba0d3ab
tree5327a7acc8efa19d8351a07460e009591ed0df12
parent941d501c5d5c1905accdff55de216de113253e30
Bluetooth: Fix address in unmergeable device found events

When sending out a device found event caused by an advertising report in
the situation where we couldn't store the report as a pending one, the
code was incorrectly trying to use the address and address type from the
pending data. Since the pending data is cleared in the previous line
this causes a potentially incorrect address type and an address of
BDADDR_ANY. This patch fixes the call to use the address information
correctly from the received advertising report.

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