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

Commit d8350600 authored by Johan Hedberg's avatar Johan Hedberg Committed by Gustavo Padovan
Browse files

Bluetooth: Remove page timeout setting from HCI init sequence



User space should set the page timeout so there's no need to explicitly
set it in the HCI init sequence. Even if user space fails to set it the
controller default value will be used.

Signed-off-by: default avatarJohan Hedberg <johan.hedberg@nokia.com>
Signed-off-by: default avatarGustavo F. Padovan <padovan@profusion.mobi>
parent b0916ea0
Loading
Loading
Loading
Loading
+0 −4
Original line number Original line Diff line number Diff line
@@ -254,10 +254,6 @@ static void hci_init_req(struct hci_dev *hdev, unsigned long opt)
	flt_type = HCI_FLT_CLEAR_ALL;
	flt_type = HCI_FLT_CLEAR_ALL;
	hci_send_cmd(hdev, HCI_OP_SET_EVENT_FLT, 1, &flt_type);
	hci_send_cmd(hdev, HCI_OP_SET_EVENT_FLT, 1, &flt_type);


	/* Page timeout ~20 secs */
	param = cpu_to_le16(0x8000);
	hci_send_cmd(hdev, HCI_OP_WRITE_PG_TIMEOUT, 2, &param);

	/* Connection accept timeout ~20 secs */
	/* Connection accept timeout ~20 secs */
	param = cpu_to_le16(0x7d00);
	param = cpu_to_le16(0x7d00);
	hci_send_cmd(hdev, HCI_OP_WRITE_CA_TIMEOUT, 2, &param);
	hci_send_cmd(hdev, HCI_OP_WRITE_CA_TIMEOUT, 2, &param);