summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Chlad <sebastian.chlad@tieto.com>2012-02-10 11:55:14 +0100
committerPhilippe Langlais <philippe.langlais@stericsson.com>2012-05-22 11:07:33 +0200
commit961f14635e3589d262af5dcdc596cbb5bc24aea7 (patch)
tree555b4cd36280363325ed2785cd10050b7662223a
parente593120f64d6dfed8a4919922ad50b940ad43914 (diff)
Bluetooth: Set up correct eSCO packet type for incomming connectionother
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 fe1f6f39160..334b51a4d75 100644
--- a/net/bluetooth/hci_event.c
+++ b/net/bluetooth/hci_event.c
@@ -1852,9 +1852,12 @@ static inline void hci_conn_request_evt(struct hci_dev *hdev, struct sk_buff *sk
&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);