Skip to content

Commit d835060

Browse files
Johan HedbergGustavo F. Padovan
authored andcommitted
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: Johan Hedberg <[email protected]> Signed-off-by: Gustavo F. Padovan <[email protected]>
1 parent b0916ea commit d835060

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

net/bluetooth/hci_core.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -254,10 +254,6 @@ static void hci_init_req(struct hci_dev *hdev, unsigned long opt)
254254
flt_type = HCI_FLT_CLEAR_ALL;
255255
hci_send_cmd(hdev, HCI_OP_SET_EVENT_FLT, 1, &flt_type);
256256

257-
/* Page timeout ~20 secs */
258-
param = cpu_to_le16(0x8000);
259-
hci_send_cmd(hdev, HCI_OP_WRITE_PG_TIMEOUT, 2, &param);
260-
261257
/* Connection accept timeout ~20 secs */
262258
param = cpu_to_le16(0x7d00);
263259
hci_send_cmd(hdev, HCI_OP_WRITE_CA_TIMEOUT, 2, &param);

0 commit comments

Comments
 (0)