aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--net/bluetooth/mgmt.c8
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