Bluetooth: Add 'eir_len' param to mgmt_device_found()
authorAndre Guedes <andre.guedes@openbossa.org>
Tue, 10 Jan 2012 21:20:49 +0000 (18:20 -0300)
committerJohan Hedberg <johan.hedberg@intel.com>
Mon, 13 Feb 2012 15:01:27 +0000 (17:01 +0200)
commit7d262f86f6b73efb500be9d9242ef0673221493d
tree2fac18b8c93fc1cea0df77f7735857456a7e8564
parent0952a57a25ee9854e1bf21e333b9fd3de211760e
Bluetooth: Add 'eir_len' param to mgmt_device_found()

This patch adds a new parameter to mgmt_device_found() to inform
the length of 'eir' pointer.

EIR data from LE advertising report event doesn't have a fixed length
as EIR data from extended inquiry result event does. We needed to
change mgmt_device_found() so it copies 'eir_len' bytes instead of
HCI_MAX_EIR_LENGTH.

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