summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Chlad <sebastian.chlad@tieto.com>2012-02-10 11:55:14 +0100
committerPhilippe Langlais <philippe.langlais@linaro.org>2012-03-19 09:03:02 +0100
commit64619c48c2f1cfb7974b0f764a2ac863195cc053 (patch)
treee404e70d1552efbec0baed6a2a64ceda22c70748
parent674eff1d2f80f4e34aef047b6e0ea44f225111f8 (diff)
Bluetooth: Set up correct eSCO packet type for incomming connection
This patch sets up correct eSCO packet type mask for the incomming connection request. ST-Ericsson ID: 413660 ST-Ericsson FOSS-OUT ID: Trivial Change-Id: Ice423fe276c184d7350c4940efe1e010f5c3751d Signed-off-by: Sebastian Chlad <sebastian.chlad@tieto.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/48491 Reviewed-by: QABUILD Reviewed-by: QATEST Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com> Reviewed-by: Sebastian CHLAD <Sebastian.Chlad@tieto.com> Tested-by: Sebastian CHLAD <Sebastian.Chlad@tieto.com> Reviewed-by: Anurag GUPTA-1 <anurag.gupta@stericsson.com>
-rw-r--r--net/bluetooth/hci_event.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/net/bluetooth/hci_event.c b/net/bluetooth/hci_event.c
index 8357436fb1a..4c0dfef28ca 100644
--- a/net/bluetooth/hci_event.c
+++ b/net/bluetooth/hci_event.c
@@ -1673,9 +1673,12 @@ static inline void hci_conn_request_evt(struct hci_dev *hdev, struct sk_buff *sk
sizeof(cp), &cp);
} else {
struct hci_cp_accept_sync_conn_req cp;
+ __u16 pkt_type;
+
+ pkt_type = conn->pkt_type ^ EDR_ESCO_MASK;
bacpy(&cp.bdaddr, &ev->bdaddr);
- cp.pkt_type = cpu_to_le16(conn->pkt_type);
+ cp.pkt_type = cpu_to_le16(pkt_type);
cp.tx_bandwidth = cpu_to_le32(0x00001f40);
cp.rx_bandwidth = cpu_to_le32(0x00001f40);