]> git.pld-linux.org Git - packages/kernel.git/blob - sco-mtu.patch
- release 4
[packages/kernel.git] / sco-mtu.patch
1 --- linux/net/bluetooth/hci_event.c     2006-01-31 07:52:07.000000000 +0100
2 +++ linux/net/bluetooth/hci_event.c     2006-02-13 10:46:30.000000000 +0100
3 @@ -320,9 +320,9 @@
4                 }
5  
6                 hdev->acl_mtu  = __le16_to_cpu(bs->acl_mtu);
7 -               hdev->sco_mtu  = bs->sco_mtu ? bs->sco_mtu : 64;
8 +               hdev->sco_mtu  = (bs->sco_mtu < 64) ? 64 : bs->sco_mtu;
9                 hdev->acl_pkts = hdev->acl_cnt = __le16_to_cpu(bs->acl_max_pkt);
10 -               hdev->sco_pkts = hdev->sco_cnt = __le16_to_cpu(bs->sco_max_pkt);
11 +               hdev->sco_pkts = hdev->sco_cnt = bs->sco_max_pkt ? __le16_to_cpu(bs->sco_max_pkt) : 8;
12  
13                 BT_DBG("%s mtu: acl %d, sco %d max_pkt: acl %d, sco %d", hdev->name,
14                         hdev->acl_mtu, hdev->sco_mtu, hdev->acl_pkts, hdev->sco_pkts);
This page took 0.032645 seconds and 3 git commands to generate.