diff options
author | Johan Hedberg <johan.hedberg@intel.com> | 2013-10-16 08:31:07 -0400 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2013-10-16 10:02:14 -0400 |
commit | eb438b5f3065dc270484919e8b88486d0cff59d3 (patch) | |
tree | cbb822f379e4b11e1ccf875c342b937df0e0a1bd /net/bluetooth/mgmt.c | |
parent | d3900cb25de21476758f1ae8b8d3e4602e3cd4ed (diff) |
Bluetooth: Fix updating the right variable in update_scan_rsp_data()
This function should be operating on scan_rsp_data_len and scan_rsp_data
and not the advertising data variables.
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'net/bluetooth/mgmt.c')
-rw-r--r-- | net/bluetooth/mgmt.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/net/bluetooth/mgmt.c b/net/bluetooth/mgmt.c index 0bf823b5d90e..a727b47fcac5 100644 --- a/net/bluetooth/mgmt.c +++ b/net/bluetooth/mgmt.c | |||
@@ -575,12 +575,12 @@ static void update_scan_rsp_data(struct hci_request *req) | |||
575 | 575 | ||
576 | len = create_scan_rsp_data(hdev, cp.data); | 576 | len = create_scan_rsp_data(hdev, cp.data); |
577 | 577 | ||
578 | if (hdev->adv_data_len == len && | 578 | if (hdev->scan_rsp_data_len == len && |
579 | memcmp(cp.data, hdev->adv_data, len) == 0) | 579 | memcmp(cp.data, hdev->scan_rsp_data, len) == 0) |
580 | return; | 580 | return; |
581 | 581 | ||
582 | memcpy(hdev->adv_data, cp.data, sizeof(cp.data)); | 582 | memcpy(hdev->scan_rsp_data, cp.data, sizeof(cp.data)); |
583 | hdev->adv_data_len = len; | 583 | hdev->scan_rsp_data_len = len; |
584 | 584 | ||
585 | cp.length = len; | 585 | cp.length = len; |
586 | 586 | ||