Merge "msm: 8960: fixed the bug in writing to data channel" into msm-3.0
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;