Bluetooth: Fix EIR data generation for mgmt_device_found
authorVishal Agarwal <vishal.agarwal@stericsson.com>
Thu, 26 Apr 2012 13:49:56 +0000 (19:19 +0530)
committerGustavo Padovan <gustavo.padovan@collabora.co.uk>
Wed, 16 May 2012 19:13:19 +0000 (16:13 -0300)
The mgmt_device_found function expects to receive only the significant
part of the EIR data so it needs to be removed before calling the
function. This patch adds a new eir_get_length() helper function to
calculate the length of the significant part.

Signed-off-by: Vishal Agarwal <vishal.agarwal@stericsson.com>
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>

No differences found