msm: 8960: fixed the bug in writing to data channel
This patch fixes the issue where space available in
the event channel was checked when writing to the
data channel.
Change-Id: Ie1e9b45cefe424f5cb19af712f647e16a87294f2
Signed-off-by: Ankur Nandwani <ankurn@codeaurora.org>
diff --git a/drivers/bluetooth/hci_smd.c b/drivers/bluetooth/hci_smd.c
index 66bab6b..f3e0f6c 100644
--- a/drivers/bluetooth/hci_smd.c
+++ b/drivers/bluetooth/hci_smd.c
@@ -285,7 +285,7 @@
break;
case HCI_ACLDATA_PKT:
case HCI_SCODATA_PKT:
- avail = smd_write_avail(hs.event_channel);
+ avail = smd_write_avail(hs.data_channel);
if (!avail) {
BT_ERR("No space available for smd frame");
ret = -ENOSPC;