]>
Commit | Line | Data |
---|---|---|
8b77cbea GKH |
1 | From 42bd6a56ed1ab4b2cb50f4d4e674874da9b47f46 Mon Sep 17 00:00:00 2001 |
2 | From: Marcel Holtmann <marcel@holtmann.org> | |
3 | Date: Tue, 1 Jul 2014 14:11:19 +0200 | |
4 | Subject: Bluetooth: Fix merge of advertising data and scan response data | |
5 | ||
6 | From: Marcel Holtmann <marcel@holtmann.org> | |
7 | ||
8 | commit 42bd6a56ed1ab4b2cb50f4d4e674874da9b47f46 upstream. | |
9 | ||
10 | The advertising data and scan response data are merged in the wrong | |
11 | order. It should be advertsing data first and then scan response data | |
12 | and not the other way around. | |
13 | ||
14 | Signed-off-by: Marcel Holtmann <marcel@holtmann.org> | |
15 | Signed-off-by: Johan Hedberg <johan.hedberg@intel.com> | |
16 | Signed-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 |