Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Bluetooth: hci_conn: Set link_policy on incoming ACL connections

The connection link policy is only set when establishing an outgoing
ACL connection causing connection idle modes not to be available on
incoming connections. Move the setting of the link policy to the
creation of the connection so all ACL connection will use the link
policy set on the HCI device.

Signed-off-by: Stefan Sørensen <ssorensen@roku.com>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>

authored by

Stefan Sørensen and committed by
Luiz Augusto von Dentz
4bb09101 49d0901e

+1 -2
+1
net/bluetooth/hci_conn.c
··· 1002 1002 switch (type) { 1003 1003 case ACL_LINK: 1004 1004 conn->pkt_type = hdev->pkt_type & ACL_PTYPE_MASK; 1005 + conn->link_policy = hdev->link_policy; 1005 1006 conn->mtu = hdev->acl_mtu; 1006 1007 break; 1007 1008 case LE_LINK:
-2
net/bluetooth/hci_sync.c
··· 6897 6897 6898 6898 conn->attempt++; 6899 6899 6900 - conn->link_policy = hdev->link_policy; 6901 - 6902 6900 memset(&cp, 0, sizeof(cp)); 6903 6901 bacpy(&cp.bdaddr, &conn->dst); 6904 6902 cp.pscan_rep_mode = 0x02;