Skip to content

Commit

Permalink
Bluetooth: Fix updating wrong instance's scan_rsp data
Browse files Browse the repository at this point in the history
The __hci_req_update_scan_rsp_data gets the instance to be updated
which should get passed to update_inst_scan_rsp_data() instead of
always enabling the current instance.

Signed-off-by: Johan Hedberg <[email protected]>
Signed-off-by: Marcel Holtmann <[email protected]>
  • Loading branch information
Johan Hedberg authored and holtmann committed Dec 9, 2015
1 parent 742c595 commit d6dac32
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/bluetooth/hci_request.c
Original file line number Diff line number Diff line change
Expand Up @@ -1018,7 +1018,7 @@ void __hci_req_update_scan_rsp_data(struct hci_request *req, int instance)
if (instance == HCI_ADV_CURRENT)
instance = get_current_adv_instance(req->hdev);

update_inst_scan_rsp_data(req, get_current_adv_instance(req->hdev));
update_inst_scan_rsp_data(req, instance);
}

static u8 create_instance_adv_data(struct hci_dev *hdev, u8 instance, u8 *ptr)
Expand Down

0 comments on commit d6dac32

Please sign in to comment.