Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d6dac32e authored by Johan Hedberg's avatar Johan Hedberg Committed by Marcel Holtmann
Browse files

Bluetooth: Fix updating wrong instance's scan_rsp data



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: default avatarJohan Hedberg <johan.hedberg@intel.com>
Signed-off-by: default avatarMarcel Holtmann <marcel@holtmann.org>
parent 742c5951
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -1018,7 +1018,7 @@ void __hci_req_update_scan_rsp_data(struct hci_request *req, int instance)
	if (instance == HCI_ADV_CURRENT)
	if (instance == HCI_ADV_CURRENT)
		instance = get_current_adv_instance(req->hdev);
		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)
static u8 create_instance_adv_data(struct hci_dev *hdev, u8 instance, u8 *ptr)