Bluetooth: Change eir_has_data_type() to more generic eir_get_data()
authorJohan Hedberg <johan.hedberg@intel.com>
Tue, 5 Jan 2016 11:19:31 +0000 (13:19 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Tue, 5 Jan 2016 16:02:49 +0000 (17:02 +0100)
commit0d3b7f64c84d53658daf28e2f9772e38acb9340d
treed6804e10698572dd927fbc11837bed1bf9f8c5c9
parent29663b0cc1d5b9b6e2f6caf41e86c599a0310def
Bluetooth: Change eir_has_data_type() to more generic eir_get_data()

To make the EIR parsing helper more general purpose, make it return
the found data and its length rather than just saying whether the data
was present or not.

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
net/bluetooth/mgmt.c