]> git.karo-electronics.de Git - karo-tx-linux.git/commit
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.org>
Sun, 29 Apr 2012 20:27:44 +0000 (17:27 -0300)
commite494c966a7ea7ab664e2760aee828bdaa82c91de
treea71e589627b1447d4564033b5738185c5d28c2e7
parentf7539afe32202db935276b3a90f927b986d54844
Bluetooth: Fix EIR data generation for mgmt_device_found

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>
include/net/bluetooth/hci_core.h
net/bluetooth/hci_event.c