Bluetooth: Read host suggested default le data length
[profile/mobile/platform/kernel/linux-3.10-sc7730.git] / net / bluetooth / hci_event.c
index b05d07c..3e9356d 100644 (file)
@@ -1354,11 +1354,21 @@ static void hci_cc_le_read_def_data_len(struct hci_dev *hdev,
 
        BT_DBG("%s status 0x%2.2x", hdev->name, rp->status);
 
+#ifdef CONFIG_TIZEN_WIP
+       hci_dev_lock(hdev);
+#else
        if (rp->status)
                return;
+#endif
 
        hdev->le_def_tx_len = le16_to_cpu(rp->tx_len);
        hdev->le_def_tx_time = le16_to_cpu(rp->tx_time);
+
+#ifdef CONFIG_TIZEN_WIP
+       mgmt_le_read_host_suggested_data_length_complete(hdev, rp->status);
+
+       hci_dev_unlock(hdev);
+#endif
 }
 
 static void hci_cc_le_write_def_data_len(struct hci_dev *hdev,