]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/blame - releases/3.16.3/bluetooth-fix-merge-of-advertising-data-and-scan-response-data.patch
4.9-stable patches
[thirdparty/kernel/stable-queue.git] / releases / 3.16.3 / bluetooth-fix-merge-of-advertising-data-and-scan-response-data.patch
CommitLineData
8b77cbea
GKH
1From 42bd6a56ed1ab4b2cb50f4d4e674874da9b47f46 Mon Sep 17 00:00:00 2001
2From: Marcel Holtmann <marcel@holtmann.org>
3Date: Tue, 1 Jul 2014 14:11:19 +0200
4Subject: Bluetooth: Fix merge of advertising data and scan response data
5
6From: Marcel Holtmann <marcel@holtmann.org>
7
8commit 42bd6a56ed1ab4b2cb50f4d4e674874da9b47f46 upstream.
9
10The advertising data and scan response data are merged in the wrong
11order. It should be advertsing data first and then scan response data
12and not the other way around.
13
14Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
15Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
16Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
17
18---
19 net/bluetooth/hci_event.c | 4 ++--
20 1 file changed, 2 insertions(+), 2 deletions(-)
21
22--- a/net/bluetooth/hci_event.c
23+++ b/net/bluetooth/hci_event.c
24@@ -4177,8 +4177,8 @@ static void process_adv_report(struct hc
25 * sending a merged device found event.
26 */
27 mgmt_device_found(hdev, &d->last_adv_addr, LE_LINK,
28- d->last_adv_addr_type, NULL, rssi, 0, 1, data, len,
29- d->last_adv_data, d->last_adv_data_len);
30+ d->last_adv_addr_type, NULL, rssi, 0, 1,
31+ d->last_adv_data, d->last_adv_data_len, data, len);
32 clear_pending_adv_report(hdev);
33 }
34