X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=net%2Fbluetooth%2Fhci_event.c;h=3e9356d2ccbff574c26e68e1ffb378fec4f5391e;hb=a7582286537ee485dedde17e4767891ede7ea5ae;hp=b05d07c2dc35e72918ab461ff3ba82ba165e3db9;hpb=2f429c1f8e7e7c8e9bbac8dafcae1d3ee7fbe916;p=profile%2Fmobile%2Fplatform%2Fkernel%2Flinux-3.10-sc7730.git diff --git a/net/bluetooth/hci_event.c b/net/bluetooth/hci_event.c index b05d07c..3e9356d 100644 --- a/net/bluetooth/hci_event.c +++ b/net/bluetooth/hci_event.c @@ -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,